通达信系统技术指标公式的二次开发:四个市...

通达信系统技术指标公式的二次开发:
四个市场成本均线CYC,为便粉丝,参数不使用参数表,已更换为数字。
{系统原来部分}
JJJ:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3));
DDD:=(DYNAINFO(5)<0.01 || DYNAINFO(6)<0.01);
JJJT:=IF(DDD,1,(JJJ<(DYNAINFO(5)+0.01) && JJJ>(DYNAINFO(6)-0.01)));
CYC1:=IF(JJJT,0.01*EMA(AMOUNT,5)/EMA(VOL,5),EMA((HIGH+LOW+CLOSE)/3,5));
CYC2:=IF(JJJT,0.01*EMA(AMOUNT,13)/EMA(VOL,13),EMA((HIGH+LOW+CLOSE)/3,13));
CYC3:=IF(JJJT,0.01*EMA(AMOUNT,34)/EMA(VOL,34),EMA((HIGH+LOW+CLOSE)/3,34));
CYC∞:=IF(JJJT,DMA(AMOUNT/(100*VOL),100*VOL/FINANCE(7)),EMA((HIGH+LOW+CLOSE)/3,120));

{二次开发后的}
操盘线:EMA(C,12);
BLTY:CROSS(C,CYC∞) AND COUNT(CROSS(C,CYC∞),100)=1,NODRAW;
DRAWICON(BLTY,L,9);
TS:=BARSLAST(BLTY);
JG:REF(O,TS),COLORBLUE;
多头或者首大:(CYC1>CYC2 AND CYC2>CYC3 AND CYC3>CYC∞) OR (C>CYC1 AND C>CYC2 AND C>CYC3 AND C>CYC∞),NODRAW;
STICKLINE(多头或者首大,O,C,1,0),COLORFF00FF;
DRAWICON(CROSS(多头或者首大,0.9),H,1);

横图
(0)

相关推荐