
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
is there a way to make iBarShift to return indexes from left to right?
I like to work with Arrays where 0 means the oldest bar, butiBarShift return it the other way round.
Test case in OnCalculate:
In next iterations - bar number goes: 0,1,2,3,4,5
Time increases:
D'2017.04.28 14:00:00'
D'2017.04.28 15:00:00'
D'2017.04.28 16:00:00'
But bar_number_h4 i starting on a big number and getting lower: 3402, 3401, 3400...
Could you help?