TradingView
CryptoRox
25 sep 2017 03:55

Moving Average Cross and/or Bbands bot 

Bitcoin / US Dollar Perpetual Inverse Swap ContractBitMEX

Beskrivning

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/

Versionsinformation

Fixed a bug in the trailing stop.

Versionsinformation

Added comments at top to clarify the settings at time of posting.

Versionsinformation

- 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.

Versionsinformation

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
Kommentarer
E_crypto
Awesome script! Loving it so far. Question, is it possible to make it reverse the position instead of getting stopped out? I am working on upgrading it to V5.
allanster
This is an amazing job you have done on this! Extremely impressive work. Any chance you could be persuaded to add an option to choose between longs/shorts/longs&shorts? Doing so would open up this script's usefulness to a much larger audience. 2 of the largest crypto exchanges don't offer shorts.
John_Winkelman
This is better than Tradingview Pine reference guide.
This is a great tutorial and reference template to build your own strategy upon.
Every section can be used by itself.
This script holds many keys to step up your game.
DTCash
@CryptoRox Thanks for the amazing script! I still seem to be getting an indicator repaint warning message, which is giving me backtest results that are too good to be true. Is there anything I can do to prevent repainting?

Thanks again for all the hard work and for Autoview, I signed up last week and I'm sinking my teeth, I love the concept!
WhiteRabbit73
Nice script thanks but there seems to be a glitch in that you cannot calculate P&L based on % of the account, it will only calculate 1 contract per trade.
nojnoj33
Hi, this a great script ans very useful video on getting started with Autoview, do you have any recommendations on best Inputs for shorter time frames?

Thanks
SNOW_CITY
This is excellent!

Question - How do we set alerts on a strategy to command autoview? I have only been able to use alerts on non-strategy scripts.
CryptoRox
@SNOW_CITY, Hello good sir. We're glad you are enjoying the script. We appreciate your patience as this was not the simplest of strategies, initially, to turn into an alert script. However, we released the alert script and updated this one to include all the items necessary for alerts, plus an added feature for Martingale.

tradingview.com/script/zbgFlkXH-Alerts-Moving-Average-Cross-and-or-Bbands-bot/

We hope this helps get you up and running!
bunka
Really good template, ty CryptoRox!
mks17
Hi CryptoRox

Can we really use heikin ashi candles on tradingview? with the snippet you add to your strategy? without getting fantasy results?
Because of false entries and exits
Mer