TradingView
Ekliptor
Jun 26, 2019 12:02 AM

Stochastic Direction Strategy 

Description

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