CryptoRox

Moving Average Cross and/or Bbands bot

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.
https://www.youtube.com/watch?v=srR_ClDl...

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

Get your invite and join us in slack here:
http://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
Remove from Favorite Scripts Add to Favorite Scripts
@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!
Reply
I have just one question.
Have you created the corresponding study? I ask because it's known that in TradingView we can't create alerts base on strateies just on studies.
Reply
DTCash yechielaros
@yechielaros, He has, if you look through his scripts, you'll find one that is titled the same, but with (Alerts) in the title
Reply
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
Reply
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
+1 Reply
@mksamanes, yeah ive found the same thing, have you had any luck with a fix?
Reply
mksamanes pietersielie
@pietersielie, not yet but is in my future things to do, If I do I will let you know, let me know too if you find something
Reply
@mksamanes, im going to script heiken ashi myself and let the indicator do the buy and sell instead of the candles on the chart, should fix the issue i think
Reply
mksamanes pietersielie
@pietersielie, but that way you are unable to test or backtest the strategy and thats what im looking for...
Reply
@mksamanes, no you are misunderstanding, i'm going to code the the heiken ashi candles in the indicator in tradingview, and let the indicator make the decisions, instead of the opens and closes on the chart, so there will be normal candles on my chart, but heiken ashi in my indicator which does the buying and selling, therefore tradingview will do the back testing purely on my signals from the indicator, but on the values of normal candles, and thus represent true back testing, not fake results you get with using heiken candles on the chart
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Help Center Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing TradingView Coins My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out