int index=0; double delta=0; for(int i=0;i<5;i++) { if (delta<High[i]-Low[i]) { delta=High[i]-Low[i]; index=i; } }
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
Hello,
I want to identify the candle (in the last 5) that have maximum range (High[i]-Low[i]) .
I wrote this code but for fill an array with range size:
How can I retrieve the index in the array with maximum value?
I suppose to use ArrayMax fuction, is correct:
Thanks for help
Giovanni