In the installation of VR --- Moving.mq5 (codebase) is reporting error in two lines of file Moving.mqh.
Thanks
Hi,
In the installation of VR --- Moving.mq5 (codebase) is reporting error in two lines of file Moving.mqh.
Thanks
Trading forum, automated trading systems and testing trading strategies
Vladimir Karputov, 2019.11.22 19:10
The MQL5 language has become more rigorous - so only now has this error occurred.
The workaround was this:
if(!m_money.Init(GetPointer(m_symbol),Period(),m_symbol.Point()*digits_adjust)) return(INIT_FAILED); m_money.Percent(risk); } else { Print(__FUNCTION__,", ERROR: Object CMoneyFixedMargin is NULL"); return(INIT_FAILED); } } //--- return(true); } //+------------------------------------------------------------------+ //| Create the horizontal line| //+------------------------------------------------------------------+
do the following:
if(!m_money.Init(GetPointer(m_symbol),Period(),m_symbol.Point()*digits_adjust)) return(false); m_money.Percent(risk); } else { Print(__FUNCTION__,", ERROR: Object CMoneyFixedMargin is NULL"); return(false); } } //--- return(true); } //+------------------------------------------------------------------+ //| Create the horizontal line| //+------------------------------------------------------------------+
When I Compile Header File "Moving.mph"
It has error
'INIT_FAILED' - expression not boolean Moving.mqh 213 20
Also When I compile the Expert File "VR--Moving.mph"
It has error also.
'm_moving' - undeclared identifier VR---Moving.mq5 66 4
Can You Please help me to solve this issue.
Thanks Very Much
When I Compile Header File " Moving .mph"
It has error
'INIT_FAILED' - expression not boolean Moving.mqh 213 20
Also When I compile the Expert File "VR--Moving.mph"
It has error also.
'm_moving' - undeclared identifier VR---Moving.mq5 66 4
Can You Please help me to solve this issue.
Thanks Very Much
In the above line, replace 'INIT_FAILED' with 'false'.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
VR---Moving:
An Expert Advisor based on indicator iMA (Moving Average, MA) and implemented as a class.
Author: Vladimir Karputov