Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 02:34:26 +0000



Post From: Continuous contract - with sc.OpenChartOrGetChartReference - spawns charts from expired symbols

[2013-12-27 21:58:21]
T44 - Posts: 363
For example, in the case where there is a different underlying symbol for a Historical chart, you will need to specify the symbol you see in Chart >> Chart Settings >> Trade and Current Quote Symbol. When you need to use the Symbol of the chart the study function is on, the easiest way to get the correct symbol is to call the sc.GetRealTimeSymbol() function.

Compiling with this function, I get error: 'structs_sc' has no member named 'GetRealTimeSymbol'

I cannot find documentation for sc.GetRealTimeSymbol() function.

It is your code doing this. Not Sierra Chart.
Understood. My code did not contemplate Trade and Current Symbol differing from the ScString sc.Symbol.