当前位置:→ 公式网 > 通达信公式 > 正文 ℃ 公式解密、改选股等业务 联系点击查看详情...
以下是通达信黑马摇篮源码主图副图(无源码的请下载附件导入)
通达信黑马摇篮源码主图副图
通达信源码:(资料来自理想)主图源码:
{K线重心主图}{公式在线提供:www.gszx.com.cn}
重心:AMOUNT/VOL/100,POINTDOT,COLORWHITE;
STICKLINE(1 ,重心 ,重心 ,1 ,1 ),COLORYELLOW;
{成本线}
P0:=152;
P1:=5;
P2:=13;
P3:=34;
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*EXPMA(AMOUNT,P1)/EXPMA(VOL,P1),EMA((HIGH+LOW+CLOSE)/3,P1));
CYC2:=IF(JJJT,0.01*EXPMA(AMOUNT,P2)/EXPMA(VOL,P2),EMA((HIGH+LOW+CLOSE)/3,P2));
CYC3:=IF(JJJT,0.01*EXPMA(AMOUNT,P3)/EXPMA(VOL,P3),EMA((HIGH+LOW+CLOSE)/3,P3));
CYC生命:=IF(JJJT,0.01*EXPMA(AMOUNT,P3)/EXPMA(VOL,P3),EMA((HIGH+LOW+CLOSE)/3,P3)),COLORRED,LINETHICK2;
CYC∞:=IF(JJJT,DMA(AMOUNT/(100*VOL),100*VOL/FINANCE(7)),EMA((HIGH+LOW+CLOSE)/3,120)),COLORGREEN;
天:COST(99),DOTLINE,COLORWHITE;
地:COST(1),DOTLINE,COLORYELLOW;
副图源码:
{简单说明}
【说明:DRAWLINE(1=0,1,0=1,1,0),COLORWHITE;
监视市场盈亏:DRAWLINE(1=0,1,0=1,1,0),COLORMAGENTA;
盈利超7不进:DRAWLINE(1=0,1,0=1,1,0),COLORLIBLUE;
亏损超10抄底:DRAWLINE(1=0,1,0=1,1,0),COLORLIBLUE;
】:DRAWLINE(1=0,1,0=1,1,0),COLORWHITE;
CYC13:=0.01*EXPMA(AMOUNT,13)/EXPMA(VOL,13);
CYC34:=0.01*EXPMA(AMOUNT,34)/EXPMA(VOL,34);
金线1:=5,COLORYELLOW;
紫线1:=-20,COLORBLUE;
反弹线1:=-5,COLORWHITE;
中线1:=0,COLORMAGENTA;
★短线盈亏:(CLOSE-CYC13)/CYC13*100,COLORYELLOW,LINETHICK2;
★中线盈亏★:=(CLOSE-CYC34)/CYC34*100,COLORLIBLUE,LINETHICK2;
★黑马抬头: IF(★短线盈亏>5,13,0),COLORRED,LINETHICK2;
★追涨指示:= IF(CROSS(★短线盈亏,金线1),10,0),COLORGREEN;
★抄底指示:= IF(CROSS(紫线1,★短线盈亏),-25,0),COLORGREEN;
{短线反弹: IF(盈亏均线<-20,10,0),COLORGREEN;};
{强弱}
STICKLINE(REF(★短线盈亏,1)<★短线盈亏,0.1,-0.1,3,1),COLORRED;
STICKLINE(REF(★短线盈亏,1)>★短线盈亏,0.1,-0.1,3,1),COLORGREEN;
金线: 7,COLORYELLOW;
抄底线:-10,COLORBLUE;
反弹线:-5,COLORWHITE;
中线:0,COLORMAGENTA;