TradingView
myncrypto
28 Tem 2022 03:11

Strategy Backtesting Template [MYN] 

Bitcoin / TetherUS PERPETUAL CONTRACTBinance

Açıklama

A few people have been asking me to share my backtesting template. Currently I use this as my starting point for validating existing strategies and developing new ones.

Features:

  • Trading Date Range [Start / End]
  • Trade Direction [Long/Short/Both]
  • 4 progressive take profits with target percents and percentage of position to take profit on (Thanks adolgo)
  • Variable percentage Stop Loss
  • Automatic ProfitView Alert Syntax builder for Longs and Shorts
  • ADX checkbox to automatically add conditional logic to your strategy


Sürüm Notları

Fixed typo in the example strategy shortCondition referencing the longConditionEntry

Sürüm Notları

  • Added EMA Filter
  • Added MASANAKAMURA ADX option to existing ADX Filter
  • Added Time Of Day Window
  • Added Performance Summary Dashboard
  • Added Monthly Performance Dash (Thanks @QuantNomad)
  • Fixed leverage calculation (Thanks Cybertron)
Yorumlar
bizneslab
He repaints. The signal disappeared when refreshing the page.
metaversesherpa
After testing a bit more, I don't think the TP and SL calculations take into account leverage. Thoughts?
metaversesherpa
Does the script take into account the leverage on open trades? If I increase leverage to 5x or 10x and I have an open trade, the actual trade with 5x or 10x will hit the TP or SL while this script shows that the trade hasn't hit the TP or SL. Would love to see how you might fix this.
Dystopia45
Does this strategy include repaints?
A warning message appears when an alarm is created.
Dav_1d
Hey,
Well done !

Does the stop loss only work after the candle has closed?
or am I missing something?
aknappster
Great to look at your script, nice and clear. It could do with a bot alerts section for setting up the for Short & Long entries and exits with all the relevant fields for TP on entry and exits. I'm currently developing a strategy to use with the Davidd.tech bot which requires these fields. Also moving the SL to the entry price if you hit the first TP would be helpful as an option. Expanding on the filters it has and adding on your dashboard would be great too. Keep up the good work!
myncrypto
@aknappster, great feedback! Will consider your suggestions! Thank you
aknappster
@myncrypto, Just to add that a day filter would also be useful , most trading strategies don't do well on the weekend due to lack of volume
cryptofutures2021
Hi @myncrypto thanks for sharing this, i am getting below error, can you please advise.
"bar magnifier is available to premium users"
myncrypto
@cryptofutures2021, sorry about that. I enable bar magnification on all my strategies and forgot not everyone has premium. To disable it, uncheck the bar magnifier in the strategies properties window at the very bottom
Daha Fazla