I am in need of assistance please. What I would like to do is every time price creates a new high or low for the day I want to be able to save the price and the time somehow (perhaps in the global scope) to use it as a reference point? Would anyone know how to do this?
your algorithm should look like this for the highs:
Hope this was of help. Have a nice Weekend!
iHigh(NULL, PERIOD_D1, 0);
iLow(NULL, PERIOD_D1, 0);
Store them to variables and compare the current to the stored to update / record what you want .
Thank you for your reply. I did some digging and got this:
And modified it to get the high price:
Then used this to store the time:
However, how do I compare the current high price and time to those and store them?
I see your request was meant for daily charts, at first misunderstood you wanted to analyze smaller timeframes for every single day. Try this for comparation & update:
To add comments, please log in or register