呵呵,主圖指標貼出來,參數(shù)在圖中,N1,N2,N3,N4,可自行調(diào)節(jié)。指標供參考,決策在人腦!炒股純屬娛樂,玩唄。。。嘿嘿。。。 W:=(3*CLOSE+LOW+OPEN+HIGH)/6; 啟動:EMA(W,N1),ColorFF1EFF; 持股:EMA(W,N2),Color1EFFFF; 辰星:(20*W+19*REF(W,1)+18*REF(W,2)+17*REF(W,3)+16*REF(W,4)+15*REF(W,5)+14*REF(W,6)+13*REF(W,7)+12*REF(W,8)+11*REF(W,9)+10*REF(W,10)+9*REF(W,11)+8*REF(W,12)+7*REF(W,13)+6*REF(W,14)+5*REF(W,15)+4*REF(W,16)+3*REF(W,17)+2*REF(W,18)+REF(W,20))/211,ColorFFFF1E; 強弱:EMA(W,N3),Color246BFF; 牛熊:MA(W,N4),ColorFF2F2F; aa1:=WMA(CLOSE,2); bb1:=EMA(aa1,2); a0:=MA(bb1,3); aa2:=WMA((HIGH+CLOSE+OPEN)/3,6); dd3:=a0>=aa2 AND CLOSE>aa2; dd4:=a0<aa2 ; dd5:=a0>aa2 ; cc10:=((CLOSE-REF(MA(CLOSE,6),1))/3+MA(CLOSE,5))*1.004; cc20:=CROSS(CLOSE,cc10) AND cc10>REF(cc10,1); STICKLINE((dd4 OR dd5) AND OPEN<=CLOSE ,HIGH,LOW,0,0),ColorC400C4; STICKLINE((dd4 OR dd5) AND OPEN<=CLOSE ,CLOSE,OPEN,10,0),Color880088; STICKLINE((dd4 OR dd5) AND OPEN<=CLOSE ,CLOSE,OPEN,8,0),ColorA600A6; STICKLINE((dd4 OR dd5) AND OPEN<=CLOSE ,CLOSE,OPEN,4,0),ColorC400C4;//粉 STICKLINE((dd4 OR dd5) AND OPEN>=CLOSE ,HIGH,LOW,0,0),ColorA2A200; STICKLINE((dd4 OR dd5) AND OPEN>=CLOSE ,CLOSE,OPEN,10,0),Color646400; STICKLINE((dd4 OR dd5) AND OPEN>=CLOSE ,CLOSE,OPEN,8,0),Color828200; STICKLINE((dd4 OR dd5) AND OPEN>=CLOSE ,CLOSE,OPEN,4,0),ColorA2A200;//青 STICKLINE((dd3 OR CLOSE>aa2) AND OPEN<=CLOSE,HIGH,LOW,0,0),Color0000A2; STICKLINE((dd3 OR CLOSE>aa2) AND OPEN<=CLOSE,CLOSE,OPEN,10,0),Color000064; STICKLINE((dd3 OR CLOSE>aa2) AND OPEN<=CLOSE,CLOSE,OPEN,8,0),Color000082; STICKLINE((dd3 OR CLOSE>aa2) AND OPEN<=CLOSE,CLOSE,OPEN,4,0),Color0000A2;//紅 STICKLINE((dd3 OR CLOSE>aa2) AND OPEN>=CLOSE,HIGH,LOW,0,0),Color00A200; STICKLINE((dd3 OR CLOSE>aa2) AND OPEN>=CLOSE,CLOSE,OPEN,10,0),Color006400; STICKLINE((dd3 OR CLOSE>aa2) AND OPEN>=CLOSE,CLOSE,OPEN,8,0),Color008200; STICKLINE((dd3 OR CLOSE>aa2) AND OPEN>=CLOSE,CLOSE,OPEN,4,0),Color00A200;//綠 STICKLINE(cc20,HIGH,LOW,0,0),Color0065CA; STICKLINE(cc20,OPEN,CLOSE,10,0),Color00468C; STICKLINE(cc20,OPEN,CLOSE,8,0),Color0055AA; STICKLINE(cc20,OPEN,CLOSE,4,0),Color0065CA;//橘黃 KS:=(C-MA(C,15))/MA(C,15)*(-100); RKS:=REF(KS,1); MLS:=RKS/KS>=1.15 AND RKS>=5 AND C/REF(C,1)>=1.01; STICKLINE(MLS=1,H,L,0,0),ColorD5006A; STICKLINE(MLS=1,C,O,10,1),Color97004B; STICKLINE(MLS=1,C,O,8,1),ColorB5005A; STICKLINE(MLS=1,C,O,4,1),ColorD5006A;//紫超跌反彈 BDGD:=CROSS(0.8,H=HHV(H,6)); GDSJ:=BARSLAST(BDGD)+1; 波峰:=REF(H,GDSJ); BDDD:=CROSS(0.8,L=LLV(L,6)); DDSJ:=BARSLAST(BDDD)+1; 波谷:=REF(L,DDSJ); STICKLINE(GDSJ<=6,波峰,波峰,6,0),ColorFFFFFF; STICKLINE(DDSJ<=6,波谷,波谷,6,0),Color0000F0; CCI1:=(W-MA(W,5))/(0.015*AVEDEV(W,6)); CCI2:=(W-MA(W,8))/(0.015*AVEDEV(W,12)); 差值:=ABS(REF(CCI2,1)-CCI2); VAR1:=WMA(W,8); VAR2:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3; 下跌:=IF(VAR1=VAR2,VAR2,0); TJ1:= CCI1>差值; 立樁量:=TJ1; TJ2:=IF(BARSLAST(立樁量)=1 ,1,IF(BARSLAST(立樁量)=2 ,1, IF(BARSLAST(立樁量)=3 ,1,0))); 三天法則1:=TJ2=1; 成立1:=三天法則1; 條件成立1:=FILTER(成立1,7); STICKLINE(條件成立1,H ,L,0,0),ColorCE6700; STICKLINE(條件成立1,C ,O,10,0),Color914800; STICKLINE(條件成立1,C ,O,8,0),ColorB05800; STICKLINE(條件成立1,C ,O,4,0),ColorCE6700;//藍減 TJ11:= cci1<-差值 ; 立樁量2:=TJ11; TJ22:=IF(BARSLAST(立樁量2)=1 AND CLOSE>REF(HIGH,1),1, IF(BARSLAST(立樁量2)=2 AND CLOSE>REF(HIGH,2),1, IF(BARSLAST(立樁量2)=3 AND CLOSE>REF(HIGH,3),1,0))); 三天法則2:=TJ22=1; 成立2:=三天法則2; 條件成立2:=FILTER(成立2,7); STICKLINE(條件成立2,H ,L,0,0),Color00D5D5; STICKLINE(條件成立2,C ,O,10,0),Color009797; STICKLINE(條件成立2,C ,O,8,0),Color00B5B5; STICKLINE(條件成立2,C ,O,4,0),Color00D5D5;//黃進 A1:=MIN(O,C); B1:=ABS(O-C); LC:=REF(CLOSE,1); RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3); MA15:=EMA(CLOSE,21); STICKLINE(CROSS(FF,MA15),A1,A1+B1/2,10,0),Color97004B; STICKLINE(CROSS(FF,MA15),A1,A1+B1/2,8,0),ColorB5005A; STICKLINE(CROSS(FF,MA15),A1,A1+B1/2,4,0),ColorD5006A;//紫底背 STICKLINE(CROSS(88,RSI),A1+B1,A1+B1/2,10,0),ColorA5A5A5; STICKLINE(CROSS(88,RSI),A1+B1,A1+B1/2,8,0),ColorC2C2C2; STICKLINE(CROSS(88,RSI),A1+B1,A1+B1/2,4,0),ColorE1E1E1;//白頂背 |
|
|