TradingView
LonesomeTheBlue
17 Apr 2020 pukul 15.58

Pivot Point SuperTrend [Backtest] 

Bitcoin / U.S. DollarGemini

Deskripsi

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
tradingview.com/script/L0AIiLvH-Pivot-Point-Supertrend/


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!

Catatan Rilis

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

Catatan Rilis

updated.
Komentar
janor123
@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.
LonesomeTheBlue
@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.
Holidaya35
@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.
nildur
@Holidaya35, what timeframe do you use Holiday
imranknayak27
@LonesomeTheBlue, 👍♥️👍
TLLewHenderson
@LonesomeTheBlue, I appreciate the explanation, thank you. Relatively new newb here and at first glance I hope I could have been forgiven for thinking the same, but of course every candle is a pivot point for the next so how could anyone or anything see a pivot unless it "has" pivoted!
gaurangnnj
Does it repaint ??? Reply
LonesomeTheBlue
Millberry
@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
Lebih lanjut