Hello guys, I just Followed THIS TUTORIAL, and made everything as it should be, but this error appear :
What is missing?Thanks.
...but this error appear
You didn't check the return value of OrderSend()
Please see: https://www.mql5.com/en/docs/trading/ordersend
I never programmed, i just got the ability to learn things fast, but sometimes i get stucked in some steps.
It's all in the documentation.
Just click the link and you will find it.
The OrderSend() function is used for executing trade operations by sending requests to a trade server.
bool OrderSend( MqlTradeRequest& request, // query structure MqlTradeResult& result // structure of the answer );
[in] Pointer to a structure of MqlTradeRequest type describing the trade activity of the client.
[in,out] Pointer to a structure of MqlTradeResult type describing the result of trade operation in case of a successful completion (if true is returned).
In case of a successful basic check of structures (index checking) returns true. However, this is not a sign of successful execution of a trade operation. For a more detailed description of the function execution result, analyze the fields of result structure.