老师您好,谢谢您,请您帮我改一下指标,谢谢 [博易POBO]
咨询内容:
AMOUNT:=AVPRICE*V;
CURRBARSCOUNT:=REFX1(BARPOS,10000)-BARPOS;
A:=AMOUNT/V/100;
VARA:=EMA((((A-EMA(A,13))/EMA(A,13))*(0-100)),5);
操盘线:=EMA(((VARA/10)+EMA(A,10)),3);
行情线:=EMA(A,3);
重心:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;
趋势线:EMA(((SLOPE(C,22)*20)+C),55),COLORYELLOW,LINETHICK1;
红升:IF(重心>=趋势线,趋势线,NULL),COLORRED,LINETHICK1;
蓝降:IF(重心<趋势线,趋势线,NULL),COLORBLUE,LINETHICK1;
DRAWLINE(行情线<操盘线,H,行情线<操盘线,L,COLORGREEN);
STICKLINE(行情线<操盘线,C,O,2,1),COLORGREEN;
DRAWLINE(行情线>=操盘线,H,行情线>=操盘线,L,COLORRED);
STICKLINE(行情线>=操盘线,C,O,2,1),COLORRED;
DA:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;
DB:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4;
DRAWTEXT(CROSS(DA-DB,0),L*0.98,''),COLORGRAY;
JH:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;
DRAWTEXT(CROSS(84,JH),H*1.02,''),COLORMAGENTA;
涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0);
STICKLINE(涨停,O,C,2,0),COLORRED;
跌停:=IF((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0);
STICKLINE(跌停,O,C,2,1),COLORGREEN;
主趋势线:EMA(EMA(C,10),10),COLORRED,LINETHICK2;
B:=主趋势线>REF(主趋势线,1);
IF(B-1,主趋势线,NULL),COLORBLUE,LINETHICK2;
AA:=EMA(C,5) > EMA(C,20);
BB:=EMA(C,5) < EMA(C,20);
CC:= EMA(C,5) > EMA(C,10);
CC1:=EMA(C,5) < EMA(C,10);
DD:=CLOSE<OPEN;
STICKLINE(AA,O,C,3,1),COLORRED;
DRAWLINE(AA,H,AA,L,COLORRED);
STICKLINE(AA AND DD,O,C,3,0),COLORRED;
DRAWLINE(BB,H,BB,L,COLORGREEN);
STICKLINE(BB,O,C,3,1),COLORGREEN;
STICKLINE(BB AND DD,O,C,3,0),COLORGREEN;
DRAWLINE(BB AND CC,H,BB AND CC,L,COLORWHITE);
STICKLINE(BB AND CC,O,C,3,1),COLORWHITE;
STICKLINE(BB AND CC AND DD,O,C,3,0),COLORWHITE;
DRAWLINE(AA AND CC1,H,AA AND CC1,L,COLORWHITE);
STICKLINE(AA AND CC1,O,C,3,1),COLORWHITE;
STICKLINE(AA AND CC1 AND DD,O,C,3,0),COLORWHITE;
AAA:=REFX1(HHV(C,90),10000);
DRAWTEXT(C AND CURRBARSCOUNT=80 ,AAA, '红色K线做多,绿色K线做空,白色K线观望。 '),COLORYELLOW;
DRAWTEXT(CROSS(AA,0.5),H,'多');
DRAWTEXT(CROSS(BB,0.5),H,'空');
DRAWTEXT(CROSS(AA AND CC1,0.5)||CROSS(BB AND CC,0.5),H,'平');
CURRBARSCOUNT:=REFX(BARPOS,aaa1)-BARPOS;
A:=AMOUNT/V/100;
VARA:=EMA((((A-EMA(A,13))/EMA(A,13))*(0-100)),5);
操盘线:=EMA(((VARA/10)+EMA(A,10)),3);
行情线:=EMA(A,3);
重心:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;
趋势线:EMA(((SLOPE(C,22)*20)+C),55),COLORYELLOW,LINETHICK1;
红升:IF(重心>=趋势线,趋势线,drawNULL),COLORRED,LINETHICK1;
蓝降:IF(重心<趋势线,趋势线,drawNULL),COLORBLUE,LINETHICK1;
DRAWLINE(行情线<操盘线,H,行情线<操盘线,L,COLORGREEN);
STICKLINE(行情线<操盘线,C,O,2,1),COLORGREEN;
DRAWLINE(行情线>=操盘线,H,行情线>=操盘线,L,COLORRED);
STICKLINE(行情线>=操盘线,C,O,2,1),COLORRED;
DA:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;
DB:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4;
DRAWTEXT(CROSS(DA-DB,0),L*0.98,''),COLORGRAY;
JH:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;
DRAWTEXT(CROSS(84,JH),H*1.02,''),COLORMAGENTA;
涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0);
STICKLINE(涨停,O,C,2,0),COLORRED;
跌停:=IF((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0);
STICKLINE(跌停,O,C,2,1),COLORGREEN;
主趋势线:EMA(EMA(C,10),10),COLORRED,LINETHICK2;
B:=主趋势线>REF(主趋势线,1);
IF(B-1,主趋势线,drawNULL),COLORBLUE,LINETHICK2;
AA:=EMA(C,5) > EMA(C,20);
BB:=EMA(C,5) < EMA(C,20);
CC:= EMA(C,5) > EMA(C,10);
CC1:=EMA(C,5) < EMA(C,10);
DD:=CLOSE<OPEN;
STICKLINE(AA,O,C,3,1),COLORRED;
DRAWLINE(AA,H,AA,L,COLORRED);
STICKLINE(AA AND DD,O,C,3,0),COLORRED;
DRAWLINE(BB,H,BB,L,COLORGREEN);
STICKLINE(BB,O,C,3,1),COLORGREEN;
STICKLINE(BB AND DD,O,C,3,0),COLORGREEN;
DRAWLINE(BB AND CC,H,BB AND CC,L,COLORWHITE);
STICKLINE(BB AND CC,O,C,3,1),COLORWHITE;
STICKLINE(BB AND CC AND DD,O,C,3,0),COLORWHITE;
DRAWLINE(AA AND CC1,H,AA AND CC1,L,COLORWHITE);
STICKLINE(AA AND CC1,O,C,3,1),COLORWHITE;
STICKLINE(AA AND CC1 AND DD,O,C,3,0),COLORWHITE;
AAA:=REFX(HHV(C,90),aaa1);
DRAWTEXT(C AND CURRBARSCOUNT=80 ,AAA, '红色K线做多,绿色K线做空,白色K线观望。 '),COLORYELLOW;
DRAWTEXT(CROSS(AA,0.5),H,'多');
DRAWTEXT(CROSS(BB,0.5),H,'空');
DRAWTEXT(CROSS(AA AND CC1,0.5)||CROSS(BB AND CC,0.5),H,'平'); 来源 程序化久久网
老师您好,谢谢您,请您帮我改一下指标,谢谢
AMOUNT:=AVPRICE*V;
CURRBARSCOUNT:=REFX1(BARPOS,10000)-BARPOS;
A:=AMOUNT/V/100;
VARA:=EMA((((A-EMA(A,13))/EMA(A,13))*(0-100)),5);
操盘线:=EMA(((VARA/10)+EMA(A,10)),3);
行情线:=EMA(A,3);
重心:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;
趋势线:EMA(((SLOPE(C,22)*20)+C),55),COLORYELLOW,LINETHICK1;
红升:IF(重心>=趋势线,趋势线,NULL),COLORRED,LINETHICK1;
蓝降:IF(重心<趋势线,趋势线,NULL),COLORBLUE,LINETHICK1;
DRAWLINE(行情线<操盘线,H,行情线<操盘线,L,COLORGREEN);
STICKLINE(行情线<操盘线,C,O,2,1),COLORGREEN;
DRAWLINE(行情线>=操盘线,H,行情线>=操盘线,L,COLORRED);
STICKLINE(行情线>=操盘线,C,O,2,1),COLORRED;
DA:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;
DB:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4;
DRAWTEXT(CROSS(DA-DB,0),L*0.98,''),COLORGRAY;
JH:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;
DRAWTEXT(CROSS(84,JH),H*1.02,''),COLORMAGENTA;
涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0);
STICKLINE(涨停,O,C,2,0),COLORRED;
跌停:=IF((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0);
STICKLINE(跌停,O,C,2,1),COLORGREEN;
主趋势线:EMA(EMA(C,10),10),COLORRED,LINETHICK2;
B:=主趋势线>REF(主趋势线,1);
IF(B-1,主趋势线,NULL),COLORBLUE,LINETHICK2;
AA:=EMA(C,5) > EMA(C,20);
BB:=EMA(C,5) < EMA(C,20);
CC:= EMA(C,5) > EMA(C,10);
CC1:=EMA(C,5) < EMA(C,10);
DD:=CLOSE<OPEN;
STICKLINE(AA,O,C,3,1),COLORRED;
DRAWLINE(AA,H,AA,L,COLORRED);
STICKLINE(AA AND DD,O,C,3,0),COLORRED;
DRAWLINE(BB,H,BB,L,COLORGREEN);
STICKLINE(BB,O,C,3,1),COLORGREEN;
STICKLINE(BB AND DD,O,C,3,0),COLORGREEN;
DRAWLINE(BB AND CC,H,BB AND CC,L,COLORWHITE);
STICKLINE(BB AND CC,O,C,3,1),COLORWHITE;
STICKLINE(BB AND CC AND DD,O,C,3,0),COLORWHITE;
DRAWLINE(AA AND CC1,H,AA AND CC1,L,COLORWHITE);
STICKLINE(AA AND CC1,O,C,3,1),COLORWHITE;
STICKLINE(AA AND CC1 AND DD,O,C,3,0),COLORWHITE;
AAA:=REFX1(HHV(C,90),10000);
DRAWTEXT(C AND CURRBARSCOUNT=80 ,AAA, '红色K线做多,绿色K线做空,白色K线观望。 '),COLORYELLOW;
DRAWTEXT(CROSS(AA,0.5),H,'多');
DRAWTEXT(CROSS(BB,0.5),H,'空');
DRAWTEXT(CROSS(AA AND CC1,0.5)||CROSS(BB AND CC,0.5),H,'平');
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: aaa1:=if(datacount-BARPOS<=100,datacount-BARPOS,100);CURRBARSCOUNT:=REFX(BARPOS,aaa1)-BARPOS;
A:=AMOUNT/V/100;
VARA:=EMA((((A-EMA(A,13))/EMA(A,13))*(0-100)),5);
操盘线:=EMA(((VARA/10)+EMA(A,10)),3);
行情线:=EMA(A,3);
重心:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;
趋势线:EMA(((SLOPE(C,22)*20)+C),55),COLORYELLOW,LINETHICK1;
红升:IF(重心>=趋势线,趋势线,drawNULL),COLORRED,LINETHICK1;
蓝降:IF(重心<趋势线,趋势线,drawNULL),COLORBLUE,LINETHICK1;
DRAWLINE(行情线<操盘线,H,行情线<操盘线,L,COLORGREEN);
STICKLINE(行情线<操盘线,C,O,2,1),COLORGREEN;
DRAWLINE(行情线>=操盘线,H,行情线>=操盘线,L,COLORRED);
STICKLINE(行情线>=操盘线,C,O,2,1),COLORRED;
DA:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;
DB:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4;
DRAWTEXT(CROSS(DA-DB,0),L*0.98,''),COLORGRAY;
JH:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;
DRAWTEXT(CROSS(84,JH),H*1.02,''),COLORMAGENTA;
涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0);
STICKLINE(涨停,O,C,2,0),COLORRED;
跌停:=IF((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0);
STICKLINE(跌停,O,C,2,1),COLORGREEN;
主趋势线:EMA(EMA(C,10),10),COLORRED,LINETHICK2;
B:=主趋势线>REF(主趋势线,1);
IF(B-1,主趋势线,drawNULL),COLORBLUE,LINETHICK2;
AA:=EMA(C,5) > EMA(C,20);
BB:=EMA(C,5) < EMA(C,20);
CC:= EMA(C,5) > EMA(C,10);
CC1:=EMA(C,5) < EMA(C,10);
DD:=CLOSE<OPEN;
STICKLINE(AA,O,C,3,1),COLORRED;
DRAWLINE(AA,H,AA,L,COLORRED);
STICKLINE(AA AND DD,O,C,3,0),COLORRED;
DRAWLINE(BB,H,BB,L,COLORGREEN);
STICKLINE(BB,O,C,3,1),COLORGREEN;
STICKLINE(BB AND DD,O,C,3,0),COLORGREEN;
DRAWLINE(BB AND CC,H,BB AND CC,L,COLORWHITE);
STICKLINE(BB AND CC,O,C,3,1),COLORWHITE;
STICKLINE(BB AND CC AND DD,O,C,3,0),COLORWHITE;
DRAWLINE(AA AND CC1,H,AA AND CC1,L,COLORWHITE);
STICKLINE(AA AND CC1,O,C,3,1),COLORWHITE;
STICKLINE(AA AND CC1 AND DD,O,C,3,0),COLORWHITE;
AAA:=REFX(HHV(C,90),aaa1);
DRAWTEXT(C AND CURRBARSCOUNT=80 ,AAA, '红色K线做多,绿色K线做空,白色K线观望。 '),COLORYELLOW;
DRAWTEXT(CROSS(AA,0.5),H,'多');
DRAWTEXT(CROSS(BB,0.5),H,'空');
DRAWTEXT(CROSS(AA AND CC1,0.5)||CROSS(BB AND CC,0.5),H,'平'); 来源 程序化久久网
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxh99cxh99 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,谢谢您!)
相关文章
-
没有相关内容