OPEN-SOURCE SCRIPT

Moving Average Cross and/or Bbands bot

Updated
Hello TradingView and world!

This is one of our latest concepts for an actual bot builder. This script comes with a bunch of features that we're hoping will alleviate a lot of the stress and confusion around using and building strategies here on TV. Especially if the end-goal is to automate the strategies using Autoview.

This is a combination of 2 strategies, and gives you full control of each component within the script.

The 2 strategies are:
2 Moving Averages == if close is greater than moving average and moving average 1 is greater than moving average 2
Bolling Bands == if close is less than lower or greater than upper

Features / Settings included :
- Ability to change settings from a commodity market (default) to an altcoin or forex market.
- Backtest time period selector component
- Heiken Ashi Candles on/off
- Moving Average Strategy on/off
- Bollinger Bands Strategy on/off
- Both Moving Average settings can be adjusted
- Bollinger Bands length and multiplier can be adjusted.
- Pyramiding Greater Than, Equal To, or Less Than
- Trailing Stop with the ability to set a price in which the Trailing Stop activate
- Take Profit on/off and editable
- Stop Loss on/off and editable
- Margin Call on/off dependent on Leverage which is editable
- If pyramiding is used, the strategy will calculate and display your average on the chart
- Profit and Loss visuals added to the chart

You can watch a video here on how all the settings can be used and work together.
youtube.com/watch?v=srR_ClDlQx8

You can learn more about Autoview here:
autoview.with.pink/

Get your invite and join us in slack here:
slack.with.pink/
Release Notes
Fixed a bug in the trailing stop.
Release Notes
Added comments at top to clarify the settings at time of posting.
Release Notes
- Made adjustments to Trailing Stop, Take Profit and Stop Loss and Margin Calls.
-This allowed for the amalgamation of the 4 conditions into a single alerts. (An adjustment necessary for the alert script).

- Added an option to mimic the Martingale strategy when pyramiding by doubling the order quantity size of your last open.
Release Notes
Removed Heiken Ashi due to reports of repainting, even with them being built-in script.
Removed Martingale
Set default to Moving Average Cross 50, 200
Changed test start year date to 1
automationautoviewBitcoin (Cryptocurrency)Bollinger Bands (BB)bollingerbandstrategybotsMoving Averagespinkcoin

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