獲利比:=MA(WINNER(CLOSE)*100,5);
獲利均線:=SMA(獲利比,3,1);
一天線:=MA(C,1);
快線:MA((3*SMA((C-LLV(L,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1)-2*SMA(SMA((C-LLV(L,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1),3,1)),2),COLORRED,LINETHICK2;
操盤線:MA(3*SMA((C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100,5,1)-2*SMA(SMA((C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100,5,1),3,1),3),LINETHICK2;
通用操盤線:MA(3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),5),COLORBLUE,LINETHICK2;
VAR1:=(C*3+H+L+O)/6;
VAR2:=SMA(MAX(C-VAR1,0),8,1)/SMA(ABS(C-VAR1),8,1)*100;
VAR3:=100*(HHV(H,15)-C)/(HHV(H,13)-LLV(L,13))-45;
VAR4:=BARSLAST(CROSS(C,MA(C,21)));
VAR5:=BARSLAST(CROSS(MA(C,21),C));
VAR6:=IF(VAR4<VAR5,VAR4+1,0);
VAR7:=(C-REF(C,VAR6))/REF(C,VAR6)*100;
買入關注:IF(通用操盤線<5,10,0),COLORGREEN;
賣出關注:IF(通用操盤線>80,90,100),COLORGREEN;
IF(COUNT(獲利均線<2,10)>=9 AND
CROSS(獲利比,獲利均線),20,0);
DRAWTEXT(CROSS(操盤線,通用操盤線)AND
通用操盤線<10,20,'買點'),COLORRED;
DRAWICON(CROSS(通用操盤線,操盤線)AND 通用操盤線>90,100,2);
DRAWTEXT(CROSS(90,操盤線),90,'跑吧');
DRAWICON(CROSS(VAR2,VAR3)AND 操盤線<20 AND
獲利比>REF(獲利比,1),3,1);
DRAWTEXT(CROSS(快線,0),10,'金叉');
DRAWTEXT(CROSS(100,快線)
AND 操盤線>60 AND
一天線<REF(一天線,1),100,'死叉');
短線追漲:STICKLINE(REF(VAR7,1)=0 AND
VAR7>0,0,20,6,0);
VARE:=REF(LOW,1)*0.9;
VARF:=LOW*0.9;
VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;
VAR11:=EMA(VAR10,30);
VAR12:=VAR11-CLOSE;
VAR13:=REF(CLOSE,1);
VAR14:=SMA(MAX(CLOSE-VAR13,0),7,1)/SMA(ABS(CLOSE-VAR13),7,1)*100;
VAR15:=SMA(MAX(CLOSE-VAR13,0),13,1)/SMA(ABS(CLOSE-VAR13),13,1)*100;
VAR16:=BARSCOUNT(CLOSE);
VAR17:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
VAR18:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;
VAR19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1A:=(SMA(VAR19,4,1)-50)*2;
VAR1B:=SMA(VAR1A,3,1);
VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR1D:=SMA(VAR1C,4,1);
VAR1E:=SMA(VAR1D,3,1);
VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VAR20:=IF(VAR17<=25 AND VAR18<-95 AND
VAR1F>20 AND VAR1B<-30 AND
VAR1E<30 AND VAR12>=-0.25 AND
VAR14<22 AND VAR15<28 AND
VAR16>50,80,0);
導彈: VAR20;
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1))
* 100);
R:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW -
REF(CLOSE,1)))),10);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HD > 0) AND (HD >
LD)),HD,0),10);
DMM:=SUM(IF(((LD > 0) AND (LD >
HD)),LD,0),10);
PDI:=((DMP * 100) / R);
MDI:=((DMM * 100) / R);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) -
LLV(LOW,10)));
NEWVOL:=(RSI5 - WR10);
階段底部:=(AV + NEWVOL);
趨勢線:=LLV(階段底部,1);
IF(CROSS(趨勢線,0),50,0);