文华财经K线变色源码公式是一种专为期货市场设计的主图指标,用于直观显示市场的多空力量变化。该指标通过颜色变化反映K线的涨跌情况,为期货交易者提供清晰的买卖信号。指标用于文华财经软件电脑端和随身行,无未来函数,下载是源码!
期货多空买卖主图指标部分代码:
VAR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;
VAR4:=EMA(VAR3,5);
VAR5:=3*VAR3-2*VAR4;
AA:=CROSS(VAR5,VAR3) AND VAR3<2.1 AND C>O;
VAR6:=(2*CLOSE+HIGH+LOW)/4;
VAR7:=LLV(LOW,13);
VAR8:=HHV(HIGH,13);
VAR9:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13);
VARA:=EMA(0.667*REF(VAR9,1)+0.333*VAR9,2);
S:VAR9,COLORRED,POINTDOT;
DRAWCOLORKLINE(VAR9>VARA,COLORRED,1);
DRAWCOLORKLINE(VAR9>VARA&&ISDOWN,COLORRED,0);
DRAWCOLORKLINE(VAR9<=VARA,COLORGREEN,1);