Order Execution Price
-
I understand that if the execution type is based on market order, the price will be based on the next open price. But are there other possible ways to change the execution price? I would like to set the execution price based on stop loss or take profit price.
Thanks :)
-
You can tell the broker to cheat and allow with it to use the
close
price.- See Docs - Broker
You can tell the system to cheat and allow you to intervene before the open (even if the bar is already complete)
But you cannot set the execution price to anything which is not part of the
OHLC
set.You can use bracket orders to have stop-loss/take-profit, but this doesn't guarantee an execution price.
-
You can issue an order as
stop
order orlimit
order.
docs - order management and execution -
Thanks @backtrader and @ab_trader for the suggestion.