TYP := (IF(ISNULL(HIGH),CLOSE,HIGH) + IF(ISNULL(LOW),CLOSE,LOW) + CLOSE)/3; CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
平均:MA(CCI,7);
平均2:MA(CCI,10);
平均3:MA(CCI,15);
//www.fxjgsw.com
持股:90;
fu:-90;
天线:238;
STICKLINE(CCI>平均3,CCI,平均,10,0),colorred;
STICKLINE(平均>平均2,平均,平均2,10,0),colorred;
STICKLINE(CCI<持股,CCI,持股,10,0),colorgray;
STICKLINE(CCI<平均2,CCI,平均,10,0),colorgray;
DRAWTEXT(CROSS(平均,平均2),天线,'底'),colorred;
STICKLINE(平均<平均3,平均,平均3,10,0),colorgray;
DRAWTEXT(CROSS(平均2,平均3),fu,'买'),colorred;
DRAWTEXT(CROSS(CCI,平均3),天线,'买'),colorred;
DRAWTEXT(CROSS(平均2,CCI),天线,'卖'),colorblue;
|
