VAR2:=LLV(LOW,10);
VAR3:=HHV(HIGH,25);
减仓线: 100.2 ;
卖出线: 100.5;
动力线: EMA((CLOSE-VAR2)/(VAR3-VAR2)*110,-1);
X1: 0;
VAR11:=MA(CLOSE,5);
VAR21:=MA(CLOSE,10);
VAR31:=MA(CLOSE,20);
VAR41:=MA(CLOSE,30);
VAR51:=(VAR11+VAR21+VAR31+VAR41)/4;
VAR61:=(VAR51-REF(VAR51,5))/REF(VAR51,5)*1500;
VAR71:=(VAR51-REF(VAR51,5))/REF(VAR51,5)*1500;
VAR81:=EMA(VAR61,8);
VAR91:=TROUGHBARS(3,15,1)
VAR101:=PEAKBARS(3,15,1)
VAR111:=IF(VAR91=1,50,0);
VAR121:=IF(VAR101=1,50,0);
底部:= IF(VAR111=50,50,0);
头部:= IF(VAR121=50,100,0);
A:IF( 底部 REF(底部,1),50,0);
AA:IF(头部 REF(头部,1),50,0);
DRAWTEXT(A=50,100,'买' ),COLORRED,LINETHICK2;
DRAWTEXT(AA=50,100,'卖'),COLORFFFFFF,LINETHICK2;