Experts: freeman

 

freeman:

Strategies based on iMA (Moving Average, MA) and iRSI (Relative Strength Index, RSI)

freeman

Author: Vladimir Karputov

 

got this after compilation

'INIT_FAILED' - expression not boolean freeman.mq5 446 20

'INIT_FAILED' - expression not boolean freeman.mq5 452 17

 
Lana Grigoryeva :

got this after compilation

'INIT_FAILED' - expression not boolean freeman.mq5 446 20

'INIT_FAILED' - expression not boolean freeman.mq5 452 17

The MQL5 language is constantly evolving and becoming stricter: some things are now not tested. Please download version 1.001 from the Russian part of the forum:  freeman:

 
Lana Grigoryeva:

got this after compilation

'INIT_FAILED' - expression not boolean freeman.mq5 446 20

'INIT_FAILED' - expression not boolean freeman.mq5 452 17

Just Replaced the "INIT_FAILED" TO "FALSE"

else
   if(risk>0.0)
     {
      if(m_money!=NULL)
         delete m_money;
      m_money=new CMoneyFixedMargin;
      if(m_money!=NULL)
        {
         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);
        }


Then try to recompile the script from the meta editor.

 
Leandro Saley :

Just Replaced the "INIT_FAILED" TO "FALSE"


Then try to recompile the script from the meta editor.

Use the button to insert the code Code (the first time I corrected your message). I also highly recommend using the Styler Styler.

 
Vladimir Karputov:

Use the button to insert the code  (the first time I corrected your message). I also highly recommend using the Styler .

Hello Sir,

Thank's for your Code.

I have Run This Code(Expert) on Demo Ac  EURUSD For Jan 21 and There is  No Trade. Is there any my Mistake? Please check it and guide me what change should i do.

I got this type of Message as  

2021.02.18 15:11:18.804 Tester quality of analyzed history is 20% (28759 minute bars, tick volume errors 0, spread errors 22834)

Please help me further what should i do.  
 
Arvind Shah :

Hello Sir,

Thank's for your Code.

I have Run This Code(Expert) on Demo Ac  EURUSD For Jan 21 and There is  No Trade. Is there any my Mistake? Please check it and guide me what change should i do.

I got this type of Message as  

2021.02.18 15:11:18.804 Tester quality of analyzed history is 20% (28759 minute bars, tick volume errors 0, spread errors 22834)

Please help me further what should i do.  

What version of the advisor? What is the symbol? What are the parameters of the advisor? Where is the log file? What are the launch dates?