stop_loss_percent: 1.0 # sell if price drops by this %, . 1.0 = disabled
take_profit_percent: 100.0 # sell if price rises by this %, . 100.0 = disabled
Why is the first one disabled if 1.0, and the second only if 100.0? It's almost certainly a bug: the second is disabled if 1.0 (not 100.0).
Details
They're used in pdr_backend/sim/sim_trader.py. In __init__():
The problem
In ppss.yaml, it has:
Why is the first one disabled if 1.0, and the second only if 100.0? It's almost certainly a bug: the second is disabled if 1.0 (not 100.0).
Details
They're used in
pdr_backend/sim/sim_trader.py
. In__init__()
:Then example usage is:
Note how tp and sl are treated near-identically. And 1.0 = disabled makes sense for both.