
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,
I am trying to calculate the highest price and lowest price in the bar range from the bar at which 1st order was opened till the bar at which 'x' order was opened. but i dont know where am i am going wrong. The code seems to be refreshing the highest and lowest prices as new bars open up even after the 'x' order bar. How do i calculate the highest and lowest prices only for the range of 1st order bar to 'x' order bar, and stop calculating after 'x' order bar and just store the value?
Any Suggestions?