iHighest error 4807
HighFastHandle = iHighest(_Symbol,_Period,MODE_CLOSE,LookBackExit,0);
iHighest doesnt give you a indicator handle.
https://www.mql5.com/de/docs/series/ihighest
and btw, you can check what error 4807 means. https://www.mql5.com/en/docs/constants/errorswarnings/errorcodes
- www.mql5.com
if(rt[1].tick_volume>1)
For a new bar test, Bars is unreliable (a refresh/reconnect can change number of bars on chart), volume is unreliable (miss ticks), Price is unreliable (duplicate prices and The == operand. - MQL4 programming forum.) Always use time.
MT4: New candle - MQL4 programming forum #3 (2014)
MT5: Accessing variables - MQL4 programming forum #3 (2022)
I disagree with making a new bar function, because it can only be called once per tick (second call returns false). A variable can be tested multiple times.
Running EA once at the start of each bar - MQL4 programming forum (2011)
Making my first EA by editting the example moving average EA that comes with MT5.
Running this on historical data outputs
"2022.05.07 14:45:33.566 2022.01.03 00:05:00 iHighest() call error. Error code=4807"
I imagine this is very obvious to an expert. This is literally my first day using MT5 so please be kind.