OPEN-SOURCE SCRIPT

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
Forexinside-barInside BarpricepriceactionstopbuystoplosstakeprofitTrend AnalysisVolatility

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer