Experts: FarhadCrab1 - page 5

 
Vladimir Karputov:

Here in the description : The Expert Advisor works on two iMA (Moving Average, MA) (with one indicator having a hard setting - period D1) and one iSAR (Parabolic SAR). The settings say:

MA: period (must be less than PERIOD_D 1)

I put D1 in the settings, the EA does not get on the chart, I put the setting Kurrent, it gets on the chart, but does not make trades today for some reason. Current is set by default.

 
Shara1:

Here in the description : The Expert Advisor works on two iMA (Moving Average, MA) (with one indicator having a hard setting - period D1) and one iSAR (Parabolic SAR). In the settings it says:

MA: period (must be less than PERIOD_D 1)

I put D1 in the settings, the EA does not get on the chart, I put the setting Kurrent, it gets on the chart, but does not make trades today for some reason. Current is set by default.

Read the description: "MA: period (must be less than PERIOD_D1)".

 
Vladimir Karputov:

Read the description: "MA: period (must be less than PERIOD_D1)".

Google translated it: it says that it must be less than D1. How much should I put on M1? Why doesn't it work with Kurrent?

 
Shara1:

It says it should be less than D1. How much should I put on the M1? Why doesn't it work with Kurrent?

PERIOD_CURRENT

Current period


That is, when the parameter "MA: period ..." is equal to PERIOD_CURRENT and the EA is on the timeframe M1, the parameter will be equal to M1. When you put the EA on D1 and the parameter "MA: period ..." is equal to PERIOD_CURRENT, it means that the parameter "MA: period ..." will be equal to D1 and this is a USER'S ERROR.

 
Vladimir Karputov:

PERIOD_CURRENT

Current period


That is, when the parameter "MA: period ..." is equal to PERIOD_CURRENT and the Expert Advisor is on the timeframe M1, the parameter will be equal to M1. When you put the EA on D1 and the parameter "MA: period ..." is equal to PERIOD_CURRENT, it means that the parameter "MA: period ..." will be equal to D1 and this is a USER'S ERROR.

I have it with PERIOD_CURRENT only on M1. What is the correct parameter to set ? Or any but less

Д1. I'm going to bed, it's 12.40 at night.

Thank you.

 

Correct the error in the code when initialising the daily MA

//--- create handle of the indicator iMA

You have

handle_iMA_D1=iMA(m_symbol.Name(),InpMA_period,PERIOD_D1,InpMAma_shift,InpMAma_method,InpMAapplied_price);


Apparently, it should be

handle_iMA_D1 = iMA(m_symbol.Name(),PERIOD_D1,InpMAma_period,InpMAma_shift,InpMAma_method,InpMAapplied_price);
Periods are mixed up
 
Андрей:

Correct the error in the code when initialising the daily MA

//--- create handle of the indicator iMA

You have


Apparently, it should be

Periods are mixed up

Thanks. Fixed. The code is awaiting republishing.