爬山涉水过草地源码 副图 通达信 贴图
P1:=5;P2:=13;P3:=34;
DRAWGBK(O>C,RGB(0,0,150),RGB(80,0,80),0,'01',0);
TJ:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3));
TD:=(DYNAINFO(5)<0.01 || DYNAINFO(6)<0.01);
JT:=IF(TD,1,(TJ<(DYNAINFO(5)+0.01) && TJ>(DYNAINFO(6)-0.01)));
CYC1:=IF(JT,0.01*EMA(AMOUNT,P1)/EMA(VOL,P1),EMA((HIGH+LOW+CLOSE)/3,P1));
CYC2:=IF(JT,0.01*EMA(AMOUNT,P2)/EMA(VOL,P2),EMA((HIGH+LOW+CLOSE)/3,P2));
CYC3:=IF(JT,0.01*EMA(AMOUNT,P3)/EMA(VOL,P3),EMA((HIGH+LOW+CLOSE)/3,P3));
CYC∞:=IF(JT,DMA(AMOUNT/(100*VOL),100*VOL/FINANCE(7)),EMA((HIGH+LOW+CLOSE)/3,120));
STICKLINE(CYC1<CYC2,CYC2,CYC∞,4,0)COLORGREEN;
DRAWBAND(CYC1,RGB(80,30,0),CYC∞,RGB(0,50,150));
DRAWICON(CYC1>CYC∞ AND CYC2>CYC3 AND REF(C,1)<REF(O,1) AND C>REF(H,1) AND O<REF(C,1) AND MA(C,5)>REF(MA(C,5),1),CYC1,15);
倍量:=V>=2*REF(V,1);
DRAWICON(CYC1>CYC∞ AND CYC2>CYC3 AND 倍量 ,CYC1*0.9,28);
DRAWTEXT(CYC1>CYC∞ AND CYC2>CYC3 AND 倍量,CYC∞*0.9,'倍量'),COLORLIGRAY;
X:=CONST(DATE);
Y:=IF(DATE<X, 240, FROMOPEN);
总交易日:=BARSCOUNT(CLOSE);
DRAWICON((VOL/Y*240)=CONST(LLV(VOL,总交易日)),CYC1,11);
DRAWTEXT((VOL/Y*240)=CONST(LLV(VOL,60)) AND (VOL/Y*240)>CONST(LLV(VOL,总交易日)),CYC1,'地量'),COLORYELLOW;
DRAWICON((VOL/Y*240)=CONST(LLV(VOL,60)),CYC∞*1.8,14);
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
P1赋值:5
P2赋值:13
P3赋值:34
填充背景(O>C,RGB(0,0,150),RGB(80,0,80),0,'01',0)
TJ赋值:IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3))
TD赋值:(DYNAINFO(5)<0.01 || DYNAINFO(6)<0.01)
JT赋值:IF(TD,1,(TJ<(DYNAINFO(5)+0.01) && TJ>(DYNAINFO(6)-0.01)))
CYC1赋值:IF(JT,0.01*成交额的P1日指数移动平均/成交量的P1日指数移动平均,EMA((最高价+最低价+收盘价)/3,P1))
CYC2赋值:IF(JT,0.01*成交额的P2日指数移动平均/成交量的P2日指数移动平均,EMA((最高价+最低价+收盘价)/3,P2))
CYC3赋值:IF(JT,0.01*成交额的P3日指数移动平均/成交量的P3日指数移动平均,EMA((最高价+最低价+收盘价)/3,P3))
CYC∞赋值:IF(JT,DMA(成交额/(100*成交量),100*成交量/FINANCE(7)),EMA((最高价+最低价+收盘价)/3,120))
当满足条件CYC1
DRAWBAND(CYC1,RGB(80,30,0),CYC∞,RGB(0,50,150))
DRAWICON(CYC1>CYC∞ AND CYC2>CYC3 AND 1日前的C<1日前的O AND C>1日前的H AND O<1日前的C AND C的5日简单移动平均>REF(C的5日简单移动平均,1),CYC1,15)
倍量赋值:V>=2*1日前的V
当满足条件CYC1>CYC∞ AND CYC2>CYC3 AND 倍量 时,在CYC1*0.9和28之间画图标
当满足条件CYC1>CYC∞ AND CYC2>CYC3 AND 倍量时,在CYC∞*0.9和'倍量'位置书写文字
X赋值:CONST(DATE)
如果DATE
总交易日赋值:收盘价的有效数据周期数
DRAWICON((成交量/Y*240)=CONST(总交易日日内成交量最低值),CYC1,11)
DRAWTEXT((成交量/Y*240)=CONST(60日内成交量最低值) AND (成交量/Y*240)>CONST(总交易日日内成交量最低值),CYC1,'地量'),COLORYEL最低价
DRAWICON((成交量/Y*240)=CONST(60日内成交量最低值),CYC∞*1.8,14)