Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.
Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.
By using this site, you agree to our Terms of Use.
BarCount Since Yesterday
in Coding Forum
Posted
I'm using TradeStation.
To count the number of bars in the last 24h (i'm working on tick and renko charts) i've also tried to use:
vars:
bar_count(1);
while (date[bar_count] = date and time[bar_count]<time) or (date[bar_count] < date and time[bar_count] > time)
begin
bar_count = bar_count + 1;
end;
but this code freeze TS.