This is the Dollar Cost Averaging (DCA) for the Jackrabbit suite and modulus framework.
The blue line is the current average price of the asset.
The red line is the deviation boundary. Price action must be below this line for buys to be signaled.
The green line is the take profit. Price action must be above this line for a sell signal to be generated.
Here is a list of the settings:
Buy method: DCA or Strategy. DCA allows the module to decide buys based upon the methodology (step, price). Strategy added to the average on the basis of a buy signal from the strategy, but only when it is below the deviation and is the most organic of dollar cost averaging.
Sell Method. Take profit or Steategy. Take Profit sells the asset as soon as the price action crosses above the take profit line. Strategy sells on the basis of a sell signal, but only if it is above the take profit. Selling never occurs at a loss, with the only exception being the exit point.
Methodolgy: Step or Price. Stepping allows a fixed and uniform averaging ant percise intervals of deviation. Price is a very aggressive approach that will drive the average down on the basis of the difference between the average and the current price action. The price methodology is VERY high risk.
Take Profit, which describes the average profit percent of the combined positions.
Deviation, which describes the percent boundary for which price action must drop before additional assets are purchased.
Sideways Breaker: This algorithm breaks the sideways rut by forcing a purchase after X days, minimum 1 day.
Exit Position: Internal stop loss expressed in the number of buys.
It is important that when you establish your sell signal, ALL positions must be sold to ensure the average profit. If required, use a CLOSE ALL message provided by your platform. Also, any platform specific DCA or Safety Orders will cause losses as this script can not track their value. It is recommended that these features not be used.
The Jackrabbit modulus framework is a plug in play paradigm built to operate through TradingView's indicator on indicatior (IoI) functionality. As such, this script receives a signal line from the previous script in the IoI chain, and evaluates the buy/sell signals appropriate to the current analysis.
This script is by invitation only. To learn more about accessing this script, please see my signature or send me a PM. Thank you.