TYP:=(HIGH+LOW+CLOSE)/3; SUM(IF(TYP REF(TYP,1),TYP*VOL,0),N)/SUM(IF(TYP REF(TYP,1),TYP*VOL,0),N)
A1:MFI =REF(MFI,1)*1.1ANDV =REF(V,1)*1.1; A2:MFI =REF(MFI,1)*0.9ANDV =REF(V,1)*0.9; A3:MFI =REF(MFI,1)*1.1ANDV =REF(V,1)*0.9; A4:MFI =REF(MFI,1)*0.9ANDV =REF(V,1)*1.1; DRAWTEXT(A2,4,'衰退'),linethick3; DRAWTEXT(A1,1,'绿灯'),linethick3; DRAWTEXT(A3,3,'伪装'),linethick3; DRAWTEXT(A4,2,'蛰伏'),linethick3; 0.1
上唇:REF(SMA(Var1,5,1),3),COLORGREEN; 牙齿:REF(SMA(Var1,8,1),5),COLORRED; 下颚:REF(SMA(Var1,13,1),8),COLORBLUE;
上唇:REF(SMA(Var1,5,1),3),COLORGREEN; 牙齿:REF(SMA(Var1,8,1),5),COLORRED; 下颚:REF(SMA(Var1,13,1),8),COLORBLUE; Var1:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3); Var2:=CROSS(Var1,0.9); Var3:=BACKSET(REF(LOW,2)=LLV(LOW,5),3); Var4:=CROSS(Var3,0.9); drawicon(Var2,HIGH*1.01,4),Color00E40E; drawicon(Var4,LOW*0.99,5),Color00E40E; Var5:=IF(Var2,HIGH,IF(Var4,LOW,0)); {www.9m8.cn}POLYLINE(Var5,Var5),Colorff00ff;} Var6:=BACKSET(REF(HIGH,2)=HHV(HIGH,5)ANDLOW REF(LOW,1)ANDHIGH REF(HIGH,1),3); Var7:=BACKSET(REF(HIGH,2)=HHV(HIGH,5)ANDLOW REF(LOW,1)ANDHIGH REF(HIGH,1),3); Var8:=BACKSET(REF(HIGH,2)=HHV(HIGH,5)ANDHIGH REF(HIGH,1)ANDLOW REF(LOW,1) ANDREF(LOW,1) REF(LOW,2)ANDREF(HIGH,1) REF(HIGH,2),3); Var9:=BACKSET(REF(LOW,2)=LLV(LOW,5)ANDLOW REF(LOW,1)ANDHIGH REF(HIGH,1),3); VarA:=BACKSET(REF(LOW,2)=LLV(LOW,5)ANDLOW REF(LOW,1)ANDHIGH REF(HIGH,1),3); VarB:=BACKSET(REF(LOW,2)=LLV(LOW,5)ANDHIGH REF(HIGH,1)ANDLOW REF(LOW,1) ANDREF(LOW,1) REF(LOW,2)ANDREF(HIGH,1) REF(HIGH,2),3); 上向分形:REF(HIGH,BARSLAST(Var2)),POINTDOT,ColorEA91B5; STICKLINE(CLOSE,REF(HIGH,BARSLAST(Var2)),REF(HIGH,BARSLAST(Var2)),5,0),COLORMAGENTA; 向下分形:REF(LOW,BARSLAST(Var4)),POINTDOT,Color3791B5; STICKLINE(CLOSE,REF(LOW,BARSLAST(Var4)),REF(LOW,BARSLAST(Var4)),5,0),COLORYELLOW;
AO:SMA(Var1,5,1)-SMA(Var1,34,1),COLOR6699CC; STICKLINE(AO =REF(AO,1),0,AO,6,1),COLORRED; STICKLINE(AO =REF(AO,1),0,AO,6,1),COLORGREEN; AO,COLOR000000;
AO:=SMA(Var1,5,1)-SMA(Var1,34,1); AC:SMA((AO-SMA(AO,5,1)),5,1),COLOR6699CC; STICKLINE(AC =REF(AC,1),0,AC,6,1),COLORRED; STICKLINE(AC =REF(AC,1),0,AC,6,1),COLORGREEN; AC,COLOR000000;
AC:=SMA((AO-SMA(AO,5,1)),5,1); AO REF(AO,1)ANDAC REF(AC,1),COLORRED; AO REF(AO,1)ANDAC REF(AC,1),COLORGREEN; AO REF(AO,1)ANDAC REF(AC,1),COLORGRAY; AO REF(AO,1)ANDAC REF(AC,1),COLORGRAY;
OSC:(MA(CLOSE,SHORT)-MA(CLOSE,LONG))/MA(CLOSE,SHORT)*100,COLORSTICK; OSCMACD:MA(OSC,5);