//+------------------------------------------------------------------+
int OnInit()
{
datetime ExpiryDate=D'2015.02.26';
if(TimeCurrent()>=ExpiryDate)
{
Alert("This indicator has expired. Contact xxx for new version");
return(INIT_FAILED);
}
else
{
Print(" Indicator Valid");
}
IndicatorBuffers(2);
SetIndexStyle(0, DRAW_ARROW);
SetIndexArrow(0, 108);
SetIndexStyle(1, DRAW_ARROW);
SetIndexArrow(1, 108);
SetIndexBuffer(0, G_ibuf_84);
SetIndexBuffer(1, G_ibuf_88);
if (AlertOnClosedCandle) SignalCandle=1;
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+