How to loop price in x variables?
-
Hello I want to register every day, the maximum daily price in variable and record for 30 days, there are 30 variables.
But I want to continue recording in loop, each day always keeping the most recent 30 variables.
I also want each new day to compare the pips of difference between this new variable with each one of the others.
Can you help me? Thank you very much -
@besttrader In HERE you'll see how you can achieve this, it will take a lot more than 30 variables though. hope this helps.
-
@besttrader I thought about how you could reduce the amount of variables used, you could draw event field on init, then type on screen the days you want to compare, this way you only get the relevant data displayed on screen
-
@jstap thank you very much, i understood the logic, i will try to implement