文华财经盘立方博易大师主图指标公式大全源码均线:
N:=3;
EMA25:EMA(C,25),COLORRED,LINETHICK2;
EMA70:EMA(C,70),COLORGREEN,LINETHICK2;
EMA450:EMA(C,450),COLORYELLOW,LINETHICK2;
CONDA1:=EMA25>EMA70&&C>HV(H,6)&&C>EMA450&&CROSS(C,EMA25);
CONDA2:=EMA25<EMA70&&C<LV(L,6)&&C<EMA450&&CROSSDOWN(C,EMA25);
CONDB1:=EMA25>EMA70&&C>HV(H,6)&&C>EMA450&&CROSS(C,EMA70)&&CROSS(C,EMA25);
CONDB2:=EMA25<EMA70&&C<LV(L,6)&&C<EMA450&&CROSSDOWN(C,EMA70)&&CROSSDOWN(C,EMA25);
DRAWTEXT(CONDA1,H+N*MINPRICE,'△'),COLORRED,FONTSIZE25;
DRAWTEXT(CONDA2,H+N*MINPRICE,'▽'),COLORGREEN,FONTSIZE25;
DRAWTEXT(CONDB1,L-N*MINPRICE,'▲'),COLORRED,VALIGN0,FONTSIZE25;
DRAWTEXT(CONDB2,L-N*MINPRICE,'▼'),COLORGREEN,VALIGN0,FONTSIZE25;
DRAWCOLORKLINE(CONDA1&&CONDB1,COLORMAGENTA,0);
DRAWCOLORKLINE(CONDA2&&CONDB2,COLORGREEN,0);