Can someone point out to me the reason that I get a warning at line 46?
You don't mention what warning you get.
Probably that the return from OrderSend should be checked.
Check that it returns >0 else print the error.
Topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I have moved your topic to the MQL4 and Metatrader 4 section.
In future, please do not show screenshots of code.
Copy and paste code using the code button </> (Alt+S).
In future, please do not show screenshots of code.
Copy and paste code using the code button </> (Alt+S).
I am sorry, noted
int ticket=0; //--- ticket=OrderSend(...);
