Need a little help please

To add comments, please log in or register
[Deleted]
[Deleted]  
1) Can an EA open more than one order in the same time and at the same price? (without using a pending order). For example, I want to open 3 order at 3pm candle open.

2) Can an EA stop/close an order without using a pending order? For example, if we want to target $5.00, the order will stop if the profit reaches $5.00, vice versa for loss.

Thank you!
JC
1643
JC  

1) Can an EA open more than one order in the same time and at the same price? (without using a pending order). For example, I want to open 3 order at the same time at 3pm candle open.

You can place three market orders in immediate succession, but you're not guaranteed to get the same price on each one.


2) Can an EA stop an order without using a pending order? For example, if we want to target $5.00, the order will stop if the profit reaches $5.00, vice versa for lose.

Yes, having bought at market, you then just use OrderModify() to put a T/P level on the order such that the difference between the open price and the take-profit price equates to a profit of $5. Same for a stop-loss. However, if you have positions running overnight, you'll need to periodically adjust the T/P and S/L if you want to take swap into account.

To add comments, please log in or register