Execute an order at a particular price
I want to execute an order at a particular price. How can I do that?
Lets say on 20-07-2020 O- 1.1312 H-1.2612 L-1.1121 C-1.1411
and I want to wait till the price reaches the 1.1312 Price again and execute the order at that date.
Is there any way to do that?
@ab_trader I tried exectype=Order.Limit and price=1.2612 which is the high price of the 20-07-2020 date, but the order gets executed at the next candles open price i.e the open price of 21-07-2020.
Orders can be executed no earlier than next bar or when the price matches the order conditions. If next bar
openprice lower than you
limitprice, than yes, order should be executed at the
openprice. This is first price which meets
@ab_trader but what if I want the order to be executed at the exact price i.e 1.2612 it can appear at the 10th candlestick from the current one.
So lets say the price 1.2612 I will wait for the 10th candlestick and the moment it matches the order gets executed.
In real life orders are executed by certain rules,
btsimulates real life at its best. I've already gave you a link to types of orders, here is another link to Docs - Orders - Creation/Execution. You can choose type of order which will give you desirable results.