Market Condition Evaluation based on standard indicators in Metatrader 5 - page 228

To add comments, please log in or register
GodAtum
46
GodAtum  
Sergey Golubev:

It was created:

- alert on warning mode was fixed, besides - you can specify the pausing in seconds, and how many alerts after signal (for warning alert only)

- AutoPeriodsDetect parameter was added: indicator is having auto-settings with H1 and smaller timeframe as 9/26/52, and for H2 and larger 72/144/288. So, no need to change anything in the settings concerning it.

I am testing indicator it now.

PS. Indicator is uploaded, and this 'links post' was edited

is there a latest version, would love to try this out?

Sergey Golubev
Moderator
109298
Sergey Golubev  
GodAtum:

is there a latest version, would love to try this out?

Which post?
Because there are 228 pages here ...

GodAtum
46
GodAtum  
Sergey Golubev:

Which post?
Because there are 228 pages here ...

https://www.mql5.com/en/forum/9773/page55#comment_540972

has v11, is that the latest?

Market Condition Evaluation based on standard indicators in Metatrader 5
Market Condition Evaluation based on standard indicators in Metatrader 5
  • 2013.07.05
  • www.mql5.com
I just started this thread as a continuation of the talking made on this topic (we can read it). Or...
Sergey Golubev
Moderator
109298
Sergey Golubev  

Yes, I found - post #547

I will check it now (it should be the latest with no error ... but I will check).

Sergey Golubev
Moderator
109298
Sergey Golubev  

It compiled in MetaEditor with no error (so seems - it is the latest version) - 


Sergey Golubev
Moderator
109298
Sergey Golubev  

The settings/parameters - 

input int      Tenkan            =     9;    // Tenkan-sen
input int      Kijun             =    26;    // Kijun-sen
input int      Senkou            =    52;    // Senkou Span B
input bool     AutoPeriodsDetect =  true;
input int      SignalMode        =     4;    // Signal Mode: 0-off,1-Tenkan/Kijun,2-Chinkou/Cloud,3-Chinkou/Price,4-all together
input int      AlertMode         =     4;    // Alert Mode: 0-off,1-Tenkan/Kijun,2-Chinkou/Cloud,3-Chinkou/Price,4-all together
input int      WarningMode       =     1;    // Warning Mode: 0-off,1-on
input int      SoundsNumber      =     1;    // Number of sounds after Signal
input int      SoundsPause       =     5;    // Pause in sec between sounds 
input string   UpSound           = "alert.wav";
input string   DnSound           = "alert2.wav";

Forum on trading, automated trading systems and testing trading strategies

Market Condition Evaluation based on standard indicators in Metatrader 5

Sergey Golubev, 2013.07.09 17:13

It was created:

- alert on warning mode was fixed, besides - you can specify the pausing in seconds, and how many alerts after signal (for warning alert only)

- AutoPeriodsDetect parameter was added: indicator is having auto-settings with H1 and smaller timeframe as 9/26/52, and for H2 and larger 72/144/288. So, no need to change anything in the settings concerning it.

...

void OnInit()
{
   if(Period() <= PERIOD_H1 && AutoPeriodsDetect)
   {
   tenkan = 72; kijun = 144; senkou = 288;   
   }
   else
   {
   tenkan = Tenkan; kijun = Kijun; senkou = Senkou;
   }
Sergey Golubev
Moderator
109298
Sergey Golubev  

It works, but it keeps all the historical signals on the chart so the indicator need to be fixed in this case anyway.


To add comments, please log in or register