LonesomeTheBlue

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)


Enjoy!
Release Notes: 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
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?
If you find my works useful, please consider a donation
BTC: 19qDW9AShZhBZsGuXcgRzam5Fbpc3EU8EV
ETH: 0x39c8552371b9b7f4e324197af460ba8bc8e18ef9

Earn $30
https://www.tradingview.com/gopro/?share_your_love=LonesomeTheBlue

Kommentarer

@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.
+13 Svara
@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 Svara
AnthonyS999 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.
+1 Svara
Does it repaint ??? Reply
+7 Svara
Svara
I like your strategy, i'have implemented a second strategy Range Filter Buy and Sell and i made as whichever comes firts...doesn't look bad at all
+3 Svara
kkhaial riodda
@riodda, Hello friend, wondering if your willing to share your modification ?

Thanks mate
Svara
Hello! I apologize for the stupid question, how to use this script?
+2 Svara
If you make the backtest using trailing stop and take profit then it works quite well.
+2 Svara
Hem Aktie-screener Forex-screener Krypto-screener Ekonomisk kalender Hur det fungerar Diagramfunktioner Priser Tipsa en vän Ordningsregler Hjälpcenter Webbsidor och mäklarlösningar Widgets Diagramlösningar Lightweight Charting Library Blogg och nyheter Twitter
Profil Profilinställningar Konto och fakturering Hänvisade vänner Mynt Mina kölappar Hjälpcenter Privata meddelanden Chatt Logga ut