九毛八公式指标
VAR11:=3*SMA((C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100,10,1) -2*SMA(SMA((C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100,10,1),3,1); 黑马线:EMA(VAR11,10), LINETHICK2,COLOR6600FF; VAR12:=(黑马线-REF(黑马线,1))/REF(黑马线,1)*100; DRAWTEXT(REF(黑马线,1)>90 AND VAR12<0,黑马线,'跑'), 0, LINETHICK2, COLOR999999;100 ,LINETHICK2 ,COLOR999999; 黑马线2:100*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20)),LINETHICK2,,; DRAWTEXT(CROSS(黑马线,黑马线2),黑马线,'黑马'),COLORYELLOW; 极品底:IF((MA(C,10)-C)/C>0.04 AND (MA(C,10)-MA(C,10))/MA(C,10)>0.04,100,0),COLORWHITE; 优化:桃红线改绿线,当桃红上穿红时,或者发生交叉,显示逃顶
公式模块:
VAR11:=3*SMA((C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100,10,1)
-2*SMA(SMA((C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100,10,1),3,1); 黑马线:EMA(VAR11,10), LINETHICK2,COLOR00FF00; VAR12:=(黑马线-REF(黑马线,1))/REF(黑马线,1)*100; DRAWTEXT(REF(黑马线,1)>90 AND VAR12<0,黑马线,'跑'), 0, LINETHICK2, COLOR999999; 100 ,LINETHICK2 ,COLOR999999; 黑马线2:100*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20)),LINETHICK2,COLORFF00FF; DRAWTEXT(crOSS(黑马线,黑马线2),黑马线,'黑马'),COLORYELLOW; DRAWTEXT(CROSS(黑马线2,黑马线),黑马线,'逃顶'),COLORFFFF00; 极品底:IF((MA(C,10)-C)/C>0.04 AND (MA(C,10)-MA(C,10))/MA(C,10)>0.04,100,0),COLORWHITE;