Pivot Point SuperTrend [Backtest]

Hello All,

This is backtesting result of following indicator/strategy. I didn't work on adding other indicators. maybe in the future I can try to combine this with other indicators.

You can visit following link to see "Pivot Point SuperTrend". by using this backtesting tool, you can test&find better options

There is option "Use Center Line to Close Entry for 50%". by default it's not enabled. if you enable this option, pivot point center line may push you to close your entry for 50% (can be used as early stoploss/take profit line if you think it's risky)

Note di rilascio: Made some improvements in the strategy.

Also following options added:
"Enter Only Long Position" option added.
"Min profit Rate if Center Line Used" option added. it doesn't close half of the position if it didn't reach defined profit rate. %1 by default
Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?


@LonesomeTheBlue I believe there is a fundamental flaw in the code. I see the built in functions "pivothigh" and "pivotlow" were used. These functions are not meant to be used within strategies because they repaint (you can test it out in replay mode....the pivothigh and pivotlows don't appear until about 4-5 candles after the high/low was formed). They are only meant for live trading to use as reference points.
+15 Rispondi
@janor123, You need to understand pivot points first. then you can understand why pivot point appears later. it's not a random number, it appears when it confirms that if it's highest/lowest of left and right bars. when you give 5 for period, it checks 5 bars left and 5 bars rigth then it decides it's PP not not. this is not repaint, this is latency to find PPs. also no relation between PPs latency and this strategy/study and repaint is not possible in it. I recommend you to check and undertsand the the idea and script.
+1 Rispondi
Holidaya35 LonesomeTheBlue
@LonesomeTheBlue, Thank you so much for the wonderful script. Especially making it non-repainting. I can confirm that it does not repaint from forward testing in the last two weeks.
+4 Rispondi
Does it repaint ??? Reply
+7 Rispondi
Millberry LonesomeTheBlue
@LonesomeTheBlue, My ENTRY price changes.--isn't that repainting? It changes to the very bottom of the HA candle when the next candle starts. Thanks
Millberry Millberry
@Millberry, I STAND corrected. Repainting means changing AFTER the bar is closed. If it changes DURING the bar--it is not called Repainting.
Millberry Millberry
@Millberry, WAIT..................mine is repainting. Am I doing something wrong? Thanks
Hello! I apologize for the stupid question, how to use this script?
+5 Rispondi