筹码锁定,主图和副图
===2022.4.15 15:34
有朋友需要源码,就补充了源码:
{公式名称: 筹码锁定主图
公式描述:
无参数
公式类型: 技术指标公式-其他类型
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:无
用法注释:
公式源码:}
DRAWRECTREL(0,0,100,120,RGB(250,0,0));
DRAWTEXT_FIX(1,0,0,0,11547),COLORYELLOW;
DRAWTEXT_FIX(1,0,0.06,0,11548),COLORYELLOW;
DRAWRECTREL(305,0,360,70,RGB(250,0,0));
DRAWTEXT_FIX(1,0.31,0.01,0,3),COLORYELLOW;
DRAWTEXT_FIX(1,0.37,0.01,0,DYBLOCK),COLORYELLOW;
DRAWRECTREL(425,0,480,70,RGB(250,0,0));
DRAWTEXT_FIX(1,0.43,0.01,0,4),COLORYELLOW;
DRAWTEXT_FIX(1,0.49,0.01,0,HYBLOCK),COLORYELLOW;
DRAWRECTREL(545,0,600,70,RGB(250,0,0));
DRAWTEXT_FIX(1,0.55,0.01,0,5),COLORYELLOW;
DRAWTEXT_FIX(1,0.61,0.01,0,GNBLOCK),COLORYELLOW;
X_1:=短线决策.NOTEXT1#DAY;
DRAWTEXT_FIX(1,0.72,1,0,11549),COLORRED;
DRAWNUMBER_FIX(1,0.75,1,0,CONST(X_1)),COLORRED;
X_2:=中线决策.NOTEXT1#DAY;
DRAWTEXT_FIX(1,0.8,1,0,11550),COLORYELLOW;
DRAWNUMBER_FIX(1,0.83,1,0,CONST(X_2)),COLORYELLOW;
X_3:=XLPL.吸#DAY;
DRAWTEXT_FIX(1,0.88,1,0,11551),COLORCYAN;
DRAWNUMBER_FIX(1,0.91,1,0,CONST(X_3)),COLORCYAN;
A:IF(CLOSE>SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORRED;
B:IF(CLOSE<SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORCYAN;
X_4:=CLOSE>SAR(4,2,20);
X_5:=CLOSE<SAR(4,2,20);
O1:SUM(EMA((CLOSE+LOW)/2,1)/3,3),COLORYELLOW;
O2:EMA(O1,3),COLORMAGENTA;
O3:EMA(O2,3),COLORGREEN;
X_6:=MA(CLOSE,13);
X_7:=100-ABS((CLOSE-X_6)/X_6*100);
X_8:=MA(WINNER(CLOSE*0.95)*100,1);
X_9:=X_8>X_7;
STICKLINE(X_9,HIGH,LOW,0,1),COLORYELLOW;
STICKLINE(X_9,CLOSE,OPEN,3.2,0),COLOR117777;
STICKLINE(X_9,CLOSE,OPEN,2.6,0),COLOR119999;
STICKLINE(X_9,CLOSE,OPEN,1.9,0),COLOR11BBBB;
STICKLINE(X_9,CLOSE,OPEN,1.1,0),COLOR11DDDD;
STICKLINE(X_9,CLOSE,OPEN,0.3,0),COLORYELLOW;
DRAWICON(X_8>X_7 AND PERIOD=5,HIGH+0.1,17);
DRAWTEXT(X_8>X_7,LOW,11552),COLORYELLOW;
STICKLINE(X_9 AND X_7>REF(X_7,1) AND REF(X_9,1)>0,HIGH,LOW,0,1),COLORMAGENTA;
STICKLINE(X_9 AND X_7>REF(X_7,1) AND REF(X_9,1)>0,CLOSE,OPEN,3.2,0),COLORMAGENTA;
STICKLINE(X_9 AND X_7>REF(X_7,1) AND REF(X_9,1)>0,CLOSE,OPEN,2.6,0),COLOR990099;
STICKLINE(X_9 AND X_7>REF(X_7,1) AND REF(X_9,1)>0,CLOSE,OPEN,1.9,0),COLORBB00BB;
STICKLINE(X_9 AND X_7>REF(X_7,1) AND REF(X_9,1)>0,CLOSE,OPEN,1.1,0),COLORDD00DD;
STICKLINE(X_9 AND X_7>REF(X_7,1) AND REF(X_9,1)>0,CLOSE,OPEN,0.3,0),COLORMAGENTA;
{公式名称: 筹码锁定副图
公式描述:
无参数
公式类型: 技术指标公式-其他类型
画线方法: 副图
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:无
用法注释:无
公式源码:}
DRAWRECTREL(0,0,100,400,RGB(250,0,0));
DRAWTEXT_FIX(1,0,0,0,11547),COLORYELLOW;
DRAWTEXT_FIX(1,0,0.2,0,11548),COLORYELLOW;
X_1:=MA(CLOSE,13);
X_2:=100-ABS((CLOSE-X_1)/X_1*100);
X_3:=MA(WINNER(CLOSE*0.95)*100,1);
X_4:=X_3>X_2;
DRAWNUMBER(X_4 AND X_2>REF(X_2,1) AND REF(X_4,1)>0,X_2+20,ROUND(X_2)),COLORCYAN;
DRAWNUMBER(X_4,X_2+20,ROUND(X_2)),COLORCYAN;
STICKLINE(X_4,X_2,0,3.2,0),COLOR117777;
STICKLINE(X_4,X_2,0,2.6,0),COLOR119999;
STICKLINE(X_4,X_2,0,1.9,0),COLOR11BBBB;
STICKLINE(X_4,X_2,0,1.1,0),COLOR11DDDD;
STICKLINE(X_4,X_2,0,0.3,0),COLORYELLOW;
STICKLINE(X_4 AND X_2>REF(X_2,1) AND REF(X_4,1)>0,X_2,0,3.2,0),COLOR990099;
STICKLINE(X_4 AND X_2>REF(X_2,1) AND REF(X_4,1)>0,X_2,0,2.6,0),COLOR990099;
STICKLINE(X_4 AND X_2>REF(X_2,1) AND REF(X_4,1)>0,X_2,0,1.9,0),COLORBB00BB;
STICKLINE(X_4 AND X_2>REF(X_2,1) AND REF(X_4,1)>0,X_2,0,1.1,0),COLORDD00DD;
STICKLINE(X_4 AND X_2>REF(X_2,1) AND REF(X_4,1)>0,X_2,0,0.3,0),COLORMAGENTA;
DRAWTEXT(X_4 AND X_2>REF(X_2,1) AND REF(X_4,1)>0,X_2+30,11553),COLORMAGENTA;
20224151405683925.png
2022415141225019.png
|