做个主图变色K线 [文华财经]
-
咨询内容:
做个主图变色K线
1.K>D 红色K线 ,K=D 白色K线,K<D 青色K线 。空实心不变
2.满足条件后文字显示与K线对齐VAR1:=(2*CLOSE+HIGH+LOW)/40;VAR2:=EMA(EMA(EMA(VAR1,4),4),4);FROMOPEN:=IF(HOUR<12,60*(HOUR-9)-30+MINUTE,120+60*(HOUR-13)+MINUTE);J:(VAR2-REF(VAR2,1))/REF(VAR2,1)*100, COLORSTICK;
D:MA(J,3);
K:MA(J,1);
PW1:=EMA(((VOL*(CLOSE-OPEN)*240/FROMOPEN)/(CLOSE+OPEN)),38);
ME:=EMA(PW1,8)*0.1,COLORSTICK;
MEE:=ABS(J);
V10:=PEAKBARS(C,15,1,1)<10;
V12:=IF(V10=1,50,0);
头部:=IF(V12=50,100,0);
TOB:=J<=REF(J,1) OR K<=D;
卖:IF(头部>REF(头部,1){ AND TOB},MEE,0),COLORGREEN,LINETHICK3;
V9:=TROUGHBARS(C,15,1,1)<10;
V11:=IF(V9=1,50,0);
底部:=IF(V11=50,50,0);
买底:IF(底部>REF(底部,1),MEE,0),COLORRED,LINETHICK2;
STICKLINE(买底,0,MEE*0.9,1,0),COLORRED;STICKLINE(卖,0,MEE*0.9,1,0),COLORBLUE;STICKLINE(卖,0,MEE*0.9,0.6,0),COLORWHITE;DRAWTEXT(底部>REF(底部,1),MEE,'★底买'),COLORYELLOW;DRAWTEXT(头部>REF(头部,1),MEE,'▲顶卖!'),COLORWHITE;DRAWTEXT(头部>REF(头部,1),MEE*1.04,'▲'),COLORWHITE;DRAWTEXT(头部>REF(头部,1),MEE*1.08,'▲'),COLORWHITE;来源:程序化99
-
文华技术人员:
参考:
VAR1:=(2*CLOSE+HIGH+LOW)/40;VAR2:=EMA(EMA(EMA(VAR1,4),4),4);FROMOPEN:=IF(HOUR<12,60*(HOUR-9)-30+MINUTE,120+60*(HOUR-13)+MINUTE);J:=(VAR2-REF(VAR2,1))/REF(VAR2,1)*100, COLORSTICK;D:=MA(J,3);K:=MA(J,1);PW1:=EMA(((VOL*(CLOSE-OPEN)*240/FROMOPEN)/(CLOSE+OPEN)),38);ME:=EMA(PW1,8)*0.1,COLORSTICK;MEE:=ABS(J);V10:=PEAKBARS(C,15,1,1)<10;V12:=IF(V10=1,50,0);头部:=IF(V12=50,100,0);TOB:=J<=REF(J,1) OR K<=D;卖:=IF(头部>REF(头部,1){ AND TOB},MEE,0),COLORGREEN,LINETHICK3;V9:=TROUGHBARS(C,15,1,1)<10;V11:=IF(V9=1,50,0);底部:=IF(V11=50,50,0);买底:=IF(底部>REF(底部,1),MEE,0),COLORRED,LINETHICK2;DRAWTEXT(底部>REF(底部,1),L,'★底买'),COLORYELLOW,VALIGN0;DRAWTEXT(头部>REF(头部,1),H,'▲顶卖!'),COLORWHITE;DRAWTEXT(头部>REF(头部,1),L*0.96,'▲'),COLORWHITE,VALIGN0;DRAWTEXT(头部>REF(头部,1),H*1.04,'▲'),COLORWHITE; DRAWCOLORKLINE(K>D&&(ISUP||ISEQUAL),COLORRED,1);DRAWCOLORKLINE(K>D&&ISDOWN,COLORRED,0);DRAWCOLORKLINE(K<D&&(ISUP||ISEQUAL),COLORCYAN,1);DRAWCOLORKLINE(K<D&&ISDOWN,COLORCYAN,0);DRAWCOLORKLINE(K=D&&(ISUP||ISEQUAL),COLORWHITE,1);DRAWCOLORKLINE(K=D&&ISDOWN,COLORWHITE,0);
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容