怎么获取drawtext实际高度 超级单指标编写方法

[更新]
·
·
分类:金融
4461 阅读

怎么获取drawtext实际高度

超级单指标编写方法

超级单指标编写方法

1、间隔点:
20,colorred,pointdot,linethick2;
80,colorred,pointdot,linethick2;
50,colorred,pointdot,linethick2;
{不需要粗线条就把粗细面条linethick2去掉}
2、间隔线
20,colorred;
80,colorred;
50,colorred;
3、信号字
LC : REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,colorwhite;
RSI2:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
DRAWTEXT(RSI110,RSI2,买);
DRAWTEXT(RSI185,RSI1,卖);
4、笑哭脸
LLC:REF(CLOSE,1);
VR26:SUM(IF(CLOSELLC,VOL,0),26)/SUM(IF(CLOSELLC,VOL,0),26)*100,colorwhite;
DRAWICON(VR2640,VR26 30,1);
DRAWICON(VR26350,VR26,2);
5、一线提示
cross(kdj.j(9,3,3),kdj.d(9,3,3)) and kdj.j(9,3,3)20,colorred;

上涨行情开始指标公式?

没有100%的指标,我提供一个MACD的指标,因为设置了相关战法,所以成功率有85%。你可以参考一下
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
X1:CROSS(DIF,DEA);
XX:REF(BARSLAST(X1),1) 1;
{最近一次信号,距今天的天数}
TA:BARSLAST(X1),NODRAW,COLORYELLOW;
TB:SUMBARS(TA,2)-1,NODRAW,COLORRED;
TC:TB-TA,NODRAW,COLORRED;
V1:BARSLAST(CROSS(DIF,DEA));
DRAWNUMBER(CROSS(DIF,DEA),DIF,REF(V1,1) 1);
DRAWTEXT(REF(TC,1)-5 AND CROSS(DIF,DEA) AND DIF0 AND DEA0,DIF,倍),COLORYELLOW;