SUMBARS文华的这个函数博亦没有 [博易POBO]
咨询内容:
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA),COLORSTICK;
QZQ:=BARSLAST(REF(MACD,1)<0 AND MACD>0);
股价新低:=L=LLV(L,QZQ+10);
低7:=COUNT(股价新低,7)>0;
DIFF最低:=LLV(DIFF,QZQ-2)>LLV(DIFF,QZQ+10);
DIF非新低:=REF(DIFF最低,1);
底背离1:=低7 AND DIF非新低 AND CROSS(DIFF,DEA) AND COUNT(CROSS(DEA,DIFF),5)<2,COLORRED;
底背离:=IF(底背离1,0.5,0);
EJ:=REF(COUNT(底背离1,QZQ+1)=1,1) AND CROSS(DIFF,DEA) AND DIFF<0;
QSC:=BARSLAST(REF(MACD,1)>0 AND MACD<0);
股价新高:=H=HHV(H,QSC+10);
高7:=COUNT(股价新高,7)>0;
DIFF最高:=HHV(DIFF,QSC-2)<HHV(DIFF,QSC+10);
DIF非新高:=REF(DIFF最高,1);
顶背离1:=高7 AND DIF非新高 AND CROSS(DEA ,DIFF) AND COUNT(CROSS(DIFF,DEA),5)<2;
顶背离:=IF(顶背离1,0.5,0);
DRAWTEXT(顶背离1,DEA,'顶背离'),COLORRED,FONTSIZE21;
DRAWTEXT(底背离1,DEA,'底背离'),COLORYELLOW,FONTSIZE21;
H2:=VALUEWHEN(MACD<0,HHV(C,BARSLAST(MACD>0)));
H1:=REF(HHV(C,BARSLAST(CROSS(DIFF,DEA))),SUMBARS(CROSS(DEA,DIFF)=1,2));
MACD2:=VALUEWHEN(MACD<0,SUM(MACD,BARSLAST(MACD<0)));
MACD1:=REF(SUM(MACD,BARSLAST(CROSS(DIFF,DEA))+1),SUMBARS(CROSS(DEA,DIFF)=1,2));
DRAWTEXT(CROSS(DEA,DIFF)&&H1<H2&&MACD2<MACD1,DIFF,'顶背离');
L2:=VALUEWHEN(MACD>0,LLV(C,BARSLAST(MACD<0)));
L1:=REF(LLV(C,BARSLAST(CROSSDOWN(DIFF,DEA))),SUMBARS(CROSSDOWN(DEA,DIFF)=1,2));
MACD21:VALUEWHEN(MACD>0,SUM(MACD,BARSLAST(MACD<0))),NODRAW;
MACD11:REF(SUM(MACD,BARSLAST(CROSS(DEA,DIFF))+1),SUMBARS(CROSSDOWN(DEA,DIFF)=1,2)),NODRAW;
DRAWTEXT(CROSSDOWN(DEA,DIFF)&&L1>L2&&ABS(MACD11)>ABS(MACD21),DIFF,'低背离');
XX1:=CROSS(DEA,DIFF)&&H1<H2&&MACD2<MACD1||顶背离1;//顶背离
XX2:=CROSSDOWN(DEA,DIFF)&&L1>L2&&ABS(MACD11)>ABS(MACD21)||底背离1;//底背离 没有这个函数,指标用不了 来源 程序化久久网
SUMBARS文华的这个函数博亦没有
SUMBARS
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: DIFF:EMA(CLOSE,12) - EMA(CLOSE,26);DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA),COLORSTICK;
QZQ:=BARSLAST(REF(MACD,1)<0 AND MACD>0);
股价新低:=L=LLV(L,QZQ+10);
低7:=COUNT(股价新低,7)>0;
DIFF最低:=LLV(DIFF,QZQ-2)>LLV(DIFF,QZQ+10);
DIF非新低:=REF(DIFF最低,1);
底背离1:=低7 AND DIF非新低 AND CROSS(DIFF,DEA) AND COUNT(CROSS(DEA,DIFF),5)<2,COLORRED;
底背离:=IF(底背离1,0.5,0);
EJ:=REF(COUNT(底背离1,QZQ+1)=1,1) AND CROSS(DIFF,DEA) AND DIFF<0;
QSC:=BARSLAST(REF(MACD,1)>0 AND MACD<0);
股价新高:=H=HHV(H,QSC+10);
高7:=COUNT(股价新高,7)>0;
DIFF最高:=HHV(DIFF,QSC-2)<HHV(DIFF,QSC+10);
DIF非新高:=REF(DIFF最高,1);
顶背离1:=高7 AND DIF非新高 AND CROSS(DEA ,DIFF) AND COUNT(CROSS(DIFF,DEA),5)<2;
顶背离:=IF(顶背离1,0.5,0);
DRAWTEXT(顶背离1,DEA,'顶背离'),COLORRED,FONTSIZE21;
DRAWTEXT(底背离1,DEA,'底背离'),COLORYELLOW,FONTSIZE21;
H2:=VALUEWHEN(MACD<0,HHV(C,BARSLAST(MACD>0)));
H1:=REF(HHV(C,BARSLAST(CROSS(DIFF,DEA))),SUMBARS(CROSS(DEA,DIFF)=1,2));
MACD2:=VALUEWHEN(MACD<0,SUM(MACD,BARSLAST(MACD<0)));
MACD1:=REF(SUM(MACD,BARSLAST(CROSS(DIFF,DEA))+1),SUMBARS(CROSS(DEA,DIFF)=1,2));
DRAWTEXT(CROSS(DEA,DIFF)&&H1<H2&&MACD2<MACD1,DIFF,'顶背离');
L2:=VALUEWHEN(MACD>0,LLV(C,BARSLAST(MACD<0)));
L1:=REF(LLV(C,BARSLAST(CROSSDOWN(DIFF,DEA))),SUMBARS(CROSSDOWN(DEA,DIFF)=1,2));
MACD21:VALUEWHEN(MACD>0,SUM(MACD,BARSLAST(MACD<0))),NODRAW;
MACD11:REF(SUM(MACD,BARSLAST(CROSS(DEA,DIFF))+1),SUMBARS(CROSSDOWN(DEA,DIFF)=1,2)),NODRAW;
DRAWTEXT(CROSSDOWN(DEA,DIFF)&&L1>L2&&ABS(MACD11)>ABS(MACD21),DIFF,'低背离');
XX1:=CROSS(DEA,DIFF)&&H1<H2&&MACD2<MACD1||顶背离1;//顶背离
XX2:=CROSSDOWN(DEA,DIFF)&&L1>L2&&ABS(MACD11)>ABS(MACD21)||底背离1;//底背离 没有这个函数,指标用不了 来源 程序化久久网
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 或微信:cxhjy888 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容