Support Board
Date/Time: Wed, 12 Feb 2025 15:43:27 +0000
Detecting if the chart is at the end
View Count: 508
[2020-11-03 17:14:34] |
ycomp - Posts: 321 |
How could I programatically detect if the chart currently is at the end of the chart (i.e. it is green in the bottom right, not red)... or detect if it is not at the end of the chart, whatever is easier.
|
[2020-11-03 17:31:56] |
User907968 - Posts: 826 |
ACSIL Interface Members - Variables and Arrays: sc.IndexOfLastVisibleBar if (sc.ArraySize - 1 == sc.IndexOfLastVisibleBar)
{ // do some stuff } |
[2020-11-07 08:40:32] |
ycomp - Posts: 321 |
I made a study using this code (it would display text if not at the end of the chart).. It worked great. then I upgraded to 2192 and it stopped working (displaying text). I then added sc.UpdateAlways = 1; // Set this study to continuously update as suggested by the docs above and it works now. just mentioning it in case anyone comes across this thread later. upon reflection, i think the update had nothing to do with it.. it is probably because the market is dead right now seeing that it is the weekend. So I guess updatealways is not required during the week Date Time Of Last Edit: 2020-11-07 08:42:52
|
To post a message in this thread, you need to log in with your Sierra Chart account: