精準(zhǔn)的趨勢公式
買入基礎(chǔ):=EMA(C,5)>REF(EMA(C,5),1) AND EMA(C,10)>=REF(EMA(C,10),1); VAR1:=EMA(INDEXC,5); VAR2:=EMA(INDEXC,10); VAR3:=EMA(INDEXC,20); VAR4:=VAR1>=REF(VAR1,1) AND 買入基礎(chǔ); VAR5:=VAR2>=REF(VAR2,1) AND 買入基礎(chǔ); VAR6:=VAR3>=REF(VAR3,1) AND 買入基礎(chǔ); STICKLINE(VAR6,40,50,8,0),COLOR1068B4,LINETHICK2; STICKLINE(VAR6,40,50,7,0),COLOR1078B4,LINETHICK2; STICKLINE(VAR6,40,50,6,0),COLOR1088B4,LINETHICK2; STICKLINE(VAR6,40,50,5,0),COLOR1098B4,LINETHICK2; STICKLINE(VAR6,40,50,4,0),COLOR10A8B4,LINETHICK2; STICKLINE(VAR6,40,50,3,0),COLOR10B8B4,LINETHICK2; STICKLINE(VAR6,40,50,2,0),COLOR10C8B4,LINETHICK2; STICKLINE(VAR6,40,50,1,0),COLOR10D8B4,LINETHICK2; STICKLINE(VAR5,30,40,8,0),COLOR102070,LINETHICK2; STICKLINE(VAR5,30,40,7,0),COLOR102080,LINETHICK2; STICKLINE(VAR5,30,40,6,0),COLOR102090,LINETHICK2; STICKLINE(VAR5,30,40,5,0),COLOR1020A0,LINETHICK2; STICKLINE(VAR5,30,40,4,0),COLOR1020B0,LINETHICK2; STICKLINE(VAR5,30,40,3,0),COLOR1020C0,LINETHICK2; STICKLINE(VAR5,30,40,2,0),COLOR1020D0,LINETHICK2; STICKLINE(VAR5,30,40,1,0),COLOR1020E0,LINETHICK2; STICKLINE(VAR4,20,30,8,0),COLOR105510,LINETHICK2; STICKLINE(VAR4,20,30,7,0),COLOR106610,LINETHICK2; STICKLINE(VAR4,20,30,6,0),COLOR107710,LINETHICK2; STICKLINE(VAR4,20,30,5,0),COLOR108810,LINETHICK2; STICKLINE(VAR4,20,30,4,0),COLOR109910,LINETHICK2; STICKLINE(VAR4,20,30,3,0),COLOR10AA10,LINETHICK2; STICKLINE(VAR4,20,30,2,0),COLOR10BB10,LINETHICK2; STICKLINE(VAR4,20,30,1,0),COLOR10CC10,LINETHICK2;{大盤均線} VAR7:=EMA(INDEXV,5); VAR8:=EMA(INDEXV,10); VAR9:=EMA(INDEXV,20); VAR10:=VAR7>=REF(VAR7,1) AND 買入基礎(chǔ); VAR11:=VAR8>=REF(VAR8,1) AND 買入基礎(chǔ); VAR12:=VAR9>=REF(VAR9,1) AND 買入基礎(chǔ); STICKLINE(VAR12,70,80,8,0),COLOR108010,LINETHICK2; STICKLINE(VAR12,70,80,7,0),COLOR109010,LINETHICK2; STICKLINE(VAR12,70,80,6,0),COLOR10A010,LINETHICK2; STICKLINE(VAR12,70,80,5,0),COLOR10B010,LINETHICK2; STICKLINE(VAR12,70,80,4,0),COLOR10C010,LINETHICK2; STICKLINE(VAR12,70,80,3,0),COLOR10D010,LINETHICK2; STICKLINE(VAR12,70,80,2,0),COLOR10E010,LINETHICK2; STICKLINE(VAR12,70,80,1,0),COLOR10F010,LINETHICK2; STICKLINE(VAR11,60,70,8,0),COLORFF45FF,LINETHICK2; STICKLINE(VAR11,60,70,7,0),COLORFF55FF,LINETHICK2; STICKLINE(VAR11,60,70,6,0),COLORFF65FF,LINETHICK2; STICKLINE(VAR11,60,70,5,0),COLORFF75FF,LINETHICK2; STICKLINE(VAR11,60,70,4,0),COLORFF85FF,LINETHICK2; STICKLINE(VAR11,60,70,3,0),COLORFF95FF,LINETHICK2; STICKLINE(VAR11,60,70,2,0),COLORFFA5FF,LINETHICK2; STICKLINE(VAR11,60,70,1,0),COLORFFB5FF,LINETHICK2; STICKLINE(VAR10,50,60,8,0),COLOR1055FF,LINETHICK2; STICKLINE(VAR10,50,60,7,0),COLOR1066FF,LINETHICK2; STICKLINE(VAR10,50,60,6,0),COLOR1077FF,LINETHICK2; STICKLINE(VAR10,50,60,5,0),COLOR1088FF,LINETHICK2; STICKLINE(VAR10,50,60,4,0),COLOR1099FF,LINETHICK2; STICKLINE(VAR10,50,60,3,0),COLOR10AAFF,LINETHICK2; STICKLINE(VAR10,50,60,2,0),COLOR10BBFF,LINETHICK2; STICKLINE(VAR10,50,60,1,0),COLOR10CCFF,LINETHICK2;{大盤均量線} {以下語句是股道趨勢及其買賣點(diǎn)} A1:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04; A2:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2; 買入:=A1 AND A2; A3:=REF(CLOSE,1); A4:=SMA(MAX(CLOSE-A3,0),6,1)/SMA(ABS(CLOSE-A3),6,1)*100; 賣出:=CROSS(80,A4); 低吸線: 20,POINTDOT,COLOR1090FF; 強(qiáng)弱線: 50,POINTDOT,COLORBBBB00 ; 高拋線: 80,POINTDOT,COLOR109C10; A5:=LLV(LOW,18); A6:=HHV(HIGH,18); A7:=EMA((CLOSE-A5)/(A6-A5)*100,13); 股道趨勢:EMA(0.618*REF(A7,1)+0.382*A7,3),COLORYELLOW,LINETHICK2; PolyLINE(股道趨勢<=REF(股道趨勢,1),股道趨勢),COLORBLUE,LINETHICK2; A8:=MA(C,1)/MA(REF(C,18),18)*100; A9:=MA(FORCAST(A8,20),6); 攻擊點(diǎn):=IF(FILTER(CROSS(A8,A9),5)=1,50,0);{買1} DRAWICON(攻擊點(diǎn),股道趨勢*0.98,1); DRAWICON(賣出,股道趨勢,2);{賣} DRAWICON(買入,股道趨勢,1);{買2}
|