Indicators with alerts/signal - page 547

stan dacian
44
stan dacian  

Is it possible to add this function. I find it very useful. Regards!

/ ------------------------------------------------- ----------------------------

/ / Function: NextHigherTF ()

/ / Description: Select the next higher time-frame.

/ / Note: M15 and M30 both select H1 as next higher TF.

/ / ------------------------------------------------ -----------------------------

NextHigherTF int (int iPeriod) {

if (iPeriod == 0) iPeriod = Period ();

switch (iPeriod) {

PERIOD_M1 houses: return (PERIOD_M5);

PERIOD_M5 houses: return (PERIOD_M15);

PERIOD_M15 houses: return (PERIOD_H1);

PERIOD_M30 houses: return (PERIOD_H1);

PERIOD_H1 houses: return (PERIOD_H4);

PERIOD_H4 houses: return (PERIOD_D1);

PERIOD_D1 houses: return (PERIOD_W1);

PERIOD_W1 houses: return (PERIOD_MN1);

PERIOD_MN1 houses: return (PERIOD_MN1);

default: return (Period ());

}

}

stan dacian
44
stan dacian  

It's about this indicator. This function MTF is needed to built it a .ea.

Mladen Rakic
154494
Mladen Rakic  
dacian21:
Is it possible to add this function. I find it very useful. Regards!

/ ------------------------------------------------- ----------------------------

/ / Function: NextHigherTF ()

/ / Description: Select the next higher time-frame.

/ / Note: M15 and M30 both select H1 as next higher TF.

/ / ------------------------------------------------ -----------------------------

NextHigherTF int (int iPeriod) {

if (iPeriod == 0) iPeriod = Period ();

switch (iPeriod) {

PERIOD_M1 houses: return (PERIOD_M5);

PERIOD_M5 houses: return (PERIOD_M15);

PERIOD_M15 houses: return (PERIOD_H1);

PERIOD_M30 houses: return (PERIOD_H1);

PERIOD_H1 houses: return (PERIOD_H4);

PERIOD_H4 houses: return (PERIOD_D1);

PERIOD_D1 houses: return (PERIOD_W1);

PERIOD_W1 houses: return (PERIOD_MN1);

PERIOD_MN1 houses: return (PERIOD_MN1);

default: return (Period ());

}

}

dacian21

Add it to what ?

camisa
587
camisa  

Hello, can someone program an "alertoncurrent" type of alert on teh attached indicator?

EMA 5 10 34 Crossoverl - Download - 4shared

ableq
9
ableq  

I can't find cyber cycle indicator who can help me and add alert? thank you

Files:
ableq
9
ableq  

I find it ,who can help me add alert,thank you

William Snyder
9492
William Snyder  
camisa:
Hello, can someone program an "alertoncurrent" type of alert on teh attached indicator? EMA 5 10 34 Crossoverl - Download - 4shared

Camisa, think this one here https://www.mql5.com/en/forum/general has that option

William Snyder
9492
William Snyder  
nbasuperstar:
I can't find cyber cycle indicator who can help me and add alert? thank you

Hello Nbasuperstar, added the alerts

Files:
ableq
9
ableq  

thank you ,have a good day

stan dacian
44
stan dacian  

//-----------------------------------------------------------------------------

// function: NextHigherTF()

// Description: Select the next higher time-frame.

// Note: M15 and M30 both select H1 as next higher TF.

//-----------------------------------------------------------------------------

int NextHigherTF(int iPeriod) {

if (iPeriod==0) iPeriod=Period();

switch(iPeriod) {

case PERIOD_M1: return(PERIOD_M5);

case PERIOD_M5: return(PERIOD_M15);

case PERIOD_M15: return(PERIOD_H1);

case PERIOD_M30: return(PERIOD_H1);

case PERIOD_H1: return(PERIOD_H4);

case PERIOD_H4: return(PERIOD_D1);

case PERIOD_D1: return(PERIOD_W1);

case PERIOD_W1: return(PERIOD_MN1);

case PERIOD_MN1: return(PERIOD_MN1);

default: return(Period());

to