Hi,
I have two questions..
The first,
Is there a way to place an order and according to the price it will automatically get executed as either market or Stop order? If price is lower then open_target price it'll be a BuyStop or if it's already passed it, a Market (vice versa for sell). Or is it done by monitoring the price and then deciding (through IFs and other statements) what to do? Is OrderSend smart enough for that? I couldn't find something about it but I'm not sure I was able to perform a meaningful search.
The second,
What would be the best way to open an order at the high or low of a small bar that doesn't pass the StopLevel from current price? Note the designated price and monitor the price movement and open a Market order when the price exceeds the noted price?
[EDIT]
Oh, and how do I tell an EA to close the opposite orders once a Stop order has been triggered?
Hope I explained it correctly. Pointers to documentation or explanations would be very much appreciated.
TIA.
I have two questions..
The first,
Is there a way to place an order and according to the price it will automatically get executed as either market or Stop order? If price is lower then open_target price it'll be a BuyStop or if it's already passed it, a Market (vice versa for sell). Or is it done by monitoring the price and then deciding (through IFs and other statements) what to do? Is OrderSend smart enough for that? I couldn't find something about it but I'm not sure I was able to perform a meaningful search.
The second,
What would be the best way to open an order at the high or low of a small bar that doesn't pass the StopLevel from current price? Note the designated price and monitor the price movement and open a Market order when the price exceeds the noted price?
[EDIT]
Oh, and how do I tell an EA to close the opposite orders once a Stop order has been triggered?
Hope I explained it correctly. Pointers to documentation or explanations would be very much appreciated.
TIA.