把通达信自动划线公式改写成大智慧软件公式_同花顺l2破解

KDJ配合MACD的公式

KDJ配合MACD的公式

【股票资源馆】策略投资破解,图片免费下载,理想股票技术论坛,财经股票论坛,炒股论坛社区,股票软件,股票公式,源码交流,指标公式,炒股书籍,分析家公式网,股旁网,股票配资。

编写条件:

{通达信自动划线公式(主图)} DRAWBAND(MA(CLOSE,60),RGB(135,20,30),MA(CLOSE,120),RGB(20,60,200)); DRAWKLINE(H,O,L,C); MA3:MA(MA(CLOSE,3),1),LINETHICK2,COLOR00FFFF; IF(MA3>=REF(MA3,1),MA3,DRAWNULL),COLORFF00FF,LINETHICK3; MA10:MA(CLOSE,10); MA20:MA(CLOSE,20); MA60:MA(CLOSE,60),COLORGRAY,LINETHICK1; MA120:MA(CLOSE,120),COLORGRAY,LINETHICK1; {自动画线} HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0; AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1); QY:=BACKSET(AA,HIGHN+1); CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1); DRAWICON(CC,H*1.02,2); DDD:=BARSLAST(CC); GDTS:=IF(CC,CURRBARSCOUNT,0); DINGBU:=IF(DDD,REF(H,DDD),H);{顶部} DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS); DINGBU1:=REF(DINGBU,DDD+1); GDCS1:=CONST(DINGBUTS); DINGBUTS1:=REF(DINGBUTS,DDD+1); GDCS2:=CONST(DINGBUTS1); DINGBU2:=REF(DINGBU1,DDD+1); MM:=IF(CURRBARSCOUNT>GDCS2,0,1); 高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORGREEN,LINETHICK2; DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF,POINTDOT; 相对高点:DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW,POINTDOT; AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1); QY1:=BACKSET(AA1,LOWN+1); CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1); DRAWICON(CC1,L*0.98,1); DD1:=BARSLAST(CC1); DDTS:=IF(CC1,CURRBARSCOUNT,0); YDB:=IF(DD1,REF(L,DD1),L); DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS); DDCS1:=CONST(DDTS1); ZDB:=REF(YDB,DD1+1); DDTS2:=REF(DDTS1,DD1+1); DDCS2:=CONST(DDTS2); 低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORRED,LINETHICK2; ZGSTAR:=(高点压力+低点支撑)/2; ZGEND:=CONST((高点压力+低点支撑)/2); STARDAY:=IF(DDCS2

编写方法:

 FILLRGN(MA(C,60),MA(C,120),MA(C,60)>MA(C,120),RGB(135,20,30),MA(C,60)<MA(C,120),RGB(20,60,200));

STICKLINE(C>=O,C,O,7,1),COLOR5454FF;
STICKLINE(C>=O,H,MAX(C,O),0,0),COLOR5454FF;
STICKLINE(C>=O,L,MIN(C,O),0,0),COLOR5454FF;
STICKLINE(C<=O,C,O,7,0),COLORFFFF54;
STICKLINE(C<=O,H,MAX(C,O),0,0),COLORFFFF54;
STICKLINE(C<=O,L,MIN(C,O),0,0),COLORFFFF54;
MA3:MA(MA(CLOSE,3),1),LINETHICK2,COLOR00FFFF;
PARTLINE(MA3,MA3>=REF(MA3,1)),COLORFF00FF,LINETHICK2;
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA60:MA(CLOSE,60),COLORGRAY;
MA120:MA(CLOSE,120),COLORGRAY;
HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0;
AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
DRAWICON(CC,H*1.02,8),ALIGN1;
DDD1:=BACKSET(DISPSTATUS=2,BARSLAST(CC)+1);
DDD2:=DDD1>REF(DDD1,1);
DDD3:=BACKSET(DISPSTATUS=2,BARSLAST(CC)+REF(BARSLAST(CC),BARSLAST(CC)+1)+2);
DDD4:=DDD3>REF(DDD3,1);
DRAWLINE(DDD4,H,DDD2,H,1),COLORGREEN,LINETHICK2;
HH1:=IF(DDD4,H,REF(H,BARSLAST(DDD4)));
HH2:=IF(DDD2,H,REF(H,BARSLAST(DDD2)));
高点压力:HH1+(HH2-HH1)*BARSLAST(DDD4)/(BARSLAST(DDD4)-BARSLAST(DDD2)),LINETHICK2,COLORGREEN,LAYER0;
相对高点:REF(H,BARSLAST(DDD2)),COLORYELLOW,POINTDOT;
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
QY1:=BACKSET(AA1,LOWN+1);
CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
DRAWICON(CC1,L*0.98,7),ALIGN1;
LLL1:=BACKSET(DISPSTATUS=2,BARSLAST(CC1)+1);
LLL2:=LLL1>REF(LLL1,1);
LLL3:=BACKSET(DISPSTATUS=2,BARSLAST(CC1)+REF(BARSLAST(CC1),BARSLAST(CC1)+1)+2);
LLL4:=LLL3>REF(LLL3,1);
DRAWLINE(LLL4,L,LLL2,L,1),COLORRED,LINETHICK2;
LL1:=REF(L,BARSLAST(LLL4));
LL2:=REF(L,BARSLAST(LLL2));
低点支撑:LL1+(LL2-LL1)*BARSLAST(LLL4)/(BARSLAST(LLL4)-BARSLAST(LLL2)),LINETHICK2,COLORRED,LAYER0;
中轨:(高点压力+低点支撑)/2,COLORFF55BB,LINETHICK2;
REF(L,BARSLAST(LLL2)),COLORMAGENTA,POINTDOT;
REF(L,BARSLAST(LLL4)),COLORCYAN,POINTDOT;

{股票资源馆:www.lixiangluntan.com专业和谐高端炒股软件--公式编写交流--加QQ751161480--}炒股软件

把这个通达信的趋势线源码改为飞狐

把这个通达信的趋势线源码改为飞狐

大智慧策略终端/职业股民首选分析软件:支持ACE数据,支持L2行情全推数据,支持股票池,超赢数据,价格低廉,支持月季费年费。:

下载地址:https://share.weiyun.com/LPoU0GHu