Hi all
I have managed to produce a code to draw two horizontal lines on a chart at the highest and lowest candle. This is what I want but only want to check the candles between 10am and 11am. this needs to reset the next day at 9:30. Please could someone help with this.
thanks in advance
if ((TimeLocal() >= TenAM ) && (TimeLocal() <= ElevenAM)) { //your code... }
Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
No free help 2017.04.21
Or pay someone. Top of every page is the link Freelance.
Hiring to write script - General - MQL5 programming forum 2018.05.12
We're not going to code it for you (although it could happen if you are lucky or the problem is interesting).
No free help 2017.04.21
You are calculating datetimes in the future. That result will change every new M5 bar. | datetime TenAM=iTime(NULL,PERIOD_M5,0)+ 36000; datetime ElevenAM =iTime(NULL,PERIOD_M5,0)+39600; |
Compute your hours from today's date. date/time (2017) Find bar of the same time one day ago - MQL4 programming forum (2017) | datetime today =date(); datetime TenAM =today+36000; datetime ElevenAM =today+39600; |
Does anyone have a code example that execute order when touching a chart line?

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi all
I have managed to produce a code to draw two horizontal lines on a chart at the highest and lowest candle. This is what I want but only want to check the candles between 10am and 11am. this needs to reset the next day at 9:30. Please could someone help with this.
thanks in advance