ADRIAN MATUSIAK:
Hello dear programmers,
I have a question, where is good place in code to input :
http://docs.mql4.com/account/accountfreemargincheck
Is it just before send trade or at beginning of code?
In order to make your trading reliable and robust to undesirable situations, I recommend to put it just before the OrderSend function
(digging into code of my own expert...)
if (Situation == TREND_MINIMUM) { if ( (AccountFreeMarginCheck (Bond_Name, OP_BUY, Pos_Size_Lots) <= 0.0) || (GetLastError () == ERR_NOT_ENOUGH_MONEY) ) { Action_Done = TRADING_ERROR_NOT_ENOUGH_MONEY; return (Action_Done); }
Sergiy Podolyak:
Ok, managed to do :)
In order to make your trading reliable and robust to undesirable situations, I recommend to put it just before the OrderSend function
(digging into code of my own expert...)
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
Hello dear programmers,
I have a question, where is good place in code to input :
http://docs.mql4.com/account/accountfreemargincheck
Is it just before send trade or at beginning of code?