Is it ok to place two stop orders (buy and sell) at the same time,I mean will the broker allow me?(with the help of an ea ofcrse)
For example 1 above the high and 1 below the low of "candle" once its closes?
I've reviewed again the limitation of placing orders and still cant figure out why the SL and TP are not being placed...the orders themselves are placed but not the Sls and TPs.
I've thought its the problem with the StopLevel but the stop orders(buy/sell) are being placed...
Please, I really need you to point me in the right direction..here is the code thanks.
int ssl= High+((10*xecn)*Point);
int stp= OrderOpenPrice()-(Range*3);
int bsl= Low-((10*xecn)*Point);
int btp= OrderOpenPrice()+(Range*3);
Range var is:
Range = ((High-Low)+(20*xecn)*Point);
xecn is either 1 or 10 (adjustment to chart)
Why aren't you checking the OrderSend() return value to check if it worked or failed ? then if it failed you can print the error and any associated useful variables, e.g. Bid, Ask, Open price, Lotsize, SL, TP, etc.
Read this and implement it: What are Function return values ? How do I use them ?
Please enable the necessary setting in your browser, otherwise you will not be able to log in.