变量00:=5;变量01:=30;
A02:=(WINNER((CLOSE*1.100))*100.000);
A03:=(WINNER((CLOSE*0.9))*100.000);
A04:=MA(A03,变量00);
红柱:=1;
获利:MA(A03,变量00),COLORRED;
A06:=(100.000-MA(A02,变量00));
套牢:(100.000-MA(A02,变量00)),COLORWHITE,LINETHICK2;
A08:=(MA(A02,变量00) - MA(A03,变量00));
STICKLINE( 1.000,A04,MA(A02,变量00), 1.000,0),COLORYELLOW;
STICKLINE(获利>0,0,A04, 1.000,0),COLORRED;
浮动: (MA(A02,变量00) - MA(A03,变量00)),COLORYELLOW;
A0A:=(((((HHV(A04, 15.000) - A03) / A03)*100.000)>变量01) AND (HHV(A04, 15.000) >50.000));
TOWERC:=FORCAST(EMA((3*CLOSE+2*OPEN+HIGH+LOW)/7,3),6);
DIRECTIONMAX:=MAX(REF(TOWERC,1),REF(TOWERC,1));
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
XG:=MACD>0;
DIRECTIONMIN:=MIN(REF(TOWERC,1),REF(TOWERC,1));
STICKLINE(TOWERC>=REF(TOWERC,1),100,80,2,0),COLORMAGENTA;
获利启动:=BARSLASTCOUNT(TOWERC>=REF(TOWERC,1)AND 获利>1)=1;
买入启动:=BARSLASTCOUNT(TOWERC>=REF(TOWERC,1)AND XG)=1;
DRAWICON(获利启动,100,5);
DRAWICON(买入启动,100,9);