Sergio Dutra Veiga:
Hi,
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
Fórum de negociação, sistemas de negociação automatizados e testes de estratégias de negociação
Vladimir Karputov, 2019.11.22 19:10
A linguagem MQL5 se tornou mais rigorosa - portanto, somente agora ocorreu esse erro.
A solução alternativa foi esta:
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 | //+------------------------------------------------------------------+
faça o seguinte:
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 | //+------------------------------------------------------------------+
Thank you so much friend
Você está perdendo oportunidades de negociação:
- Aplicativos de negociação gratuitos
- 8 000+ sinais para cópia
- Notícias econômicas para análise dos mercados financeiros
Registro
Login
Você concorda com a política do site e com os termos de uso
Se você não tem uma conta, por favor registre-se
VR---Moving:
Um Expert Advisor baseado no indicador iMA (Média Móvel, MA) e implementado como uma classe.
Autor: Vladimir Karputov