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
Remove from Favorite Scripts Add to Favorite Scripts
can this execute trades on your behalf?
Reply
good job!but how to change it to indicator and add alert?
Reply
@koolaysun, change "strategy" to "study" in row7. And add use the function alertcondition for alerts.
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar Shows How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Help Center Refer a friend Feature Request Blog & News Twitter
Profile Profile Settings Account and Billing Refer a friend My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out