1、通达信指标王之红绿博弈主图指标公式A1:=(EMA(OPEN+HIGH+LOW+CLOSE)/4,3)+EMA(OPEN+HIGH+LOW+CLOSE)/4,6)+EMA(OPEN+HIGH+LOW+CLOSE)/4,9)/3;A2:=(EMA(OPEN+HIGH+LOW+CLOSE)/4,5)+EMA(OPEN+HIGH+LOW+CLOSE)/4,10)+EMA(OPEN+HIGH+LOW+CLOSE)/4,20)/3;A3:=(EMA(OPEN+HIGH+LOW+CLOSE)/4,7)+EMA(OPEN+HIGH+LOW+CLOSE)/4,14)+EMA(OPEN+HIGH+LOW+CLO
2、SE)/4,28)/3;A4:=(EMA(OPEN+HIGH+LOW+CLOSE)/4,9)+EMA(OPEN+HIGH+LOW+CLOSE)/4,18)+EMA(OPEN+HIGH+LOW+CLOSE)/4,36)/3;A5:=(EMA(OPEN+HIGH+LOW+CLOSE)/4,11)+EMA(OPEN+HIGH+LOW+CLOSE)/4,22)+EMA(OPEN+HIGH+LOW+CLOSE)/4,44)/3;A6:=(EMA(OPEN+HIGH+LOW+CLOSE)/4,13)+EMA(OPEN+HIGH+LOW+CLOSE)/4,26)+EMA(OPEN+HIGH+LOW+CLOS
3、E)/4,52)/3;A7:=(EMA(OPEN+HIGH+LOW+CLOSE)/4,21)+EMA(OPEN+HIGH+LOW+CLOSE)/4,34)+EMA(OPEN+HIGH+LOW+CLOSE)/4,68)/3;VAR1:=FORCAST(A1,6);VAR2:=FORCAST(A2,6);VAR3:=FORCAST(A3,6);VAR4:=FORCAST(A4,6);VAR5:=FORCAST(A5,6);VAR6:=FORCAST(A6,6);VAR7:=FORCAST(A7,6);IF(VAR1REF(VAR1,1),VAR1,DRAWNULL),LINEDOT,COLORFF
4、00FF;IF(VAR1REF(VAR2,1),VAR2,DRAWNULL),LINEDOT,COLORFF00FF;IF(VAR2REF(VAR3,1),VAR3,DRAWNULL),LINEDOT,COLORFF00FF;IF(VAR3REF(VAR4,1),VAR4,DRAWNULL),LINEDOT,COLORFF00FF;IF(VAR4REF(VAR5,1),VAR5,DRAWNULL),LINEDOT,COLORFF00FF;IF(VAR5REF(VAR6,1),VAR6,DRAWNULL),LINEDOT,COLORFF00FF;IF(VAR6REF(VAR7,1),VAR7,D
5、RAWNULL),LINETHICK2,COLORFF00FF;IF(VAR7=REF(TOWERC,1),TOWERC,DIRECTIONMAX,3,0),COLOR0000FF;STICKLINE(TOWERC=REF(TOWERC,1),TOWERC,DIRECTIONMAX,3,0),COLOR0000FF;STICKLINE(TOWERC=REF(TOWERC,1),TOWERC,DIRECTIONMAX,2.4,0),COLOR0000FF;STICKLINE(TOWERC=REF(TOWERC,1),TOWERC,DIRECTIONMAX,1.8,0),COLOR0000FF;S
6、TICKLINE(TOWERC=REF(TOWERC,1),TOWERC,DIRECTIONMAX,1.2,0),COLOR0000FF;STICKLINE(TOWERC=REF(TOWERC,1),TOWERC,DIRECTIONMAX,0.6,0),COLOR0000FF;STICKLINE(TOWERC=REF(TOWERC,1),TOWERC,DIRECTIONMAX,0,0),COLOR0000FF;STICKLINE(TOWERCREF(TOWERC,1),TOWERC,DIRECTIONMAX,3,0),COLOR00FF00;STICKLINE(TOWERCREF(TOWERC
7、,1),TOWERC,DIRECTIONMAX,2.4,0),COLOR00FF00;STICKLINE(TOWERCREF(TOWERC,1),TOWERC,DIRECTIONMAX,1.8,0),COLOR00FF00;STICKLINE(TOWERCREF(TOWERC,1),TOWERC,DIRECTIONMAX,1.2,0),COLOR00FF00;STICKLINE(TOWERCREF(TOWERC,1),TOWERC,DIRECTIONMAX,0.6,0),COLOR00FF00;STICKLINE(TOWERCREF(TOWERC,1),TOWERC,DIRECTIONMAX,0,0),COLOR00FF00;