【大智慧】銀河攻防主圖指標(biāo)公式
攻城獅 2015.11.27 02:07
DRAWGBK(c,’靈’ );
快線:EMA(EMA(EMA(EMA(CLOSE,3),3),3),1),LINETHICK2,COLOR0000FF;
慢線:EMA(REF(快線,1),3),LINETHICK2,COLOR00FFFF;
總趨勢:EMA(EMA(EMA(EMA(EMA(CLOSE,65),3),3),3),3),LINETHICK2,colorff00ff;
Var1:=LLV(LOW,37);
Var2:=HHV(HIGH,20);
Var3:=EMA((CLOSE-Var1)/(Var2-Var1),13);
Var4:=REF(CLOSE,1);
Var5:=SMA(MAX(CLOSE-Var4,0),6,1)/SMA(ABS(CLOSE-Var4),6,1)*100;
Var12:=REF(LOW,1);
Var13:=SMA(ABS(LOW-Var12),13,1)/SMA(MAX(LOW-Var12,0),13,1)*100;
Var14:=EMA(IF(CLOSE*1.2,Var13*13,Var13/13),13);
Var15:=LLV(LOW,34);
Var16:=HHV(Var14,34);
Var17:=IF(LLV(LOW,56),1,0);
Var18:=EMA(IF(LOW<=Var15,(Var14+Var16*2)/2,0),3)/618*Var17;
Var19:=IF(Var18 DRAWTEXT(CROSS(Var19,0),L*0.90,’▲主進’),colorff00ff;
DRAWICON(cross(Var3,ref(Var3,1)),L*0.96,7);
DRAWICON(cross(ref(Var3,1),Var3),h*1.05,8);
DRAWTEXT(CROSS(76,Var5),h*1.05,’賣’) ,COLORyellow;
DRAWTEXT(CROSS(Var5,25),L*0.99,’買’) ,colorred;
黃金賣點:EMA(c+(h-l)*0.618,3),coloryellow,LINETHICK1;
黃金買點:EMA((o+h+l)/3,4),colorccffff,LINETHICK0;
紅粉佳人:EMA(SLOPE(C,21)*20+C,42),COLORred,LINETHICK0;
DRAWTEXTREL(700,20,’黃金賣點:’+NUMTOSTRN(黃金賣點,2 )),LINETHICK2,coloryellow;
DRAWTEXTREL(400,20,’黃金買點:’+NUMTOSTRN(黃金買點,2 )),LINETHICK2,coloryellow;
PARTLINE(黃金買點,c>=黃金買點,RGB(255,0,255),1,RGB(0,0,0)),LINETHICK1;
PARTLINE(紅粉佳人,c>=黃金買點 and 紅粉佳人>=ref(紅粉佳人,1),RGB(255,0,0),紅粉佳人>=ref(紅粉佳人,1),RGB(255,255,255),c>=黃金買點 and 紅粉佳人 預(yù)測明日買點:=EMA((o+h+l)/3,4)+((h+l)/2-ref((o+h+l)/3,3))/4;
DRAWTEXTREL(360,100,’昨測今日買點:’+NUMTOSTRN(ref(預(yù)測明日買點,1),2 )),LINETHICK2,colorwhite;
預(yù)測明日賣點:=EMA(c+(h-l)*0.618,3)+(EMA(c+(h-l)*0.618,3)-黃金買點)*0.618;
DRAWTEXTREL(670,100,’昨測今日賣點:’+NUMTOSTRN(ref(預(yù)測明日賣點,1),2 )),LINETHICK2,colorwhite;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR008800;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR009900;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00AA00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00BB00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR00CC00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00EE00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLORFFBBFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLORFF00FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLORFF22FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLORFF44FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLORFF66FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLORFF88FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLORFFAAFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLORFFBBFF;
PARTLINE( ref(ma(c,5),BARSLAST( ma(v,5)=hhv(ma(v,5),20))),c),COLORWHITE,DOTLINE,LINETHICK1;
PARTLINE( ref(ma(c,15),BARSLAST( ma(v,15)=hhv(ma(v,15),20))),c),colorblue,DOTLINE,LINETHICK1;
A:=BARSCOUNT(C);
AH:=HHV(H,200);
AL:=LLV(L,200);
A0:=(AH-AL)/40;
B1:=L-A0;
STICKLINE((A+0)/34=FLOOR((A+0)/34),B1,B1-1.5*A0,3,0),COLORF00FF0;
DRAWTEXT((A+0)/34=FLOOR((A+0)/34),B1-1*A0,’時間窗’),COLORWHITE;
早晨之星:=REF(CLOSE,2)/REF(OPEN,2)<0.95 AND REF(OPEN,1) REF(CLOSE,1))/REF(CLOSE,1)<0.03 AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2);
黃昏之星:=REF(CLOSE,2)/REF(OPEN,2)>1.03 AND REF(OPEN,1)>REF(CLOSE,2) AND ABS(REF(OPEN,1)-
REF(CLOSE,1))/REF(CLOSE,1)<0.02 AND CLOSE/OPEN<0.97 AND CLOSE 長十字:=CLOSE=OPEN AND HIGH/LOW >1.03;
垂死十字:=CLOSE=OPEN AND CLOSE=LOW AND CLOSE<>HIGH;
早晨十字星:=REF(CLOSE,2)/REF(OPEN,2)<0.95 AND REF(OPEN,1) =REF(CLOSE,1) AND
CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2);
黃昏十字星:=REF(CLOSE,2)/REF(OPEN,2)>1.05 AND REF(OPEN,1)>REF(CLOSE,2) AND REF(OPEN,1)
=REF(CLOSE,1) AND
CLOSE/OPEN<0.95 AND CLOSE 射擊之星:=MIN(OPEN,CLOSE)=LOW AND HIGH-LOW>3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE>MA(CLOSE,5);
倒轉(zhuǎn)錘頭:=MIN(OPEN,CLOSE)=LOW AND HIGH-LOW>3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE錘頭:=HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW>3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE 吊頸:=HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW>3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5);
穿頭破腳:=(REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.96 AND CLOSE OPEN>REF(CLOSE,1))
OR (REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.04 AND CLOSE>REF(OPEN,1) AND OPEN (CLOSE,1));
烏云蓋頂:=REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.97 AND OPEN>REF(CLOSE,1) AND
CLOSE 曙光初現(xiàn):=REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.03 AND OPEN CLOSE>REF(CLOSE,1);
身懷六甲:=ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1)>0.04 AND ABS(CLOSE-OPEN)/CLOSE<0.005
AND
MAX(CLOSE,OPEN)MIN(REF(CLOSE,1),REF
(OPEN,1));
十字胎:=ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1)>0.04 AND CLOSE=OPEN AND
CLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE > MIN(REF(CLOSE,1),REF(OPEN,1));
平頂:=ABS(HIGH-REF(HIGH,1))/HIGH<0.001;
平底:=(ABS(LOW-REF(LOW,1))/LOW<0.001 AND ABS(REF(LOW,1)-REF(LOW,2))/REF(LOW,1)<=0.001);
大陽燭:=CLOSE/OPEN>1.05 AND HIGH/LOW三個白武士:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE>OPEN
AND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1);
雙飛烏鴉:=REF(CLOSE,1) 孕育線:=REF(CLOSE,2)>REF(OPEN,2) AND (REF(CLOSE,2)-REF(OPEN,2))/REF(OPEN,2)>=2/100 AND
REF(OPEN,1)>=REF(CLOSE,1) AND
(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=2/100 AND REF(OPEN,1)<=REF(CLOSE,2) AND REF
(CLOSE,1)>=REF(OPEN,2) AND C>=OPEN AND
(CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) AND OPEN<=REF(CLOSE,1) AND (MAX(CLOSE,REF
(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2))<=1/100;
多方炮:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)OPEN;
出水芙蓉:=(OPENMAX(EMA(C,20),MAX
(EMA(C,40),EMA(C,60))))
AND (V/MA(V,30)>1.2 AND C/REF(C,1)>1.049);
上升三部曲:=REF(CLOSE,4)/REF(OPEN,4)>1.03 AND REF(CLOSE,3) REF(LOW,4) >REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND
REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 AND CLOSE>REF(CLOSE,4);
下跌三部曲:= REF(CLOSE,4)/REF(OPEN,4)<0.97 AND REF(CLOSE,3)>REF(OPEN,3) AND REF(CLOSE,2)
>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND REF(LOW,4) REF(LOW,4)REF(HIGH,3) AND REF
(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN<0.97 AND
CLOSE 跳空缺口:=HIGHREF(HIGH,1);
三只烏鴉:=REF(CLOSE,2) (CLOSE,1) 光腳陰線:=LOW=CLOSE AND HIGH<>LOW;
光頭陽線:=HIGH=CLOSE AND HIGH<>LOW;
分離:=OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1)-REF(OPEN,1))<0;
長下影:=(MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667;
長上影:=(HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667;
十字星:=CLOSE=OPEN AND HIGH<>LOW;
大陰燭:=OPEN/CLOSE > 1.05 AND HIGH/LOW < OPEN/CLOSE+0.018;
好友反攻:=(REF(CLOSE,1)OPEN AND ABS(CLOSE-REF
(CLOSE,1))/CLOSE<0.002)
OR (REF(CLOSE,1)>REF(OPEN,1) AND CLOSE傾盆大雨:=REF(C,1)/REF(O,1)>=1.03 AND OREF(O,1) AND C 解盤:=’【K線形態(tài)解盤】’+
IFs(傾盆大雨,’★傾盆大雨;’,”)+
IFs(大陰燭,’★大陰燭;’,”)+
IFs(好友反攻,’★好友反攻;’,”)+
IFs(跳空缺口,’★跳空缺口;’,”)+
IFs(光腳陰線,’★光腳陰線;’,”)+
IFs(光頭陽線,’★光頭陽線;’,”)+
IFs(三只烏鴉,’★三只烏鴉;’,”)+
IFs(分離,’★分離;’,”)+
IFs(長下影,’★長下影;’,”)+
IFs(長上影,’★長上影;’,”)+
IFs(下跌三部曲,’★下跌三部曲;’,”)+
IFs(上升三部曲,’★上升三部曲;’,”)+
IFs(早晨之星,’★早晨之星;’,”)+
IFs(黃昏之星,’★黃昏之星;’,”)+
IFs(十字星,’★十字星;’,”)+
IFs(長十字,’★長十字;’,”)+
IFs(垂死十字,’★垂死十字;’,”)+
IFs(早晨十字星,’★早晨十字星;’,”)+
IFs(黃昏十字星,’★黃昏十字星;’,”)+
IFs(射擊之星,’★射擊之星;’,”)+
IFs(倒轉(zhuǎn)錘頭,’★倒轉(zhuǎn)錘頭;’,”)+
IFs(錘頭,’★錘頭;’,”)+
IFs(吊頸,’★吊頸;’,”)+
IFs(平頂,’★平頂;’,”)+
IFs(穿頭破腳,’★穿頭破腳;’,”)+
IFs(烏云蓋頂,’★烏云蓋頂;’,”)+
IFs(曙光初現(xiàn),’★曙光初現(xiàn);’,”)+
IFs(身懷六甲,’★身懷六甲;’,”)+
IFs(十字胎,’★十字胎;’,”)+
IFs(平底,’★平底;’,”)+
IFs(大陽燭,’★大陽燭;’,”)+
IFs(三個白武士,’★三個白武士;’,”)+
IFs(雙飛烏鴉,’★雙飛烏鴉;’,”)+
IFs(孕育線,’★孕育線;’,”)+
IFs(多方炮,’★多方炮;’,”)+
IFs(出水芙蓉,’★出水芙蓉;’,”);
DRAWTEXTABS(6,30,解盤),LINETHICK1,COLORff00FF;
DRAWFLAGTEXT(傾盆大雨,c,’★傾盆大雨,見頂信號’),COLORFF00FF;
DRAWFLAGTEXT(大陰燭,c,’★大陰燭,后市向淡,發(fā)生逆轉(zhuǎn)’),COLORFF00FF;
DRAWFLAGTEXT(好友反攻,c,’★好友反攻,底部反轉(zhuǎn)’),COLORFF00FF;
DRAWFLAGTEXT(跳空缺口,c,’★跳空缺口,注意向上還是向下跳空’),COLORFF00FF;
DRAWFLAGTEXT(光腳陰線,c,’★光腳陰線,下跌信號’),COLORFF00FF;
DRAWFLAGTEXT(光頭陽線,c,’★光頭陽線,后市看漲’),COLORFF00FF;
DRAWFLAGTEXT(三只烏鴉,c,’★三只烏鴉,可能見頂回落’),COLORFF00FF;
DRAWFLAGTEXT(分離,c,’★分離,注意看漲分離和看跌分離’),COLORFF00FF;
DRAWFLAGTEXT(長下影,c,’★長下影,持續(xù)下跌后出現(xiàn),有可能止跌回升;在升勢末期出現(xiàn),須多加留意’),COLORFF00FF;
DRAWTEXTABS(5,5,’概念股網(wǎng) www.chiang1015.com’),linethick1,COLOR00EEff;
DRAWFLAGTEXT(長上影,c,’★長上影,表明行情上檔壓力沉重,升勢受阻’),COLORFF00FF;
DRAWFLAGTEXT(下跌三部曲,c,’★下跌三部曲,下跌信號’),COLORFF00FF;
DRAWFLAGTEXT(上升三部曲,c,’★上升三部曲,上漲信號’),COLORFF00FF;
DRAWFLAGTEXT(早晨之星,c,’★早晨之星,見底回升’),COLORFF00FF;
DRAWFLAGTEXT(黃昏之星,c,’★黃昏之星,見頂回落’),COLORFF00FF;
DRAWFLAGTEXT(十字星,c,’★十字星,有轉(zhuǎn)向意味,注意股價位置在頂部還是底部’),COLORFF00FF;
DRAWFLAGTEXT(長十字,c,’★長十字,注意在頂部還是底部’),COLORFF00FF;
DRAWFLAGTEXT(垂死十字,c,’★垂死十字,下跌信號’),COLORFF00FF;
DRAWFLAGTEXT(早晨十字星,c,’★早晨十字星,上漲信號,見底回升’),COLORFF00FF;
DRAWFLAGTEXT(黃昏十字星,c,’★黃昏十字星,下跌信號,見頂回落’),COLORFF00FF;
DRAWFLAGTEXT(射擊之星,c,’★射擊之星,可能見頂回落,可靠性低’),COLORFF00FF;
DRAWFLAGTEXT(倒轉(zhuǎn)錘頭,c,’★倒轉(zhuǎn)錘頭,可能見底回升’),COLORFF00FF;
DRAWFLAGTEXT(錘頭,c,’★錘頭,可能見底回升,如有量配合,信號強烈’),COLORFF00FF;
DRAWFLAGTEXT(吊頸,c,’★吊頸,上升行情中見頂回落,頂部出現(xiàn),見頂信號’),COLORFF00FF;
DRAWFLAGTEXT(平頂,c,’★平頂,溫和的反轉(zhuǎn)’),COLORFF00FF;
DRAWFLAGTEXT(穿頭破腳,c,’★穿頭破腳,頂部出現(xiàn),見頂回落信號’),COLORFF00FF;
DRAWFLAGTEXT(烏云蓋頂,c,’★烏云蓋頂,見頂回落信號’),COLORFF00FF;
DRAWFLAGTEXT(曙光初現(xiàn),c,’★曙光初現(xiàn),后市見底回升’),COLORFF00FF;
DRAWFLAGTEXT(身懷六甲,c,’★身懷六甲,出現(xiàn)在底部,是見底回升信號;出現(xiàn)在頂部,是見頂回落信意’),COLORFF00FF;
DRAWFLAGTEXT(十字胎,c,’★十字胎’),COLORFF00FF;
DRAWFLAGTEXT(平底,c,’★平底,溫和的反轉(zhuǎn)’),COLORFF00FF;
DRAWFLAGTEXT(大陽燭,c,’★大陽燭,看漲’),COLORFF00FF;
DRAWFLAGTEXT(三個白武士,c,’★三個白武士,每日收盤價上移,表示可能見底回升’),COLORFF00FF;
DRAWFLAGTEXT(雙飛烏鴉,c,’★雙飛烏鴉,行情將見頂回落’),COLORFF00FF;
DRAWFLAGTEXT(孕育線,c,’★孕育線,注意股價位置’),COLORFF00FF;
DRAWFLAGTEXT(多方炮,c,’★多方炮,在底部出現(xiàn)有上漲意味,在中間出現(xiàn)有可能是上漲中繼,頂部出現(xiàn)是復(fù) 合見頂信號’),COLORFF00FF;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://www.chiang1015.com/ 上發(fā)表,為其獨立觀點。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點,亦不對其真實性負(fù)責(zé),投資決策請建立在獨立思考之上。