OPEN-SOURCE SCRIPT

Stochastic Direction Strategy

2032
This is a simple strategy based on the Stochastic Oscillator: stockcharts [DOT] com/school/doku.php?id=chart_school:technical_indicators:stochastic_oscillator_fast_slow_and_full

Its purpose is to gradually build a position in a trending market (as of June 26th 2016 in most cryptocurrencies).

Inputs:
- direction (long/short)
- overbought/oversold
- close positions (yes/no to only increase positions)

Outputs:
- buy/sell/close signals plotted on a chart below

This script can easily be used as a TradingView study (for alerts) and a strategy (for backtesting). See the comments in the code.

I have added additional alert conditions to be used easily together with a trading bot reading the signals
Yet obviously you can also do manual trading on each alert.

Disclaimer

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.