PROTECTED SOURCE SCRIPT
Telah dikemas kini Test Me

Warning: this strategy is my way to convert repainting model to non repainting one. So I put it for you to test if it work or not. test can be done as forward test =live running it signal or to use bar repaly which show you how did this model actualy put signal .never put money on something if you did not test it properly
So before we get to minute detail I give you some theory :
there is real time and there is repaint time. the repaint time take it data from future and once you do a back test hop you are so rich and happy . but when you run live session you find it bullshit as signals have no logic and are just random.
So we all try our best to correct and to avoid repainting as much we can. to create realible data. the problem is when we do it the strategy that we build lose it efective power and the end result is a poor lame duck. that do not make mistakes buy biy and sell at wrong positions.
I belive the truth lie in the middle between repaint time and real time. the model that i run in this strategy is rsi buy and sell power that i put you to all to see. as free - find it here:
if i run this model according to non repaint rule that we all know as MTF it would barely win anything at best . does not matter what way i try to fix it it still lame duck.
if i make it to repaint it wonderfull but still stupid repaint:)
so how I try to solve the issue?
1. the rsi i change to more smooth one (in the menue you will see (fast,slow,curve set to 1,2,4)
2. i use two source one based on close. the other based on open. if you put close in MTF without restriction it would repaint
the open postion is more stable but the model will buy at wrong places. but it can be great as a filter to the close source model.
by this removing stupid signal.
this move make now our model to be stable. so it still severly repaint but since it stable and the repaint is not random anymore but is found in good buy and sell postions only problem is that we can see this only by back repaly . and when the chart is refresh the security will put false buy point chart so no solution but still better then random repaint:)
3. we want further to reduce too much buy and sell points . so now the strategy need to avoid pyramiding. this is crucial for the nest step which is how to make the stable buy point to be on the chart and not the repaint point ?
we cannot fix the security but we can trick TV buy very easy way and by this we can get the real buy point
how?
4. if your buy point let say send signal at 1pm , the security will make to look on chart on 7am.
and this is very frustrating as we never know if the signal we get is real or hoax?
so how i trick TV to give me only the signal that was sent to as alert and not the one that the false chart in the repaint show at 7am?
easy pizy :) you do not need complex code for it. just use simple trick: make a false buy point that is very close the alert that send at 13pm. for example : the alert on btc was a buy at 9200 at 1pm . the false buy point will be 0.1% or higher above it. so the false buy point now is our buy point. and this is one that send the alert. TV will accept the false buy point as real and not the the point at 1pm and nither the point at 7am. so by this way we are get in betwen situation between the repaint time and the real time.but this keep the strength of the model live and it no longer lame duck model. in the menue you see factor and this is the distance from the alert that was actualy sended (i set it to 0.8% but it can be what ever you want)
so how to operate this system?
length -is set to 1 . if yo do 2.3,4 etc this will make the buy and sell point much less becouse this depend on the mtf that we use
in the setting i put repaint control on 720 (minute dustance) - this is becouse if i put 60 as on 1 hour chart it will look great but will have more buy and sell point that I do not want so it will be prone to repaint so 240-1440 on 1 hour chart seems fine but 720 i thnk is better one.
if you on 4 hour cahrt then try 1440
if you are on 15min chart try less then 720 let say 120-240 range to see if no reapint. if not working you can increase length to 2 and try again until no repaint.
the equaty is set to 25% -the higher you put the higher profit will look but up to 50 is max .10 -30 is the real one
you can set the take profit and stop loss to anything you want but this is just safety mesure.
so I hope you understand and try to see if my setting repaint or not before you even try to use it in real life
So before we get to minute detail I give you some theory :
there is real time and there is repaint time. the repaint time take it data from future and once you do a back test hop you are so rich and happy . but when you run live session you find it bullshit as signals have no logic and are just random.
So we all try our best to correct and to avoid repainting as much we can. to create realible data. the problem is when we do it the strategy that we build lose it efective power and the end result is a poor lame duck. that do not make mistakes buy biy and sell at wrong positions.
I belive the truth lie in the middle between repaint time and real time. the model that i run in this strategy is rsi buy and sell power that i put you to all to see. as free - find it here:

if i run this model according to non repaint rule that we all know as MTF it would barely win anything at best . does not matter what way i try to fix it it still lame duck.
if i make it to repaint it wonderfull but still stupid repaint:)
so how I try to solve the issue?
1. the rsi i change to more smooth one (in the menue you will see (fast,slow,curve set to 1,2,4)
2. i use two source one based on close. the other based on open. if you put close in MTF without restriction it would repaint
the open postion is more stable but the model will buy at wrong places. but it can be great as a filter to the close source model.
by this removing stupid signal.
this move make now our model to be stable. so it still severly repaint but since it stable and the repaint is not random anymore but is found in good buy and sell postions only problem is that we can see this only by back repaly . and when the chart is refresh the security will put false buy point chart so no solution but still better then random repaint:)
3. we want further to reduce too much buy and sell points . so now the strategy need to avoid pyramiding. this is crucial for the nest step which is how to make the stable buy point to be on the chart and not the repaint point ?
we cannot fix the security but we can trick TV buy very easy way and by this we can get the real buy point
how?
4. if your buy point let say send signal at 1pm , the security will make to look on chart on 7am.
and this is very frustrating as we never know if the signal we get is real or hoax?
so how i trick TV to give me only the signal that was sent to as alert and not the one that the false chart in the repaint show at 7am?
easy pizy :) you do not need complex code for it. just use simple trick: make a false buy point that is very close the alert that send at 13pm. for example : the alert on btc was a buy at 9200 at 1pm . the false buy point will be 0.1% or higher above it. so the false buy point now is our buy point. and this is one that send the alert. TV will accept the false buy point as real and not the the point at 1pm and nither the point at 7am. so by this way we are get in betwen situation between the repaint time and the real time.but this keep the strength of the model live and it no longer lame duck model. in the menue you see factor and this is the distance from the alert that was actualy sended (i set it to 0.8% but it can be what ever you want)
so how to operate this system?
length -is set to 1 . if yo do 2.3,4 etc this will make the buy and sell point much less becouse this depend on the mtf that we use
in the setting i put repaint control on 720 (minute dustance) - this is becouse if i put 60 as on 1 hour chart it will look great but will have more buy and sell point that I do not want so it will be prone to repaint so 240-1440 on 1 hour chart seems fine but 720 i thnk is better one.
if you on 4 hour cahrt then try 1440
if you are on 15min chart try less then 720 let say 120-240 range to see if no reapint. if not working you can increase length to 2 and try again until no repaint.
the equaty is set to 25% -the higher you put the higher profit will look but up to 50 is max .10 -30 is the real one
you can set the take profit and stop loss to anything you want but this is just safety mesure.
so I hope you understand and try to see if my setting repaint or not before you even try to use it in real life
Nota Keluaran
fix some issuemake rebuy as option
add possibility for only long
only short
or both long and short
Nota Keluaran
there is still some repainting , i try to mke a fix let see if work?Nota Keluaran
try to fix the repaint control , in order to reduce repaintNota Keluaran
remove original exit strategyput instead super trend non repainting exit only part
Nota Keluaran
add possibility for different factor entry and exit seems by using non repaint exit point then system is more stable
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.