Hi
if ( NewPeriod )
{
GfxSelectSolidBrush( colorYellow );
GfxSelectPen( colorYellow, 2 );
Say( "hi its a New period" );
}
This is the code that gives me alert whenever new period occurs
but if i apply the same syntax for golden cross alert, afl shows error
goldencross= Cross(MA1, MA2); //moving average bullish
if ( goldencross )
{
Say( "hi its a goldencross" );
}
Can anyone please help me on this. Thanks
if ( NewPeriod )
{
GfxSelectSolidBrush( colorYellow );
GfxSelectPen( colorYellow, 2 );
Say( "hi its a New period" );
}
This is the code that gives me alert whenever new period occurs
but if i apply the same syntax for golden cross alert, afl shows error
goldencross= Cross(MA1, MA2); //moving average bullish
if ( goldencross )
{
Say( "hi its a goldencross" );
}
Can anyone please help me on this. Thanks
the condition isn't clear.