Custom Indicator not showing data after X bars
-
Hi there, I got the mq4 file for Waddah Attar Scalping that I found in his MQL5 profile but is not loading all data after looking back certain bars back. It doesn't have a "Max Bars" in inputs. Is this possible to resolve this matter with the mq4 script? TIA Waddah_Attar_Scalping.mq4
-
No. The only way to do that is by modifying the indicator code.
-
I would guess just change this number in the code.
Alternatively, just run a visual backtest.
-
@l-andorrà agradezco mucho sus contestaciones!
-
@roar will try this! On the strategy tester works very well, will definitely try this thanks for the help!
-
@roar It worked! Do you know by any chance the code for max bars? TIA
-
@joseanrod the total number of bars is in variable called Bars.
But the indicator probably needs some history before it can start calculating the indicator results, so you can try something like this:i = Bars - 100; -
@joseanrod both recommendations worked wonders! Thank you so much
-
@joseanrod No hay de que.
