K线配合红绿颜色。再来根75均线 [文华财经]
-
咨询内容:
N:=7;M:=5;VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100; B:=SMA(VAR1,N,1); VAR2:=SMA(B,M,1); MAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;MAR2:=LLV(LOW,34);MAR3:=HHV(HIGH,34);SK1:=EMA((MAR1-MAR2)/(MAR3-MAR2)*100,13);SD:=EMA(SK1,3);CROSS(SK1,SD) AND CROSS(B,VAR2);STICKLINE(SK1<SD,SK1,SD,0.8,0),COLORGREEN;STICKLINE(SK1>SD,SK1,SD,0.8,1),COLORRED;低吸: 20, COLORLIGHTRED;短底: 10,COLORRED;中值:B,NODRAW;短值:SK1,NODRAW,COLORMAGENTA;STICKLINE(SK1>=90 OR B>=90,96,101,4,1),COLORRED;PLAYSOUND(COLORRED,'A1'); STICKLINE(B>=90 AND SK1>=90,96,101,4,0),COLORRED;PLAYSOUND(COLORRED,'K1'); STICKLINE(SK1<=10 OR B<=10,-1,4,4,1),COLORBLUE;PLAYSOUND(COLORBLUE,'V'); STICKLINE(B<=10 AND SK1<=10,-1,4,4,0),COLORBLUE;PLAYSOUND(COLORBLUE,'B2');STICKLINE((SK1<=10 OR B<=10) AND B>REF(B,1) AND SK1>REF(SK1,1),-1,4,4,1),COLOR7F00FF;STICKLINE(B<=10 AND SK1<=10 AND B>REF(B,1) AND SK1>REF(SK1,1),-1,4,4,0),COLOR7F00FF;STICKLINE((SK1>=90 OR B>=90) AND B<REF(B,1) AND SK1<REF(SK1,1),96,101,4,1),COLORWHITE;STICKLINE(B>=90 AND SK1>=90 AND B<REF(B,1) AND SK1<REF(SK1,1),96,101,4,0),COLORWHITE;DRAWTEXT(CROSS(SK1,SD),SD,'多'),VALIGN0;DRAWTEXT(CROSS(SD,SK1),SD,'空');这个指标可以用在k线附属指标上吗?K线配合红绿颜色。再来根75均线。
来源:程序化99
-
文华技术人员:
指标数值与K线数值差距较大,属性选择K线附属指标会造成压缩,不建议修改。可按下Alt+U调整下,但是过小的数值不会显示
参考:
N:=7;M:=5;VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100; B:=SMA(VAR1,N,1); VAR2:=SMA(B,M,1); MAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;MAR2:=LLV(LOW,34);MAR3:=HHV(HIGH,34);SK1:=EMA((MAR1-MAR2)/(MAR3-MAR2)*100,13);SD:=EMA(SK1,3);CROSS(SK1,SD) AND CROSS(B,VAR2);STICKLINE(SK1<SD,SK1,SD,0.8,0),COLORGREEN;STICKLINE(SK1>SD,SK1,SD,0.8,1),COLORRED;低吸: 20, COLORLIGHTRED;短底: 10,COLORRED;中值:B,NODRAW;短值:SK1,NODRAW,COLORMAGENTA;STICKLINE(SK1>=90 OR B>=90,96,101,4,1),COLORRED;PLAYSOUND(COLORRED,'1'; STICKLINE(B>=90 AND SK1>=90,96,101,4,0),COLORRED;PLAYSOUND(COLORRED,'1'; STICKLINE(SK1<=10 OR B<=10,-1,4,4,1),COLORBLUE;PLAYSOUND(COLORBLUE,''; STICKLINE(B<=10 AND SK1<=10,-1,4,4,0),COLORBLUE;PLAYSOUND(COLORBLUE,'2';STICKLINE((SK1<=10 OR B<=10) AND B>REF(B,1) AND SK1>REF(SK1,1),-1,4,4,1),COLOR7F00FF;STICKLINE(B<=10 AND SK1<=10 AND B>REF(B,1) AND SK1>REF(SK1,1),-1,4,4,0),COLOR7F00FF;STICKLINE((SK1>=90 OR B>=90) AND B<REF(B,1) AND SK1<REF(SK1,1),96,101,4,1),COLORWHITE;STICKLINE(B>=90 AND SK1>=90 AND B<REF(B,1) AND SK1<REF(SK1,1),96,101,4,0),COLORWHITE;DRAWTEXT(CROSS(SK1,SD),SD,'',VALIGN0;DRAWTEXT(CROSS(SD,SK1),SD,'';MA75:MA(C,75);
DRAWCOLORKLINE(SK1>SD||SK1>=90 OR B>=90||B>=90 AND SK1>=90,COLORRED,0);DRAWCOLORKLINE(SK1<SD,COLORGREEN,0);
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容