Attachments forums

List of attachments posted on this forum.


All files on forums: 159895

Repaint Tester v1.00

ionone, Wed Sep 14, 2022 9:48 pm

Repaint Tester for MT4

Hi

I made an indicator that can test with 100% confidence if an indi is a repainter or not

Just put the right settings and run the indicator in the strategy tester (any TF)

wait for 100 bars (or the number you define), and check the results in the logs every N bars

Settings

extern string IndiName = "";
put here the indi name to test

extern string buffersToTest = "0,1,2,3";
put the buffer numbers you want to check, separated by commas

extern int verifyEveryNBars = 100;//Verify Repainting Every N Bars
it will compare recorded and retrieved values every N bars

extern int precision = 1;// precision (multiples of Point value)
Precision of the test. For convenience I use "Point()" value for checking if values are identical or not.

extern bool printDetail = false;
if you want the detail of both values, from the recorded ones to the retrieved ones.

extern bool skipFirstValue = true; //skip first value (because can be different even on non-repainters)
I recommend leaving it to TRUE, because you can have sometimes a different value of the very first value even with non-repainters (don't ask me why)

example :

indicator ddd (non repainter). 4 buffers

results :

Code: Select all

CheckForRepainting GBPUSD,H1: NON-REPAINTER
CheckForRepainting GBPUSD,H1: Buffer n°4 (which index is 3) has repainted 0 values over 100 values
CheckForRepainting GBPUSD,H1: Buffer n°3 (which index is 2) has repainted 0 values over 100 values
CheckForRepainting GBPUSD,H1: Buffer n°2 (which index is 1) has repainted 0 values over 100 values
CheckForRepainting GBPUSD,H1: Buffer n°1 (which index is 0) has repainted 0 values over 100 values

indicator hp-t01 (repainter) 1 buffer

results :

Code: Select all

CheckForRepainting GBPUSD,H1: REPAINTER
CheckForRepainting GBPUSD,H1: Buffer n°1 (which index is 0) has repainted 99 values over 100 values
All files in topic