SanMiguel:
lprice is calculated by doing this: double lprice=iHigh(Symbol(),period_no,1)-iATR(Symbol(),period_no,14,0);
Why would you do that instead of using the actual low: lprice=iLow(NULL,period_no,1)
lprice is calculated by doing this: double lprice=iHigh(Symbol(),period_no,1)-iATR(Symbol(),period_no,14,0);
WHRoeder:
Why would you do that instead of using the actual low: lprice=iLow(NULL,period_no,1)
Why would you do that instead of using the actual low: lprice=iLow(NULL,period_no,1)
Because I am calclating a range, now how can I get this for each day?
SanMiguel:
now how can I get this for each day?
Figure it out . . .
now how can I get this for each day?
useful forum
SanMiguel:
useful forum
Yes it is . . . https://www.mql5.com/en/forum/135849
useful forum
So, how do I loop this for each day?
I have to put the createobject in a loop and use i for the day?
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
I have sme code that draws a rectangle for the current day.
How can I loop the code so that it draws a rectangle for every day on the chart?
lprice is calculated by doing this: double lprice=iHigh(Symbol(),period_no,1)-iATR(Symbol(),period_no,14,0);