Scale In : Scale Out strategy is an adaptation and extension of dollar-cost-averaging.
As the name implies it not only scales in - allocates a given percentage of available capital to buy at each bar - it also scales out - sells a given percentage of holdings at each bar when a target profit level is reached.
The strategy can potentially mitigate risks...
Average purchase price
This tool calculates the average purchase and sell price and the profit/loss ratio for the selected symbol based on the user's inputs for the purchase and sell prices and the entry and exit amounts.
Using Average purchase price with DCA strategy
This tool can be used to track the performance of your dollar cost averaging...
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
1. RSI Indicator
2. Money flow index
3. Relative volatility index
4. Balance of powder
This just shows you the results if, for example, you bought the closing price each day that formed a red candle.
Works on other timeframes than daily.
In the options you can set your own start date, as well as the dollar amount to spend on each buy.
Displays your dollar cost average, total invested, and total portfolio value over time.
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.
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...