黑马出现公式优化一下
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个
选股票看什么指标最好 >股票指标网
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个
编写要求:
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;
选股票看什么指标最好 >股票指标网
精彩评论