市场难做 发个我认为不错的公式给大家
{机构预测}
VAR1:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
VAR2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR3:=SMA(VAR2,13,8);
看涨:SMA(VAR3,13,8),COLORRED;
看跌:SMA(VAR1,21,8),COLORFFFF00;
绿柱震仓:IF(看涨,1,DRAWNULL),COLORLIGREEN,LINETHICK9;
买入:CROSS(看涨,看跌),COLORMAGENTA;
卖出:CROSS(看跌,看涨),COLORLICYAN;
持股:IF(看涨>看跌,1,DRAWNULL),COLORRED,LINETHICK9;
持币:IF(看涨<看跌,1,DRAWNULL),COLORFFFF00,LINETHICK9;