Indicators: MA Cross 3MACross Alert WarnSig

 

MA Cross 3MACross Alert WarnSig:

Crossover of three iMAs (Moving Average, MA). Alert, sound notification and email notification of the first crossover. Arrows mark the crossover.

MA Cross 3MACross Alert WarnSig alert

Author: Vladimir Karputov

 

MA Cross 3MACross Alert WarnSig (USDTRY,H1) Failed to copy data from the iMA indicator, error code 4806

 
CrazyTrend :

MA Cross 3MACross Alert WarnSig (USDTRY,H1) Failed to copy data from the iMA indicator, error code 4806

One and two errors at startup or when switching the timeframe - this is normal. This means that the indicator has not yet been built.

 

Hello!

When running in the tester I get an error - Failed to copy data from the iMA indicator, error code 4806

MA Cross 3MACross Alert WarnSig
MA Cross 3MACross Alert WarnSig
  • www.mql5.com
Индикатор рисует стрелки в местах пересечения трех индикаторов iMA (Moving Average, MA). Первый "First" - самая быстрая MA, второй "Second" - более медленная MA, и третий "Third" - самая медленная MA. Три вида уведомлений: алерт, звук и email. Индикатор MA Cross 3MACross Alert WarnSig имеет четыре индикаторных буфера: два ("Cross Up" и "Cross...
 
kesood:

Hello!

When running in the tester I get an error - Failed to copy data from the iMA indicator, error code 4806

This message happens at startup:

  alertsEmail=false
2019.01.01 00:00:00   Failed to copy data from the iMA indicator, error code 4806
2019.01.01 00:00:00   Failed to copy data from the iMA indicator, error code 4806
2019.01.01 00:00:00   Failed to copy data from the iMA indicator, error code 4806


Thank you for your remark. Now I will slightly change the algorithm and remove this error ...

 

I tried waiting, but the run doesn't start. Maybe I'm doing something wrong, of course, I'm just starting to figure it out.

Yesterday literally everything was working, today I got these errors, I blamed it on crooked quotes as I pull them from Binance. But I can't run it on USD either.

debug version of 'MA Cross 3MACross Alert WarnSig2.ex5', please recompile it

 
Vladimir Karputov:

This message happens at startup:


Thanks for the comment. Now I will slightly change the algorithm and remove this error ...

Thank you. The indicator is very useful.
 
Version "1.001" has been published.
 

Hello!

I'd like to know if it is possible to add parameter to show only alert when first and second MA cross third one?

 
uskaborja :

Hello!

I'd like to know if it is possible to add parameter to show only alert when first and second MA cross third one?

Yes you can: Three MA Arrow

Indicator idea

Three iMA (Moving Average, MA) indicators are used to determine the trend (' Fast ', ' Medium ', ' Slow '). Each indicator has four independent parameters:

  • MA XXXX: averaging period - averaging period
  • MA XXXX: horizontal shift - horizontal shift
  • MA XXXX: smoothing type - type of averaging algorithm
  • MA XXXX: type of price - the type of price on the basis of which the indicator is calculated

Up trend (signal to open a BUY position) - a condition is detected: ' Fast '> ' Medium ' and at the same time ' Medium '> ' Slow '. Downward trend (signal to open a SELL position) - a condition has been detected: ' Fast ' <' Medium ' and at the same time ' Medium ' <' Slow '.

The indicator displays signals on the current bar, therefore, signals on the current bar can appear and disappear.

Three MA Arrow

Figure: 1. Three MA Arrow

 

I put this indicator on my EURUSD M1 chart with the following setting 

First moving average
period = 10
shift = 0
method = smoothed 

Second moving average
period = 30
shift = 0
method = smoothed

Third moving average
period = 50
shift = 0
method = simple

I noticed a strange occurence at 2020.11.27 04:34 where I can clearly see the first MA has crossed above the second MA and the the third MA is below the second MA. At this point the UP ARROW should display but it did not. What happened and what I can do to rectify this ?