主圖公式: N:=2; M:=2; P:=0; X:=0; HH:=HHV(高,2); LL:=LLV(低,2); H1:=IFELSE(HH<REF(HH,1)&&LL<REF(LL,1)&&REF(OPEN,1)>關(guān)閉&&打開>關(guān)閉&&(HHV(OPEN,0)-關(guān)閉)>0,REF(HH,0) ,0); L1:=IFELSE(LL>REF(LL,1)&&HH>REF(HH,1)&&REF(OPEN,1)<CLOSE&&OPEN<CLOSE&&(CLOSE-LLV(OPEN,0))>0,REF(LL,0) ,0); H2:值(H1>0,H1); L2:VALUEWHEN(L1>0,L1); K1:=IFELSE(收盤>H2,-3,IFELSE(收盤<L2,1,0)); K2:=VALUEWHEN(K1<>0,K1); G:=IFELSE(K2=1,L2,H2); G1:=VALUEWHEN(ISLASTBAR,G); DRAWNUMBER(L>0,G1,G1,2,COLORYELLOW); MID:=MA(收盤價,N); TMP2:=STD(收盤,M); T:=MID+P*TMP2; B:=MID-P*TMP2; DE:=MA((收盤-LLV(低,45))/(HHV(高,45)-LLV(低,45))*100,X); TMP:=K2; W1:=K2; W2:=開-關(guān); 繪圖線(W1>0,高,W1>0,關(guān)閉,顏色綠色); 拉線(W1>0,打開,W1>0,低,顏色綠色); 畫線(W1<=0,高,W1<=0,收盤,彩色); 繪圖線(W1<=0,打開,W1<=0,低,彩色); 繪圖線(W2>0,高,W1<=0,打開,洋紅色); DRAWLINE(W2>0,關(guān)閉,W1<=0,低,洋紅色); 拉線(W2>0,高,W1>0,打開,彩色); 拉線(W2>0,關(guān)閉,W1>0,低,顏色青色); 粘線(W1>0,打開,關(guān)閉,顏色綠色,1); STICKLINE(W1<=0,打開,關(guān)閉,彩色,1); STICKLINE(W2>0&&W1<=0,打開,關(guān)閉,洋紅色,0); 粘線(W2>0&&W1>0,打開,關(guān)閉,青色,0); DRAWTEXT(CROSS(TMP,0),HIGH,'KONG'),VALIGN2,FONTSIZE18; DRAWTEXT(CROSS(0,TMP),低,'DUO'),VALIGN0,彩色,FONTSIZE18; DRAWTEXT(TMP<0&&CROSS(DE,95.3),HIGH,'平'); DRAWTEXT(TMP>0&&CROSS(3.3,DE),低,'平'); |
|
來自: 知行合一1ycgzb > 《文華》