OrderSend return an int not a bool . . . . so it returns a number not true/false https://docs.mql4.com/trading/OrderSend
If the OrderSend is successful a ticket number will be assigned immediately . . . when the transaction is activated the trade type will change from OP_BUYSTOP to OP_BUY
RaptorUK:
Thanks a lot RaptorUK! It clears up things for me!
OrderSend return an int not a bool . . . . so it returns a number not true/false https://docs.mql4.com/trading/OrderSend
If the OrderSend is successful a ticket number will be assigned immediately . . . when the transaction is activated the trade type will change from OP_BUYSTOP to OP_BUY
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
I am a beginner. Please tell me if I have this code to create a buy stop order
Will "BuyTicket" be assigned a number immediately or only when the Buy transaction is activated?
IOW will it only be assigned "true" or "false" (1; -1?) immediately and only later when the Buy transaction is activated given a proper number that can be read on MT4 terminal?
If this was a OP_BUY order will it be different?