change this line:
int _bars = iBarShift(Symbol(),Period(),iTime(Symbol(),1440,0),false);
with:
int _bars = iBarShift(Symbol(),Period(),D'05:00',false);
Hi
Thanks for the quick reply, I have done that but when compiling the file I get this error:
"date literal string is complete"
Thanks
Antony
& it's not working ?
Hi
Sorry yes, its does work, I thought with the error it wouldn't.
Thanks for your help
Antony
it's not an error it's a warning EA Script or indicator doesn't have a problem to work if there is a warning
Hi Again
I was wondering, can this be made so that the indicator shows the highs and lows for time starting 00:00hours and then after 13:00hours it shows the highs and lows from 05:00 hours?
Thanks for the help
Antony
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 have this indicator that I downloaded as freeware to show the highest and lowest prices for the day expressed in the code as the R1 and R2, there are other functions in the indicator that are not used.
The indicator starts at 00:00 hours each day, how can this be made to start at 05:00 hours instead?
Thanks
Antony