快好知 kuaihz

文华公式 (51020) 波峰波谷信号

MA5:MA(C,5),NODRAW;

MA10:MA(C,10),NODRAW;

MA20:MA(C,20),NODRAW;

DD:MA5>MA10&&MA10>MA20;

KK:MA5<MA10&&MA10<MA20;

SS:C>HV(MAX(C,O),3);

SS1:C<LV(MIN(C,O),3);

DHC:COUNT(SS1,SUMBARS(SS,1))=1&&SS1;

BF1:BACKSET(DHC,SUMBARS(SS,1));

DRAWTEXT(CROSS(BF1,0.5),H,"波峰");

DRAWICON(REF(DHC,1)&&C>REF(C,1)&&DD,L,4),VALIGN0;

T6C:=VALUEWHEN(REF(DHC,1)&&C>REF(C,1)&&DD,C);

ZS1:=L<T6C*(1-0.005);

ZS2:=COUNT(ZS1,SUMBARS(REF(DHC,1)&&C>REF(C,1)&&DD,1))=1&&ZS1&&SUMBARS(REF(DHC,1)&&C>REF(C,1)&&DD,1)>1;

DRAWTEXT(ZS2,H,"止损"),COLORRED;

BFC:=VALUEWHEN(CROSS(BF1,0.5),H);

ZY1:=CBFC;

ZY2:=COUNT(ZY1,SUMBARS(REF(DHC,1)&&C>REF(C,1)&&DD,1))=1&&ZY1&&EXIST(REF(DHC,1)&&C>REF(C,1)&&DD,SUMBARS(CROSS(BF1,0.5),1));

DRAWTEXT(ZY2,H,"止赢"),COLORRED;

KHC:COUNT(SS,SUMBARS(SS1,1))=1&&SS;

BG1:BACKSET(KHC,SUMBARS(SS1,1));

DRAWTEXT(CROSS(BG1,0.5),L,"波谷"),VALIGN0;

DRAWICON(REF(KHC,1)&&C<REF(C,1)&&KK,H,5);

XT6C:=VALUEWHEN(REF(KHC,1)&&C<REF(C,1)&&KK,C);

XZS1:=H>XT6C*(1+0.005);

XZS2:=COUNT(XZS1,SUMBARS(REF(KHC,1)&&C<REF(C,1)&&KK,1))=1&&XZS1&&SUMBARS(REF(KHC,1)&&C1;

DRAWTEXT(XZS2,L,"止损"),COLORGREEN;

XBFC:=VALUEWHEN(CROSS(BG1,0.5),L);

XZY1:=C>REF(C,1)*(1+0.005) && L<XBFC;

XZY2:=COUNT(XZY1,SUMBARS(REF(KHC,1)&&C<REF(C,1)&&KK,1))=1&&XZY1&&EXIST(REF(KHC,1)&&C<REF(C,1)&&KK,SUMBARS(CROSS(BG1,0.5),1));

DRAWTEXT(XZY2,L,"止赢"),COLORGREEN;

本站资源来自互联网,仅供学习,如有侵权,请通知删除,敬请谅解!
搜索建议:文华公式 波峰波谷信号  文华  文华词条  波谷  波谷词条  波峰  波峰词条  公式  公式词条  信号  信号词条  
股票

 MACD高级用法:MACD柱状线...

MACD柱状线“双重谷”,顾名思义,在0轴之下,一组与红柱线相邻的绿柱线经过两次发散与收敛的过程,形成两个谷值,构成像两座山谷一样的形态。形成原因:短线两波持续...(展开)

股票

 巧用MACD选强势股,再次放量启...

编写公式我不是专家,只能算入门级,所以编写的公式会漏掉一些股票。当然很多指标公式都会犯这样的错误,所以我们不必太过迷恋公式,要养成复盘的习惯,时间不多的话 就把...(展开)