techmac: I test repainting a bit differently : place it on chart, let it run, then go to parameters, simply press OK and if it changed after that compared to what I saw before pressing OK, it is a repainter
Yes, because repainters will change past values only when you change parameters, time frame or symbols - I find that it is easiest just to simulate parameters change - the change is very easy to see then
techmac: I test repainting a bit differently : place it on chart, let it run, then go to parameters, simply press OK and if it changed after that compared to what I saw before pressing OK, it is a repainter
The most simple way is to open a M1 chart of e.g. eur/usd, in the navigator go to Indicators, Trend, Moving Average, then don't double-click it, but drag the icon -the yellow rectangle with an f-, or the words "Moving Average" right of it, into the window of the indicator you want to test: Period = 1, Shift = 0, Ma Method = Simple, Apply to = First Indicator's Data, and then select whatever graphics you want. This will be the same as end-pointing it in real-time, without having to write Mladen-level mq4/5 code... You just save the indicator value at the closing of the bar. After you have a sufficient amount of bars (run the chart minimized while you're doing other work), after a while you will see if the indicator's line and the SMA(indicator,1) coincide (= causal) or not (=acausal / a "repainter").
You can also use a visual mode backtest with an empty EA if you lack the patience, although sometimes this can update even SMA(1,indicator) past values.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I test repainting a bit differently : place it on chart, let it run, then go to parameters, simply press OK and if it changed after that compared to what I saw before pressing OK, it is a repainter
Not a bad way either
Not a bad way either
Yes, because repainters will change past values only when you change parameters, time frame or symbols - I find that it is easiest just to simulate parameters change - the change is very easy to see then
I test repainting a bit differently : place it on chart, let it run, then go to parameters, simply press OK and if it changed after that compared to what I saw before pressing OK, it is a repainter
That's a good method as well, thanks for sharing.
You can also use a visual mode backtest with an empty EA if you lack the patience, although sometimes this can update even SMA(1,indicator) past values.