OPEN-SOURCE SCRIPT
Mis à jour

B-Xtrender [Backtest Edition] @QuantTherapy

23 113
Today I have published a Backtest edition of one of my scripts.
B-Xtrender @Puppytherapy


For anyone looking into the indicators please have in the source below where the logic behind the indicator is nicely explained also the source of the inspiration of me coding it in tradingview.

ifta.org/public/files/journal/d_ifta_journal_19.pdf

Strategy
  • Entry when both bars are in alignment both green = long / both red = short
  • Exit when one is against your direction of trade
  • TSL will also kick in and exit when the percentage is breached
  • Moving Average is there to filter entries. Will allow entry only when active when the price is above (long-only) or below ( short-only )


Hope you are having a great day !
Notes de version
  • Added Date Range inspiration by one of the Pine - Wizards
    How To Set Backtest Time Ranges
  • Added Trade Direction from the TV Engine to be able to select Long/Short and All Trades

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.