Login Page - Create Account

Support Board


Date/Time: Tue, 23 Apr 2024 13:10:09 +0000



Post From: ACSIL interface member that will return index value of latest datum displayed

[2019-04-15 19:23:58]
jsob - Posts: 33
Can't get it to work the way I need.
<snippet>
if (sc.SetDefaults)
{
sc.UpdateAlways = 1;
....
return
}
int i_start_value = sc.IndexOfLastVisibleBar - number_of_values.GetInt();    // "plot # of values:"
<end snippet>
As I scroll my chart backward, the value of 'i_start_value' does not change.
If I navigate to the Chart Studies window and hit Apply, the value will update.