how to know if the indicator is painting or repainting ??

#1
dear all, there are many indicators are available in this market.. but i would like to know if there is any method by which we can know if the indicator is painting or repainting ??? as we can check the same in amibroker .. we must be able to check the same in metatrader also...
 

mastermind007

Well-Known Member
#4
HELLO GUYS !!
Would u plz clarify what does painting and repainting means ??
Its the computer programming concept. All computer apps continuously keeps refreshing screen to remain correct. So, even if you think nothing is changing on screen, your program and OS are in endless loop painting and repainting your screen.
 
#5
In ami go to Formula Editor >> from Tools Menu >> Select Code Check & Profile

This will tell you if any code in the AFL is referencing data from future ticks/bars

This will not tell you if any dll / plugin you are using is repainting (referencing data from future ticks/bars)


Happy :)
 
#6
repainting simply means that the signal changes even after the bar close ,yes bar replay function can be used in metatrader with the help of LFH Trading Simulator. Excellent scripts to simulate manual trading.
 
#8
My Unique Method to test AFL for Repainting.
There r 2 types of repaint
Pre-Repaint- afl gives signal today but it gets shift next day if conditions r more favorable . E.g Higher high,Lower low afl.:lol:
Post-Repaint- afl will wait for conditions n when they r met it gives signal 2 days back in past.:rofl:
Suppose we r testing Test.afl[ Ur afl] on Nifty eod [Nifty.txt].

1. U must have database of it in text form, which must contain 5 years EOD or 15 days IEOD data.
2. U must also understand the concept on which Test.afl works e.g crossover, Higher high,Lower low, Bollinger bands etc.
3. Make copy of data and rename as Nifty1.txt. And import it in amibroker.[Now u have two files of same scrip].
4. Now run the Test.afl and check all Buy/Sell signal.
5. Find out those critical point where nearby candles may also show buy/sell.
6. If buy/sell is at 30/7/15, then delete all the data from Nifty1.txt after 30/7/15.
7. Make sure data in amibroker for nifty1 shows till 30/7/15. [U can delete it from ami n den again import].
8.If it is Post-Repaint afl then it wont show any signal on 30/7/15.:D
9. Delete data till just 1 day b4 signal 29/7/15 in Nifty1.txt then again import it. Check Step 7.
10. If it is Pre-Repaint afl then it will show signal on 29/7/17.:p
Repeat all step for atleast 10 signals for better accuracy.

Dis is how I check for repaint afl. :thumb: I know many of u will say that just go to Formula Editor and click on 'Code Check& Profile' instead of doing these time taking 10 steps. Let me remind u there r many afls which contains more than 1 types of buy/sell signals. I have one which have 5 different types of buy and 5 different type of sell signal. If only one type is repainting doesn't mean rest r also repainting. So you have to check it manually becoz Ami will show 'future refrence' even 1 is repainting it wont check others. That's what my signature says ;)
If u do not understand any step u r welcome to comment.:clap:
 

mastermind007

Well-Known Member
#9
My Unique Method to test AFL for Repainting.
There r 2 types of repaint
Pre-Repaint- afl gives signal today but it gets shift next day if conditions r more favorable . E.g Higher high,Lower low afl.:lol:
Post-Repaint- afl will wait for conditions n when they r met it gives signal 2 days back in past.:rofl:
Suppose we r testing Test.afl[ Ur afl] on Nifty eod [Nifty.txt].

1. U must have database of it in text form, which must contain 5 years EOD or 15 days IEOD data.
2. U must also understand the concept on which Test.afl works e.g crossover, Higher high,Lower low, Bollinger bands etc.
3. Make copy of data and rename as Nifty1.txt. And import it in amibroker.[Now u have two files of same scrip].
4. Now run the Test.afl and check all Buy/Sell signal.
5. Find out those critical point where nearby candles may also show buy/sell.
6. If buy/sell is at 30/7/15, then delete all the data from Nifty1.txt after 30/7/15.
7. Make sure data in amibroker for nifty1 shows till 30/7/15. [U can delete it from ami n den again import].
8.If it is Post-Repaint afl then it wont show any signal on 30/7/15.:D
9. Delete data till just 1 day b4 signal 29/7/15 in Nifty1.txt then again import it. Check Step 7.
10. If it is Pre-Repaint afl then it will show signal on 29/7/17.:p
Repeat all step for atleast 10 signals for better accuracy.

Dis is how I check for repaint afl. :thumb: I know many of u will say that just go to Formula Editor and click on 'Code Check& Profile' instead of doing these time taking 10 steps. Let me remind u there r many afls which contains more than 1 types of buy/sell signals. I have one which have 5 different types of buy and 5 different type of sell signal. If only one type is repainting doesn't mean rest r also repainting. So you have to check it manually becoz Ami will show 'future refrence' even 1 is repainting it wont check others. That's what my signature says ;)
If u do not understand any step u r welcome to comment.:clap:

Instead of duplicate symbol, you can use bar replay. That will save some effort and headache.
 
#10
easiest was is stratergy tested.

Choose any EA, load your indicator (which you need to know whether it is repainting or not)
Run the test and see for yourself.
It hardly takes 5 mins.
 

Similar threads