hey bro
Eng Keat Ang:
How to make sure Ordersend() successful before assign value "555" to variable oldSellEntry?
I think the answer should be :
int sellCheck1 = OrderSend(_Symbol,OP_SELLLIMIT , NormalizeDouble( sellLot ,2 ), ighest1,3, SL_TMP, TP_TMP, "1" ,0,0,Red) if(sellCheck1 > 0) { oldSellEntry = 555; }
But i remember i read somewhere saying OrderSend function must with if statement otherwise new version of mt4 causes error. But I don't know how to put if statement on orderSend
- You remember wrong.
- OrderSend does not return a boolean.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
How to make sure Ordersend() successful before assign value "555" to variable oldSellEntry?