同花顺⼩公式标记⼩图标⾮常实⽤
在图形上绘制⼩图标. ⽤法:DRAWICON(COND,PRICE,TYPE),当COND条件满⾜时,在PRICE位置画TYPE号图标。例如:DRAWICON(CLOSE>OPEN,LOW,1)表⽰当收阳时在最低价位置画1号图标。DRAWICON1-20都画什么图形?
A:=CURRBARSCOUNT;
A1:=CONST(HHV(H,120));
A2:=CONST(LLV(L,120));
STICKLINE(ISLASTBAR,A1*1.01,A1*1.01,0,0);
STICKLINE(ISLASTBAR,A2*0.99,A2*0.99,0,0);
K1:=CONST(0.93*(A1-A2)+A2);K2:=CONST(0.65*(A1-A2)+A2);
K3:=CONST(0.38*(A1-A2)+A2);K4:=CONST(0.10*(A1-A2)+A2);
DRAWTEXT(A=92,K1,' ←1#');DRAWICON(A=92,K1,1);
DRAWTEXT(A=80,K1,' ←2#');DRAWICON(A=80,K1,2);
DRAWTEXT(A=68,K1,' ←3#');DRAWICON(A=68,K1,3);
DRAWTEXT(A=56,K1,' ←4#');DRAWICON(A=56,K1,4);
DRAWTEXT(A=44,K1,' ←5#');DRAWICON(A=44,K1,5);
DRAWTEXT(A=92,K2,' ←6#');DRAWICON(A=92,K2,6);
DRAWTEXT(A=80,K2,' ←7#');DRAWICON(A=80,K2,7);
DRAWTEXT(A=68,K2,' ←8#');DRAWICON(A=68,K2,8);
DRAWTEXT(A=56,K2,' ←9#');DRAWICON(A=56,K2,9);
DRAWTEXT(A=44,K2,' ←10#');DRAWICON(A=44,K2,10);
DRAWTEXT(A=92,K3,' ←11#');DRAWICON(A=92,K3,11);
DRAWTEXT(A=80,K3,' ←12#');DRAWICON(A=80,K3,12);
DRAWTEXT(A=68,K3,' ←13#');DRAWICON(A=68,K3,13);
DRAWTEXT(A=56,K3,' ←14#');DRAWICON(A=56,K3,14);
DRAWTEXT(A=44,K3,' ←15#');DRAWICON(A=44,K3,15);
DRAWTEXT(A=92,K4,' ←16#');DRAWICON(A=92,K4,16);icon图标库
DRAWTEXT(A=80,K4,' ←17#');DRAWICON(A=80,K4,17);
DRAWTEXT(A=68,K4,' ←18#');DRAWICON(A=68,K4,18);
DRAWTEXT(A=56,K4,' ←19#');DRAWICON(A=56,K4,19);
DRAWTEXT(A=44,K4,' ←20#');DRAWICON(A=44,K4,20);
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论