OrderSend buy in custom block mql4 doesn't work
-
HI all,
I don't unerstand why the following command inserted into a custom block mql4:OrderSend(Symbol(), OP_SELL, lots, Bid, 0, sl, tp, "Sell Order" ,group , 0, Red) ;
works correctly, while the following (buy) it doesn't work:
OrderSend(Symbol(), OP_BUY, lots, Ask, 0, sl, tp, "Buy Order", group, 0, Blue);
Thanks for everyone will answer.
-
I am not sure why, I have never used code to generate an order, but it looks like it should, try going to the main page and asking the admin
-
try changing "group" to "magic" and remove the space between the commas.
you may need to pass the output to a variable and print the errors from it as well. for that, you may have to read the mql4/5 documentationplease post your project link here if need more help.
Any reason to do this the hard way in FXdreema? then we can find an alternate way to do it.