//KZ=25;
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
ObjectsDeleteAll();
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
int limit;
double temp;
int counted_bars=IndicatorCounted();
//---- check for possible errors
if(counted_bars0) counted_bars--;
// limit=Bars-counted_bars;
//----
int ii=1;
int SJC;
int XHKS;
int XSXS;
int ZQS;
int SJSXZC;
if(Period()==1) {return(-1);}
if(Period()==5) {return(-1);}
if(Period()==15) {limit=4000;
SJC=5400;
XHKS=TimeHour(Time[0])*4;
XSXS=4;
ZQS=96;
SJSXZC=900;}
if(Period()==30) {limit=2000;
SJC=3600;
XHKS=TimeHour(Time[0])*2;
XSXS=2;
ZQS=48;
SJSXZC=1800;}
if(Period()==60) {limit=1000;
SJC=0;
XHKS=TimeHour(Time[0]);
XSXS=1;
ZQS=24;
SJSXZC=3600;}
if(Period()==240) {return(-1);}
if(Period()==1440) {return(-1);}
if(Period()==10080) {return(-1);}
if(Period()==43200) {return(-1);}
//if(KZ>TimeHour(Time[0]))
//{
int TDAY=(TimeCurrent()+6*3600)/86400;
int BYear=TDAY-15332;
//int BYear=TDAY-因子;
for(int N=0;NNL[N])
BYear=BYear-NL[N];
}
// int B2009=TDAY-15007;
// int today2=BYear;
int today=BYear;
// int C2009=TDAY-14245;
if(today>15)today=today-15;
int CJ1=today*0.8;
double CCJJ1=today*0.8;
if (CJ1>=7)CJ1=CJ1-6;
if (CCJJ1>=7)CCJJ1=CCJJ1-6;
int CJ2=CJ1+12;
int FZS=(CCJJ1-CJ1)*60;
int TGS=BYear%10+6;
int DZS=BYear%12+8;
int JQS=BYear%15-9;
if(TGS>10)TGS=TGS-10;
if(DZS>12)DZS=DZS-12;
int bjCJ1=CJ1+shijian;
int bjCJ2=CJ2+shijian;
if(bjCJ1>24)bjCJ1=bjCJ1-24;
if(bjCJ2>24)bjCJ2=bjCJ2-24;