Login Page - Create Account

Support Board


Date/Time: Sun, 19 May 2024 06:12:14 +0000



Post From: Chart bar Index

[2016-08-27 18:30:06]
User382358 - Posts: 2
I need to get the chart bar Index to count the no. of bars in the chart.
I see that sc.Index does not work.
Eg:
If (Buy) myIndex = sc.Index ;
If (EndBuy) no_of_bars = sc.Index - myIndex ;

sc.Index is auto incremented and points to current bar.
Is there a way to get the Index / count the no. of bars based on a condition ?
thanks