can someone help me?
when i'm writing the CheckVolume function appears, i ve seen that some traders use it a lot in their system.
But when i try to find it in the guide, there isn't
can someone tell me where i can find this function?? and why not in the manual?
thank you very much for helping
When in doubt, analyse the contents of the source code file for the class in question. In this case: MQL5\Include\Trade\Trade.mqh
double CTrade::CheckVolume(const string symbol,double volume,double price,ENUM_ORDER_TYPE order_type)
if(order_type!=ORDER_TYPE_BUY && order_type!=ORDER_TYPE_SELL)
//--- setting request
//--- action and return the result
if(!::OrderCheck(m_request,m_check_result) && m_check_result.margin_free<0.0)
//--- normalize and check limits
Please note however, that it is a virtual method:
//--- method check
virtual double CheckVolume(const string symbol,double volume,double price,ENUM_ORDER_TYPE order_type);
i'm sorry but I redid another post because I could not find this post, thank you very much for the explanation.
Just go to the "Publications" section of your own profile and you will see the list of all the threads you have created. Alternatively, when you start a thread, mark it as a "Favorite" (by clicking the "star" just under the thread name), so that you can track it later in your "favorites" list (the "star" in the top menu on the right before you profile link).