通达信监控买卖源码.幅图
{监控买卖}
QQ:=(MA(CLOSE,1) + MA(CLOSE,3) + MA(CLOSE,5) + MA(CLOSE,7) + MA(CLOSE,9)) / 5;
WW:=(MA(CLOSE,2) + MA(CLOSE,4) + MA(CLOSE,6) + MA(CLOSE,8) + MA(CLOSE,10)) / 5;
A:=EMA(QQ,3);
B:=EMA(WW,8);
VAR1:=EMA(AMOUNT,1)/EMA(VOL,1)/100;
AA:=DMA(A,VAR1);
BB:=DMA(B,VAR1);
VAR29:=MAX((2 * (AA - BB)),0) * 100;
NHS:EMA(VAR29,3),COLOR00FFFF,LINETHICK2;
STICKLINE(NHS>REF(NHS,1) ,NHS ,REF(NHS,1),3 ,1),COLORRED;
STICKLINE(NHS<=REF(NHS,1) ,NHS ,REF(NHS,1),3 ,1),COLOR00FF00;
CB:=WINNER(CLOSE)*100;
CC:=EMA(CB,2);
热度:MAX((EMA(CC,2) - EMA(CC,5)),0),LINETHICK0,COLORRED;
止赢:IF(CROSS(VAR29,0.01),CLOSE,REF(CLOSE,BARSLAST(CROSS(VAR29,0.01))))*1.06,LINETHICK0;
止损:IF(CROSS(VAR29,0.01),(LOW * 0.995),REF((LOW * 0.995),BARSLAST(CROSS(VAR29,0.01)))),LINETHICK0;