Please help with EA code
OrderSend (_Symbol,OP_SELLSTOP,0.05,Bid-100*_Point,3,NULL,NULL,NULL,778,0,Red);
Please use Bid price for sell orders.
To create another buy stop order you need to wait for the previous order to be executed. For that you can use trade transaction event.
- www.mql5.com
Sry for the wrong link. Mql4 does not support that. You have to check orders and positions yourself.
Hi
Maby OrderSelect the last open order, check if it is buy/sell or buy stop/sell stop position and then open a buy or sell stop from that last order open price
but I need someone to assist with the code
Regards
This is an international English forum; post in English on this part of the forums. "Sry" is not a word, "Maby" is not a word.
Please don't write ur - it's "you are" or "your" - MQL4 programming forum (2014)
Hi
Sorry for this question maybe it's an easy one
I use the OrderSend function to open a sell stop X distance from price
OrderSend (_Symbol,OP_SELLSTOP,0.05,Ask-100*_Point,3,NULL,NULL,NULL,778,0,Red);
Now I want to open a Buy Stop but only when the above Sell Stop is triggered and X points from sell stop
Thanks in advance