Re: MT4 Indicators with alerts/signals

815
TEAMTRADER wrote: Mon Jul 10, 2017 9:51 pm Could a signal and alert be added to this 4 timeframe NonLag indicator please?
To signal and alert when all the timeframes agree as in the illustration with vertical lines manually entered.
It is a brilliant confirmer.
Regards
TEAMTRADER
It is originally "4 time frame NonLagMa nmc " - no copy version was posted by MLADEN
any way here is upgraded version by MLADEN with alerts - alerts level and some more features - and it is using upgraded ver indicator "Nonlag ma nrp & mtf + alerts nmc" indicator for to work
posted here
https://www.forex-station.com/viewtopic ... 1295359638
Indicator is just a tool.

Use it only if it can benefit you. Leave it if you don't know how to use it optimally.


Re: MT4 Indicators with alerts/signals

816
mladen wrote: Mon Jul 10, 2017 3:02 pm Show your code
double EI(int i)
{
double up = iCustom(NULL,0,"engulfing-indicator",0,i+1)!=0;
double dn = iCustom(NULL,0,"engulfing-indicator",1,i+1)!=0;

if(up)
{
return(1);
}
if(dn)
{
return(-1);
}

return(0);
}

bool Arrowup(int i)
{

bool up=false;

up = EI(i)==1;

if(up)
{
return true;
}
return false;



}
bool Arrowdn(int i)
{
bool dn=false;

dn = EI(i)==-1;

if(dn)
{
return true;
}
return false;
}


thanks mladen.

Re: MT4 Indicators with alerts/signals

817
Cladi39 wrote: Tue Jul 11, 2017 10:29 am double EI(int i)
{
double up = iCustom(NULL,0,"engulfing-indicator",0,i+1)!=0;
double dn = iCustom(NULL,0,"engulfing-indicator",1,i+1)!=0;

if(up)
{
return(1);
}
if(dn)
{
return(-1);
}

return(0);
}

bool Arrowup(int i)
{

bool up=false;

up = EI(i)==1;

if(up)
{
return true;
}
return false;



}
bool Arrowdn(int i)
{
bool dn=false;

dn = EI(i)==-1;

if(dn)
{
return true;
}
return false;
}


thanks mladen.
In mql a boolean expression like

if(dn)

means : "if dn is different from zero"

Use some other comparison - ie : (if dn==-1) for example

Re: MT4 Indicators with alerts/signals

818
mntiwana wrote: Tue Jul 11, 2017 9:03 am It is originally "4 time frame NonLagMa nmc " - no copy version was posted by MLADEN
any way here is upgraded version by MLADEN with alerts - alerts level and some more features - and it is using upgraded ver indicator "Nonlag ma nrp & mtf + alerts nmc" indicator for to work
posted here
https://www.forex-station.com/viewtopic ... 1295359638
It is the same indicator - it is just when I was uploading to Forex-station that it got renamed (for some reason unknown by me).
I had not realised that it was a repainting indicator - I have not seen a change in colour whilst I have been using it.
Thanks
TEAMTRADER

Re: MT4 Indicators with alerts/signals

819
TEAMTRADER wrote: Tue Jul 11, 2017 6:22 pm It is the same indicator - it is just when I was uploading to Forex-station that it got renamed (for some reason unknown by me).
I had not realised that it was a repainting indicator - I have not seen a change in colour whilst I have been using it.
Thanks
TEAMTRADER
It is not repainting
As it has been a long time ago an repeatedly over and over : multi time frame updating of higher time frame current (still opened) bars is not repainting and it never was repainting. If you avoid updating that, then you get repainting