求助高手把这个公式改成通达信能用的,谢谢

P1:=3;P2:=5;P3:=8;P4:=13;P5:=21;P6:=34;

MA1:MA(CLOSE,P1),COLORcyan;
MA2:MA(CLOSE,P2),COLORgreen;
MA3:MA(CLOSE,P3),COLORMAGENTA,linethick2;
MA4:MA(CLOSE,P4),COLORblue,linethick2;
MA5:MA(CLOSE,P5),COLORgray;
MA6:MA(CLOSE,P6),COLORbrown;

KDB1:=filter(backset(MA1 AND ISLASTBAR ,P1),P1);
KDB2:=filter(backset(MA2 AND ISLASTBAR ,P2),P2);
KDB3:=filter(backset(MA3 AND ISLASTBAR ,P3),P3);
KDB4:=filter(backset(MA4 AND ISLASTBAR ,P4),P4);
KDB5:=filter(backset(MA5 AND ISLASTBAR ,P5),P5);
KDB6:=filter(backset(MA6 AND ISLASTBAR ,P6),P6);

vertline(KDB1),colorCYAN,POINTDOT;
vertline(KDB2),colorCYAN,POINTDOT;
vertline(KDB3),colorCYAN,POINTDOT;
vertline(KDB4),colorCYAN,POINTDOT;
vertline(KDB5),colorCYAN,POINTDOT;
vertline(KDB6),colorCYAN,POINTDOT;

DRAWICON(KDB1,L,8),colorcyan,align5;
DRAWNUMBER(KDB1,L*0.98,C,0),align0,colorcyan;
DRAWICON(KDB2,L,8),colorcyan,align5;
DRAWNUMBER(KDB2,L*0.98,C,0),align0,colorcyan;
DRAWICON(KDB3,L,8),colorcyan,align5;
DRAWNUMBER(KDB3,L*0.98,C,0),align0,colorcyan;
DRAWICON(KDB4,L,8),colorcyan,align5;
DRAWNUMBER(KDB4,L*0.98,C,0),align0,colorcyan;
DRAWICON(KDB5,L,8),colorcyan,align5;
DRAWNUMBER(KDB5,L*0.98,C,0),align0,colorcyan;
DRAWICON(KDB6,L,8),colorcyan,align5;
DRAWNUMBER(KDB6,L*0.98,C,0),align0,colorcyan;
STICKLINE(open>=close ,close ,open,9,0 ),COLORaaaaaa;
STICKLINE(open>=close ,close ,open,6,0 ),COLORbbbbbb;
STICKLINE(open>=close ,close ,open,2.4,0 ),COLORcccccc;
STICKLINE(open>=close ,close ,open,1.1,0 ),COLORdddddd;

STICKLINE(close>open,close,open,9,0 ),COLOr6666cc;
STICKLINE(close>open,close,open,6 ,0 ),COLOR7777dd;
STICKLINE(close>open,close,open,2.4 ,0 ),COLOR8888ee;
STICKLINE(close>open,close,open,1.1 ,0 ),COLOR9999ff;

STICKLINE(close>open,open,low,0.5,0 ),COLOR1199ff;
STICKLINE(close>open,close,HIGH,0.5 ,0 ),COLOR1199ff;
STICKLINE(open>=close,close,low,0.5 ,0 ),COLORcccccc;
STICKLINE(open>=close,open,HIGH,0.5 ,0 ),COLORcccccc;

第1个回答  2018-11-23

P1:=3;P2:=5;P3:=8;P4:=13;P5:=21;P6:=34;

MA1:MA(CLOSE,P1),COLORCYAN;
MA2:MA(CLOSE,P2),COLORGREEN;
MA3:MA(CLOSE,P3),COLORMAGENTA,LINETHICK2;
MA4:MA(CLOSE,P4),COLORBLUE,LINETHICK2;
MA5:MA(CLOSE,P5),COLORGRAY;
MA6:MA(CLOSE,P6),COLORBROWN;

KDB1:=FILTER(BACKSET(MA1 AND ISLASTBAR ,P1),P1);
KDB2:=FILTER(BACKSET(MA2 AND ISLASTBAR ,P2),P2);
KDB3:=FILTER(BACKSET(MA3 AND ISLASTBAR ,P3),P3);
KDB4:=FILTER(BACKSET(MA4 AND ISLASTBAR ,P4),P4);
KDB5:=FILTER(BACKSET(MA5 AND ISLASTBAR ,P5),P5);
KDB6:=FILTER(BACKSET(MA6 AND ISLASTBAR ,P6),P6);

STICKLINE(KDB1=1,H,L,1,0),COLORCYAN;
STICKLINE(KDB2=1,H,L,1,0),COLORCYAN;
STICKLINE(KDB3=1,H,L,1,0),COLORCYAN;
STICKLINE(KDB4=1,H,L,1,0),COLORCYAN;
STICKLINE(KDB5=1,H,L,1,0),COLORCYAN;
STICKLINE(KDB6=1,H,L,1,0),COLORCYAN;


DRAWICON(KDB1,L-(H-L)*0.1,8);
DRAWNUMBER(KDB1,L*0.98,C);
DRAWICON(KDB2,L-(H-L)*0.1,8);
DRAWNUMBER(KDB2,L*0.98,C);
DRAWICON(KDB3,L-(H-L)*0.1,8);
DRAWNUMBER(KDB3,L*0.98,C);
DRAWICON(KDB4,L-(H-L)*0.1,8);
DRAWNUMBER(KDB4,L*0.98,C);
DRAWICON(KDB5,L-(H-L)*0.1,8);
DRAWNUMBER(KDB5,L*0.98,C);
DRAWICON(KDB6,L-(H-L)*0.1,8);
DRAWNUMBER(KDB6,L*0.98,C);


STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORAAAAAA;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORBBBBBB;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORCCCCCC;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLORDDDDDD;

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0 ),COLOR6666CC;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2 ,0 ),COLOR7777DD;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1 ,0 ),COLOR8888EE;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0 ,0 ),COLOR9999FF;

STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0 ),COLOR1199FF;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5 ,0 ),COLOR1199FF;
STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5 ,0 ),COLORCCCCCC;
STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5 ,0 ),COLORCCCCCC;

本回答被网友采纳

求助高手把这个公式改成通达信能用的,谢谢
P2),COLORGREEN;MA3:MA(CLOSE,P3),COLORMAGENTA,LINETHICK2;MA4:MA(CLOSE,P4),COLORBLUE,LINETHICK2;MA5:MA(CLOSE,P5),COLORGRAY;MA6:MA(CLOSE,P6),COLORBROWN;KDB1:=FILTER(BACKSET(MA1 AND ISLASTBAR ,P1),

求助,这是一个很好的飞狐公式,请高手改成通达信的
DRAWTEXT_FIX(ISLASTBAR ,0.85,0.2,0,'衰退'),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR ,0.9,0.2,0,'徘徊'),COLORWHITE;DRAWTEXT_FIX(ISLASTBAR ,0.95,0.2,0,'潜伏'),COLORRED;STICKLINE(IF(TAI<REF(TAI,1) AND VOL>REF(VOL,1),1,0),0,TAI,1,0),COLORGREEN;STICKLINE(IF(TAI>REF(...

求助高手帮忙改定成通达信公式指标
再一个,不是什么公式都可以改写的;“IFELSE”函数,据我所知应该是一个逻辑(条件)函数,通达信没有,只有看了原软件上的显示,才能知道用什么函数去替代。最后,给你一个小建议,再提问有关于证券\/股票类的问题,请注意问题的“分类”!你使用:“数学,理工学科”等分类,一是有关人员看不到,...

求助:修改通达信选股公式。
去除创业板:=IF(CODELIKE('300'),0,1);去除ST和停牌 AND 去除创业板;

文华财经SCALE改为通达信?
最佳答案: 可以改成通达信语句,你试一下下面的代码。DRAWNUMBER(LX>0,G1,G1),COLORCYAN;

求助高手帮忙编辑几个选股公式,我用的是通达信的
{公式1\/输出TJ=1就是条件成立,=0不成立,下同} J1:=HHVBARS(H,30)-LLVBARS(L,30)>=15;J2:=HHV(H,55)>2.1*LLV(L,55);MV:=MA(V,5);J3:=SUM(MV>REF(MV,1),5)>0;J4:=MV>3*LLV(MV,30);TJ:SUM(J1*J2*J3*J4,7)>0;{公式2} M5:=MA(C, 5);M10:=MA(C,10);M20:...

求助!高手帮忙编写一个通达信选股公式,能求出当日成交量前十名的个...
可用这个:ST:=IF(NAMELIKE('ST') OR NAMELIKE('*ST'),0,1);AA:=SUMBARS(VOL,CAPITAL);天量:=IF(CAPITAL=0,AMOUNT=HHV(AMOUNT,34),VOL>MA(VOL,AA)*33\/10);量:天量 AND V>100 AND ST;若解决了问题请及时采纳,多谢!

求助高手帮忙编辑1个通达信选股公式
可以编写前面两三天放量上涨,后接着两三天缩量回调的选股公式。但这前面是只能有两三天放量上涨随后缩量两三天下跌呢,还是只要前面有两三天放量上涨后缩量两三天下跌呢。这修改要说清楚了。

求助哪位高手给编写个通达信条件选股公式,筹码获利比例在5%以下最好...
使用获利盘比例条件选股即可:获利盘比例.用法:WINNER(CLOSE),表示以当前收市价卖出的获利盘比例,例如返回0.1表示10%获利盘;WINNER(10.5)表示10.5元价格的获利盘比例 该函数仅对日线分析周期有效 筹码获利比例在5%以下可写为:WINNER(C)<0.05;当然,你可以根据你自己的需要,将0.05改为别的数字,...

求助高手:通达信选股公式:股价在低档收出长下影阴线,次日再收一条阴线...
A2:=C<O AND L>REF(L,1);A1 AND A2;可自行设定前一日阴线的下影线长度,即只要把0.05改成你所需要的值。阴线未能突破前一日阴线下影,不知意思是不是阴线的实体小于前一日的下影线长度。上面的源码我并没有添加这句。如果是这个意思的话,那源码为:A1:=REF(C,1)<REF(O,1) AND (...

相似回答
大家正在搜