algo_trading_weighted_strategy icon indicating copy to clipboard operation
algo_trading_weighted_strategy copied to clipboard

Error: incompatibility with pyramiding

Open eth-man opened this issue 1 year ago • 1 comments

i had this strategy running well for a few days with pyramiding settings at 2 orders ,take profit orders at 4 seems like the second buy and 4 take profit orders executed instantly
any idea what can cause this issue?

image

thanks

eth-man avatar Jul 19 '22 15:07 eth-man

Hello @eth-man, thanks for reporting the bug.

At the moment, the algorithm is incompatible with pyramiding. The Take Profit (TP) orders are assigned to a constant id ('Long' or 'Short'). As a consecuence, e.g., in the case of a long position, if is opened at a price higher than a previous TP order, the strategy will set instantaneously the TP orders that were satisfied.

AlbertoCuadra avatar Jul 28 '22 08:07 AlbertoCuadra