In my script Support & Resistance script witch you can find here:
I make use of a modified clone of Jurik's moving average under the hood to form a multiple line as middle line if you bands selected in settings. What i have done here is to borrowed that code to make a strategy to show case the power of that script.
The script buys/sells and exit on color change
When the ribbon change to blue it buys
When the ribbon change to orange it sells
The script exit the trade on change to gray
Setting Properties
Initial Capital = 100 000
Base Currency = Default
Order Size = 1
Pyramiding = 3
Commission = 4 USD per Order
Slippage = 2 ticks
As you can see this script is very simple and easy to follow. The original script has alerts set up for every color change so it is possible to automate it with your favorite bot script. But be aware that you always should do your own research before applying any strategy with real money.
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.