文华期货指标公式-均线预警指标-wh7多空飘带指标公式源码:
//波浪线
EMA30:EMA(C,30);
EMA80:EMA(C,80);
EMA150:EMA(C,300);
EMA300:EMA(C,300);
EMA499:EMA(C,499);
CONDB1:=NOT(TIME=0900)&&DAYBARPOS<>1&&EMA30>EMA80&&C>HV(H,10)&&C>EMA150&&C>EMA300&&EMA80>EMA499&&CROSS(C,EMA80)&&CROSS(C,EMA30);
CONDB2:=NOT(TIME=0900)&&DAYBARPOS<>1&&EMA30<EMA80&&C<LV(L,10)&&C<EMA150&&C<EMA300&&EMA80<EMA499&&CROSSDOWN(C,EMA80)&&CROSSDOWN(C,EMA30);
FILLRGN(C>EMA300&&EMA80>EMA499&&C>EMA300&&EMA30>EMA80&&EMA30>EMA300,EMA30,EMA150,RGB(80,0,0));
FILLRGN(C<EMA300&&EMA80<EMA499&&C<EMA300&&EMA30<EMA80&&EMA30<EMA300,EMA30,EMA150,RGB(0,80,0));
DRAWKLINE1(H,O,L,C);
DRAWCOLORKLINE(CONDB1,COLORMAGENTA,0);
DRAWCOLORKLINE(CONDB2,RGB(0,255,0),0);
DRAWICON(CROSS(C,EMA30)&&C>HV(H,5)&&C>EMA300&&EMA80>EMA499&&C>EMA300&&EMA30>EMA80&&EMA30>EMA300,L,1),VALIGN0;
DRAWICON(CROSSDOWN(C,EMA30)&&C<LV(L,5)&&C<EMA300&&EMA80<EMA499&&C<EMA300&&EMA30<EMA80&&EMA30<EMA300,H,2);
DRAWICON(CROSS(C,EMA80)&&C>HV(H,5)&&C>EMA300&&EMA80>EMA499&&C>EMA300&&EMA30>EMA80&&EMA30>EMA300,L,1),VALIGN0;
DRAWICON(CROSSDOWN(C,EMA80)&&C<LV(L,5)&&C<EMA300&&EMA80<EMA499&&C<EMA300&&EMA30<EMA80&&EMA30<EMA300,H,2);
DRAWICON(CROSS(C,EMA150)&&C>HV(H,5)&&C>EMA300&&EMA80>EMA499&&C>EMA300&&EMA30>EMA80&&EMA30>EMA300,L,1),VALIGN0;
DRAWICON(CROSSDOWN(C,EMA150)&&C<LV(L,5)&&C<EMA300&&EMA80<EMA499&&C<EMA300&&EMA30<EMA80&&EMA30<EMA300,H,2);