I am trying to code an indicator to change the indicator color using a "if" conditional statement with no success.
PHP Code:
if(PeakUp==True)
{
#property indicator_color4 Lime
}
if(PeakUp==True)
{
#property indicator_color3 CLR_NONE
}
if(PeakUp==False)
{
#property indicator_color4 CLR_NONE
}
if(PeakUp==False)
{
#property indicator_color3 Red
}
Can anybody help??
Dave
<><<<