BacktestRookies

Babypips: Inside Bar Momentum Strategy

The strategy contained in this post comes courtesy of babypips (.com), an excellent resource for all thing forex related. If you are new to trading, the site is definitely worth checking out!

Code commentary and an introduction to Inside Bars are available for this post on the Backtest-Rookies (.com) website.

Note: If you are interested in custom development services, please check out our services page on the Backtest-Rookies site.

Strategy Overview

Inside Bar Momentum Strategy.

  • Inside Bar Detection
  • Position sizing based on stoploss distance (Note: Based on equity and assumes that the account currency is the counter currency.
  • Stop buys for entries
  • Takeprofit / Stoplosses for exits
  • Control Stopbuy, Takeprofit and Stoploss targets with inputs
  • Control Backtest start/end dates

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.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?