Login Page - Create Account

Support Board


Date/Time: Sat, 19 Apr 2025 09:46:42 +0000



CurrencyValuePerTick for Trade and Current Quote Symbol

View Count: 77

[2025-03-17 14:24:28]
User758025 - Posts: 5
In ACSIL can you access sc.CurrencyValuePerTick for the Trade and Current Quote Symbol where that differs from the Symbol as selected in Chart Settings Symbol? Thanks
[2025-03-17 17:14:57]
John - SC Support - Posts: 39362
There is only one "Currency Value per Tick" setting. This value is used generally, although you would want to have it set appropriately for the "Trade and Current Quote Symbol" that is being used. Refer to the following:
Chart Settings: Updating Currency Value per Tick for Trade Symbol

If this does not answer your question, then we need more information on what exactly you are asking.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2025-03-21 14:48:51]
User758025 - Posts: 5
that doesn't help at all. for others who may want to know this is how i accessed it in ACSIL

s_SCPositionData PositionData;
sc.GetTradePosition(PositionData);
int currentPosition = PositionData.PositionQuantity;

float currencyValuePerTick = sc.CurrencyValuePerTick; // Default to chart symbol value
if (!sc.TradeAndCurrentQuoteSymbol.IsEmpty() && sc.IsFullRecalculation == 0 && sc.ServerConnectionState == SCS_CONNECTED)
{
s_SCBasicSymbolData symbolData;
sc.GetBasicSymbolData(sc.TradeAndCurrentQuoteSymbol, symbolData, false);

if (symbolData.TickSize > 0.0f)
{
currencyValuePerTick = symbolData.CurrencyValuePerTick;
}
else
{
if (sc.Index == 0)
{
SCString msg;
msg.Format("Warning: Symbol data for %s not available yet, using chart symbol currency value per tick",
sc.TradeAndCurrentQuoteSymbol.GetChars());
sc.AddMessageToLog(msg, 1);
}
}
}

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account