Login Page - Create Account

Support Board


Date/Time: Fri, 19 Apr 2024 08:50:48 +0000



[Programming Help] - Some Index Questions

View Count: 518

[2018-07-19 15:41:34]
User39772 - Posts: 311
Hello Support,

is the meaning of:

sc.IndexOfLastVisibleBar; and
sc.ArraySize

identical ?

If not, please explain.

Are the following statement a valid statement, if my study should always and only process the last 100 bars in the chart during a Replay ?

if (sc.Index > (sc.ArraySize - 100) )
{

// Study Code ...

}  

if (sc.Index > (sc.IndexOfLastVisibleBar - 100) )
{

// Study Code ...

}  

Thanks for a reply ...

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

Login

Login Page - Create Account