LASTDCABUY is a strategy that buys only if the price is above or below our LAST DCA buy. This is not the last average price, rather the last price at which a DCA buy was made.
This buy strategy is true when the current ask price is below the price of our last DCA buy.
A buy_value is optional. Define a buy_value to add or substract x% from the last DCA buy price and make that new value our trigger value.
Note: The price of initial buy is shown if no DCA has happened yet.
DEFAULT_DCA_A_buy_strategy = LASTDCABUY
Price of our last DCA buy for this PAIR was 0.0352965
\\ Current ask price is 0.0351170 \\
So the LASTDCABUY value is true.
DEFAULT_DCA_A_buy_strategy = LASTDCABUY
DEFAULT_DCA_A_buy_value = -2
Price of our last DCA buy for this PAIR was 0.0352965
\\ Trigger = 0.0352965 * ((100 - 2) / 100) = 0.03459057 (-2 is our buy_value)
Current ask price is 0.0351170 \\
So the LASTDCABUY value is false as trigger is lower than current ask price.