南昌阿华 发表于 2023-5-28 10:36

请老师帮忙修改一个通达信公式这个通不过。谢谢

MID:=MA(CLOSE,26);
UPPER:=MID+2*STD(CLOSE,26);
LOWER:=MID-2*STD(CLOSE,26);
tt:=BARSCOUNT(C);

CC:=CLOSE;

zz:=SUM(AMOUNT,tt)/SUM(VOL*100,tt);
zz1:=BETWEEN(C/zz,1.05,0.95);
均线:=IF(zz1=0,MA(C,TT),zz);
dd:=均线>ref(均线,1) and MID>ref(MID,1) and UPPER>ref(UPPER,1);
时长:=if(HOUR>=13 AND HOUR<15,1,0);
涨幅:=(close/DYNAINFO(3))>=1.015;
跌幅:=(close/DYNAINFO(3))<=0.985;
涨跌幅:=涨幅 OR 跌幅;
T:=BARSCOUNT(CLOSE);
A1:=(VOL/CLOSE)/2;

A2:=SUM(IF(A1>100 AND CLOSE>REF(CLOSE,1),A1,0),0);
A3:=SUM(IF(A1>100 AND CLOSE<REF(CLOSE,1),A1,0),0);
A4:=SUM(IF(A1<100 AND CLOSE>REF(CLOSE,1),A1,0),0);
A5:=SUM(IF(A1<100 AND CLOSE<REF(CLOSE,1),A1,0),0);
A6:=((A2+A3)+A4)+A5;
量比:=sum(vol,0)*240/dynainfo(38)/barscount(c);
机构买盘:=A2;
机构卖盘:=A3;
机构买:=CROSS(机构买盘,机构卖盘) and 量比>0.5;
横盘:=((HHV(CLOSE,TT)-LLV(CLOSE,TT))/CLOSE)<=0.03;
横涨:=涨跌幅=0 and 横盘 and 时长 and 机买 and CROSS(CC,MID) and DYNAINFO(22)<DYNAINF(23) and dd;
pp:filter(横涨,100);

gooloo 发表于 2023-8-26 00:52

感谢您的分享,好好学习,天天上涨!2023/8/26
页: [1]
查看完整版本: 请老师帮忙修改一个通达信公式这个通不过。谢谢