请老师帮忙修改 [博易POBO]
咨询内容:
N2:=10;
LC:=REF(CLOSE,1);
RSI5:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*10,COLORFF00FF,LINETHICK1;
RSI10:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*10,COLORYELLOW;
VAR1:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
MA5:=EMA(C,5);
MA13:=EMA(C,13);
JCJL:=BARSLAST(CROSS(MA5,MA13))+1;
SCJL:=BARSLAST(CROSS(MA13,MA5))+1;
JCZGJL:=HHVBARS(H,JCJL)+1;
SCZDJL:=LLVBARS(L,SCJL)+1;
JCZGFZ:=BACKSET(SCJL=1 OR (ISLASTBAR AND MA5>MA13),JCZGJL);
SCZDFZ:=BACKSET(JCJL=1 OR (ISLASTBAR AND MA5<MA13),SCZDJL);
JCZGFH:=JCZGFZ>REF(JCZGFZ,1);
SCZDFH:=SCZDFZ>REF(SCZDFZ,1);
UP:=TRENDLINES(SCZDFH,L,JCZGFH,H);
DOWN:=TRENDLINES(JCZGFH,H,SCZDFH,L);
ZGFHJL:=BARSLAST(JCZGFH);
ZDFHJL:=BARSLAST(SCZDFH);
BT:(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2)>0 AND CROSS(VAR2,MA(VAR2,2))) AND REF(SCZDFH,1);
0,COLORFF00FF;
10,COLORFF0000;
STICKLINE1(ZDFHJL<ZGFHJL,0,0.2,3,0),COLORRED;
STICKLINE1(ZGFHJL<ZDFHJL OR ZDFHJL=0,0,0.2,3,0),COLORGREEN;
STICKLINE1(BT,0,3,2,0),COLORLIGHTRED;
STICKLINE1(BT,0,3,1,0),COLORLIGHTRED;
STICKLINE1(BT,0,3,0.22,0),COLORRED;
DRAWTEXT(BT,3,'短牛'),COLORRED,FONTSIZE16;
TJ1:=REF(SCZDFH,1) AND C<HHV(H,21)*0.82;
STICKLINE1(TJ1,0,2,3,0),RGB(121,0,242);
STICKLINE1(TJ1,0,2,1.5,0),COLORMAGENTA;
STICKLINE1(TJ1,0,2,0.8,0),COLORMAGENTA;
STICKLINE1(TJ1,0,2,0.2,0),RGB(172,89,255);
DRAWTEXT(TJ1,2,'中牛'),COLORFF00FF,FONTSIZE16;
HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
HRY33:=SQRT(HRY11);
TJ2:=REF(SCZDFH,1) AND C<HRY33;
STICKLINE1(TJ2,0,1,5,0),RGB(202,202,0);
STICKLINE1(TJ2,0,1,2,0),RGB(232,232,0);
STICKLINE1(TJ2,0,1,1,0),COLORYELLOW;
STICKLINE1(TJ2,0,1,0.2,0),RGB(255,255,66);
DRAWTEXT(TJ2,1,'大牛'),COLORYELLOW,FONTSIZE16;
ST:=REF(JCZGFH,1);
STICKLINE1(ST,10,9,5,0),COLOR008800;
STICKLINE1(ST,10,9,2,0),COLOR00AA00;
STICKLINE1(ST,10,9,1,0),COLOR00CC00;
STICKLINE1(ST,10,9,0.2,0),COLOR00FF00;
DRAWTEXT(ST,9,'卖'),COLOR00FF00,FONTSIZE16,VALIGN0;
N2:=10;
LC:=REF(CLOSE,1);
RSI5:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*10,COLORFF00FF,LINETHICK1;
RSI10:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*10,COLORYELLOW;
VAR1:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
MA5:=EMA(C,5);
MA13:=EMA(C,13);
JCJL:=BARSLAST(CROSS(MA5,MA13))+1;
SCJL:=BARSLAST(CROSS(MA13,MA5))+1;
JCZGJL:=HHVBARS(H,JCJL)+1;
SCZDJL:=LLVBARS(L,SCJL)+1;
JCZGFZ:=BACKSET(SCJL=1 OR (ISLASTBAR AND MA5>MA13),JCZGJL);
SCZDFZ:=BACKSET(JCJL=1 OR (ISLASTBAR AND MA5<MA13),SCZDJL);
JCZGFH:=JCZGFZ>REF(JCZGFZ,1);
SCZDFH:=SCZDFZ>REF(SCZDFZ,1);
//DRAWLINE(SCZDFH,L,JCZGFH,H,0);
//DRAWLINE(JCZGFH,H,SCZDFH,L,0);
ZGFHJL:=BARSLAST(JCZGFH);
ZDFHJL:=BARSLAST(SCZDFH);
BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2)>0 AND CROSS(VAR2,MA(VAR2,2))) AND REF(SCZDFH,1);
0,COLORFF00FF;
10,COLORFF0000;
STICKLINE(ZDFHJL<ZGFHJL,0,0.2,3,0),COLORRED;
STICKLINE(ZGFHJL<ZDFHJL OR ZDFHJL=0,0,0.2,3,0),COLORGREEN;
STICKLINE(BT,0,3,2,0),COLORRED;
STICKLINE(BT,0,3,1,0),COLORRED;
STICKLINE(BT,0,3,0.22,0),COLORRED;
DRAWTEXT(BT,3,'短牛'),COLORRED,FONTSIZE16;
TJ1:=REF(SCZDFH,1) AND C<HHV(H,21)*0.82;
STICKLINE(TJ1,0,2,3,0),COLORF20079;
STICKLINE(TJ1,0,2,1.5,0),COLORMAGENTA;
STICKLINE(TJ1,0,2,0.8,0),COLORMAGENTA;
STICKLINE(TJ1,0,2,0.2,0),COLORFF59AC;
DRAWTEXT(TJ1,2,'中牛'),COLORFF00FF,FONTSIZE16;
HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
HRY33:=SQRT(HRY11);
TJ2:=REF(SCZDFH,1) AND C<HRY33;
STICKLINE(TJ2,0,1,5,0),COLOR00CACA;
STICKLINE(TJ2,0,1,2,0),COLOR00E8E8;
STICKLINE(TJ2,0,1,1,0),COLORYELLOW;
STICKLINE(TJ2,0,1,0.2,0),COLOR42FFFF;
DRAWTEXT(TJ2,1,'大牛'),COLORYELLOW,FONTSIZE16;
ST:=REF(JCZGFH,1);
STICKLINE(ST,10,9,5,0),COLOR008800;
STICKLINE(ST,10,9,2,0),COLOR00AA00;
STICKLINE(ST,10,9,1,0),COLOR00CC00;
STICKLINE(ST,10,9,0.2,0),COLOR00FF00;
DRAWTEXT(ST,9,'卖'),COLOR00FF00,FONTSIZE16,VALIGN0; 来源 程序化久久网
请老师帮忙修改
N1:=5;N2:=10;
LC:=REF(CLOSE,1);
RSI5:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*10,COLORFF00FF,LINETHICK1;
RSI10:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*10,COLORYELLOW;
VAR1:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
MA5:=EMA(C,5);
MA13:=EMA(C,13);
JCJL:=BARSLAST(CROSS(MA5,MA13))+1;
SCJL:=BARSLAST(CROSS(MA13,MA5))+1;
JCZGJL:=HHVBARS(H,JCJL)+1;
SCZDJL:=LLVBARS(L,SCJL)+1;
JCZGFZ:=BACKSET(SCJL=1 OR (ISLASTBAR AND MA5>MA13),JCZGJL);
SCZDFZ:=BACKSET(JCJL=1 OR (ISLASTBAR AND MA5<MA13),SCZDJL);
JCZGFH:=JCZGFZ>REF(JCZGFZ,1);
SCZDFH:=SCZDFZ>REF(SCZDFZ,1);
UP:=TRENDLINES(SCZDFH,L,JCZGFH,H);
DOWN:=TRENDLINES(JCZGFH,H,SCZDFH,L);
ZGFHJL:=BARSLAST(JCZGFH);
ZDFHJL:=BARSLAST(SCZDFH);
BT:(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2)>0 AND CROSS(VAR2,MA(VAR2,2))) AND REF(SCZDFH,1);
0,COLORFF00FF;
10,COLORFF0000;
STICKLINE1(ZDFHJL<ZGFHJL,0,0.2,3,0),COLORRED;
STICKLINE1(ZGFHJL<ZDFHJL OR ZDFHJL=0,0,0.2,3,0),COLORGREEN;
STICKLINE1(BT,0,3,2,0),COLORLIGHTRED;
STICKLINE1(BT,0,3,1,0),COLORLIGHTRED;
STICKLINE1(BT,0,3,0.22,0),COLORRED;
DRAWTEXT(BT,3,'短牛'),COLORRED,FONTSIZE16;
TJ1:=REF(SCZDFH,1) AND C<HHV(H,21)*0.82;
STICKLINE1(TJ1,0,2,3,0),RGB(121,0,242);
STICKLINE1(TJ1,0,2,1.5,0),COLORMAGENTA;
STICKLINE1(TJ1,0,2,0.8,0),COLORMAGENTA;
STICKLINE1(TJ1,0,2,0.2,0),RGB(172,89,255);
DRAWTEXT(TJ1,2,'中牛'),COLORFF00FF,FONTSIZE16;
HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
HRY33:=SQRT(HRY11);
TJ2:=REF(SCZDFH,1) AND C<HRY33;
STICKLINE1(TJ2,0,1,5,0),RGB(202,202,0);
STICKLINE1(TJ2,0,1,2,0),RGB(232,232,0);
STICKLINE1(TJ2,0,1,1,0),COLORYELLOW;
STICKLINE1(TJ2,0,1,0.2,0),RGB(255,255,66);
DRAWTEXT(TJ2,1,'大牛'),COLORYELLOW,FONTSIZE16;
ST:=REF(JCZGFH,1);
STICKLINE1(ST,10,9,5,0),COLOR008800;
STICKLINE1(ST,10,9,2,0),COLOR00AA00;
STICKLINE1(ST,10,9,1,0),COLOR00CC00;
STICKLINE1(ST,10,9,0.2,0),COLOR00FF00;
DRAWTEXT(ST,9,'卖'),COLOR00FF00,FONTSIZE16,VALIGN0;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: N1:=5;N2:=10;
LC:=REF(CLOSE,1);
RSI5:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*10,COLORFF00FF,LINETHICK1;
RSI10:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*10,COLORYELLOW;
VAR1:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
MA5:=EMA(C,5);
MA13:=EMA(C,13);
JCJL:=BARSLAST(CROSS(MA5,MA13))+1;
SCJL:=BARSLAST(CROSS(MA13,MA5))+1;
JCZGJL:=HHVBARS(H,JCJL)+1;
SCZDJL:=LLVBARS(L,SCJL)+1;
JCZGFZ:=BACKSET(SCJL=1 OR (ISLASTBAR AND MA5>MA13),JCZGJL);
SCZDFZ:=BACKSET(JCJL=1 OR (ISLASTBAR AND MA5<MA13),SCZDJL);
JCZGFH:=JCZGFZ>REF(JCZGFZ,1);
SCZDFH:=SCZDFZ>REF(SCZDFZ,1);
//DRAWLINE(SCZDFH,L,JCZGFH,H,0);
//DRAWLINE(JCZGFH,H,SCZDFH,L,0);
ZGFHJL:=BARSLAST(JCZGFH);
ZDFHJL:=BARSLAST(SCZDFH);
BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2)>0 AND CROSS(VAR2,MA(VAR2,2))) AND REF(SCZDFH,1);
0,COLORFF00FF;
10,COLORFF0000;
STICKLINE(ZDFHJL<ZGFHJL,0,0.2,3,0),COLORRED;
STICKLINE(ZGFHJL<ZDFHJL OR ZDFHJL=0,0,0.2,3,0),COLORGREEN;
STICKLINE(BT,0,3,2,0),COLORRED;
STICKLINE(BT,0,3,1,0),COLORRED;
STICKLINE(BT,0,3,0.22,0),COLORRED;
DRAWTEXT(BT,3,'短牛'),COLORRED,FONTSIZE16;
TJ1:=REF(SCZDFH,1) AND C<HHV(H,21)*0.82;
STICKLINE(TJ1,0,2,3,0),COLORF20079;
STICKLINE(TJ1,0,2,1.5,0),COLORMAGENTA;
STICKLINE(TJ1,0,2,0.8,0),COLORMAGENTA;
STICKLINE(TJ1,0,2,0.2,0),COLORFF59AC;
DRAWTEXT(TJ1,2,'中牛'),COLORFF00FF,FONTSIZE16;
HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
HRY33:=SQRT(HRY11);
TJ2:=REF(SCZDFH,1) AND C<HRY33;
STICKLINE(TJ2,0,1,5,0),COLOR00CACA;
STICKLINE(TJ2,0,1,2,0),COLOR00E8E8;
STICKLINE(TJ2,0,1,1,0),COLORYELLOW;
STICKLINE(TJ2,0,1,0.2,0),COLOR42FFFF;
DRAWTEXT(TJ2,1,'大牛'),COLORYELLOW,FONTSIZE16;
ST:=REF(JCZGFH,1);
STICKLINE(ST,10,9,5,0),COLOR008800;
STICKLINE(ST,10,9,2,0),COLOR00AA00;
STICKLINE(ST,10,9,1,0),COLOR00CC00;
STICKLINE(ST,10,9,0.2,0),COLOR00FF00;
DRAWTEXT(ST,9,'卖'),COLOR00FF00,FONTSIZE16,VALIGN0; 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容