LASTPENDING is a strategy that buys only if the ASK price is below the avg price of latest pending order for our PAIR.
If the pending log does not contain this PAIR indicator always returns false.
A buy_value is optional. Define a buy_value to add or substract x% from the avg price of latest pending order for our PAIR and make that new value our trigger value.
DEFAULT_DCA_A_Buy_Strategy = LASTPENDING
DEFAULT_A_buy_strategy = LASTPENDING
Avg Price of our last pending for this PAIR was 0.0352965
\\ Current ask price is 0.0351170 \\
So the LASTPENDING value is true.
DEFAULT_A_buy_strategy = LASTPENDING
DEFAULT_A_buy_value = -2
Avg Price of our last pending 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 LASTPENDING value is false as trigger is lower than current ask price.