This was published in substitute of the original AVG price line that was already implemented into TradingVIew. Get the average price in the desired range you want.
This strategy will focus on up trend trading and down trend trading based on several indicators such as; for up trend 1. SAR indicator 2. Super trend indicator 3. Simple moving average for the period of 100 down trend 1. RSI Indicator 2. Money flow index 3. Relative volatility index 4. Balance of powder
This strategy has been published for a Pyramiding tutorial on the Backtest Rookies website. For a full overview of the code and an introduction to Pyramiding check out our site. Summary The code example will create a simple script that allows us to average down whenever our portfolio is down x%. The idea will be to bring our average cost down so that we can...