Re: combo order with stoploss and takeprofit
is it a fixed percentage? why not just write the code to calculate
limitPrice = 100 takeProfitLimitPrice = limitPrice * 1.5 stopLimitPrice = limitPrice * 0.5 stopLimitAux = stopLimitPrice - 0.15 #parent order parent.lmtPrice = limitPrice #profit taker takeProfit.lmtPrice = takeProfitLimitPrice #stop limit stopLimit.lmtPrice = stopLimitPrice stopLimit.auxPrice = stopLimitAux
toggle quoted message
Show quoted text
I am familiar with such bracket orders.?
but how can I set an exit price?
parent.lmtPrice = limitPrice
I would like to use a percentage basis on the parent combo.?
note - this is intended for pair training?
?
|