gspt1:=(HIGH+LOW+CLOSE)/3;
gspt2:=MA(gspt1,12);
gspt3:=AVEDEV(gspt1,12);
gspt4:=HHV(HIGH,12);
gspt8:=LLV(LOW,12);
gspt9:=100*(gspt4-CLOSE);
CCI:(gspt1-gspt2)/(0.015*gspt3);
WR1:EMA(gspt9/(gspt4-gspt8),5),LINETHICK2;
90;-90;0;
时机CCI:EMA((gspt1-gspt2)/(0.015*gspt3),2.0332),COLORWHITE;
TY:=H;
DRAWTEXT_FIX(C>O,0.01,0.1,0,'公式平台,公式源码 http://www.gspt.com '),COLOR222233;
STICKLINE(时机CCI< -150,时机CCI,-150,2,0),COLOR0000BB;
STICKLINE(C>0,-150,-151,2,0),COLORBLUE;
STICKLINE(时机CCI>150,时机CCI,150,2,0),COLOR0000BB;
STICKLINE(C>0,150,151,6,0),COLORBLUE;
DRAWICON(CROSS(CCI,0) OR CROSS(时机CCI,WR1),0,7);
DRAWICON(CROSS(CCI,时机CCI) AND 时机CCI>100,时机CCI,15);
DRAWICON(CROSS(CCI,-130),-153,1);
DRAWICON(CROSS(153,时机CCI),153,2);