- 相關(guān)推薦
很棒的操盤主圖
1.K線主圖:這個(gè)主圖能添加6條均線,并在左上角顯示總股本、市盈率、流通A股、每股收益、主營(yíng)增長(zhǎng)、獲利盤、每股收益、資產(chǎn)收益、所屬板塊信息,并能自動(dòng)提示跳空缺口及缺口價(jià)格。隨光標(biāo)移動(dòng)會(huì)有浮標(biāo)提示股價(jià)及需要關(guān)注的信息。當(dāng)股價(jià)運(yùn)行在強(qiáng)勢(shì)區(qū)間時(shí),背景會(huì)呈現(xiàn)紫紅色。
{K線主圖} (N1,N2,N3,N4,N5,N6需自定義你想要的天數(shù))
DRAWGBK((MA(C,5)>EMA(C,25)) AND (MA(C,10)>EMA(C,25)) AND (C>EMA(C,25)),STRIP(RGB(200,100,150),RGB(5,2,5),0));
MA1:MA(C,N1),COLORWHITE;
MA2:MA(C,N2),COLORYELLOW;
MA3:EMA(C,N3),COLORMAGENTA;
MA4:EMA(C,N4),COLORGREEN;
MA5:EMA(C,N5),COLORCYAN;
MA6:EMA(C,N6),COLORRED;
a1:=BIGORDER(1) - BIGORDER(2);
a2:=(BIGORDER(1,3)) - (BIGORDER(2,3));
a3:=((DYNAINFO(104) - DYNAINFO(105)) / VOL) * 100;
a4:=WINNER(CLOSE) * 100;
a5:=DYNAINFO(102) - DYNAINFO(103);
a6:=DYNAINFO(101);
a7:=SUM((((a1 * VOL) / CAPITAL) * 100),5);
a8:=FINANCE2(35);
a9:=FINANCE2(37);
a10:=FINANCE2(3);
a11:=DYNAINFO(39);
a12:=FINANCE2(11);
a13:=FINANCE2(10);
a14:=PFFIN(1609,0);
a15:=FINANCE2(5);
DRAWFLAGTEXT((CLOSE > 0),CLOSE,'…… '+STKNAME+' ('+STKLABEL+')'+' …… 價(jià):'+NUMTOSTRN(CLOSE,3)),colorYellow;
DRAWFLAGTEXT((a4 <= 15),CLOSE,'獲 利 盤:'+NUMTOSTRN(a4,2)+'%'+' 關(guān)注下方支撐'),colorRed;
DRAWFLAGTEXT(((a4 > 15) AND (a4 < 50)),CLOSE,'獲 利 盤:'+NUMTOSTRN(a4,2)+'%'+' 關(guān)注上方籌碼');
DRAWFLAGTEXT((a4 >= 50),CLOSE,'獲 利 盤:'+NUMTOSTRN(a4,2)+'%'+' 關(guān)注能否創(chuàng)新高'),colorYellow;
DRAWTEXTABS(20,62,'主營(yíng)范圍:'+F10TEXT((F10FIND('主營(yíng)范圍',1)),10)),colorYellow;
DRAWTEXTABS(20,49,'所屬板塊:'+BKNAME),color00A1FF;
DRAWTEXTABS(240,10,'凈利增長(zhǎng):'+NUMTOSTRN(a13,0)+'%'),color00a1ff;
DRAWTEXTABS(140,10,'市 盈 率:'+NUMTOSTRN(a11,2)),color00a1ff;
DRAWTEXTABS(20,10,'總 股 本:'+NUMTOSTRN((a8 / 10000),2)+'億股'),color00a1ff;
DRAWTEXTABS(240,23,'主營(yíng)增長(zhǎng):'+NUMTOSTRN(a12,0)+'%'),color00a1ff;
DRAWTEXTABS(140,23,'每股收益:'+NUMTOSTRN(a10,3)),color00a1ff;
DRAWTEXTABS(20,23,'流通 A股:'+NUMTOSTRN((a9 / 10000),2)+'億股'),color00a1ff;
DRAWTEXTABS(240,36,'資產(chǎn)收益:'+NUMTOSTRN(a15,0)+'%'),color00a1ff;
DRAWTEXTABS(140,36,'每股凈資:'+NUMTOSTRN(FINANCE2(4),2)),color00a1ff;
DRAWTEXTABS(20,36,'獲 利 盤:'+NUMTOSTRN(a4,2)+'%'),color00a1ff;
{向下跳空缺口}
I1:=0;
flag1:=0;
while I1<BARSLAST(DISPSTATUS=1)-BARSLAST(DISPSTATUS=2)
DO
IF REF(H,I1)<REF(L,I1+1) AND REF(L,I1+1)>HHV(H,I1+1)
THEN BEGIN FLAG1:=1;
S1:=I1;
I1:=BARSLAST(DISPSTATUS=1);
END
ELSE I1:=I1+1;
STICKLINE(FLAG1,REF(L,S1+1),HHV(H,S1+1),(s1+1)*20,0),Colorgray,ALIGN1,LAYER7;
DRAWTEXT(flag1,REF(L,s1+1),NUMTOSTRN(ref(h,s1+1),2)+'-'+NUMTOSTRN(hhV(h,S1+1),2)),ALIGN2,COLOR00ffff;
{向上跳空缺口}
I:=0;
flag:=0;
while I<BARSLAST(DISPSTATUS=1)-BARSLAST(DISPSTATUS=2)
DO
IF REF(L,I)>REF(H,I+1) AND REF(H,I+1)<LLV(LOW,I+1)
THEN BEGIN FLAG:=1;
S:=I;
I:=BARSLAST(DISPSTATUS=1);
END
ELSE I:=I+1;
STICKLINE(FLAG,REF(h,S+1),LLV(LOW,S+1),20*(s+1),500),Colorgray,ALIGN1,LAYER7;
DRAWTEXT(FLAG,REF(H,s+1),NUMTOSTRN(ref(h,s+1),2)+'-'+NUMTOSTRN(LLV(LOW,S+1),2)),ALIGN2,COLOR00ffff;
2.虛擬成交量:能在一天的開(kāi)始虛擬出全天成交量
{虛擬成交}
sj:=0;
if CURRENTDATE=date then {BARSTATUS=2}
sj:=if(CURRENTTIME>= 93000 and CURRENTTIME<=113000,(TIMETOT0(CURRENTTIME)-34200)/60,
if(CURRENTTIME> 113000 and CURRENTTIME< 130000,120,
if(CURRENTTIME>=130000 and CURRENTTIME<=150000,(TIMETOT0(CURRENTTIME)-46800)/60+120,
if(CURRENTTIME> 150000,240,1))));
VOL,VOLSTICK;
if DATATYPE=8 then
STICKLINE(sj>0,vol,vol*240/sj,7,1),color00c0c0;
MA5:MA(VOL,5),colorwhite;
MA10:MA(VOL,10),coloryellow;
MA20:MA(VOL,20),colormagenta;
3,分時(shí)主圖:我一直不知道怎么在分時(shí)界面自動(dòng)疊加對(duì)應(yīng)大盤指數(shù),在網(wǎng)上查了好多別人的方法,但是發(fā)現(xiàn)那些方法雖然能把指數(shù)線畫上去,但是相對(duì)位置卻不正確,比如大盤明明低開(kāi)低走,疊加的大盤線卻在漲幅超過(guò)2%的地方,雖然走勢(shì)形態(tài)正確,但是相對(duì)個(gè)股走勢(shì)線的位置不對(duì)容易產(chǎn)生誤判,所以最后把上證和深證分時(shí)圖分開(kāi)做了兩個(gè)不同模版,精確還原指數(shù)線并疊加在正確位置。
在使用主圖疊加指標(biāo)前,需要先建立一個(gè)名為 MAB 的指標(biāo),不要改名,保存即可,因?yàn)榉謺r(shí)主圖要引用這個(gè)指標(biāo)中的數(shù)據(jù)。
公式建立好后,在分時(shí)界面點(diǎn)“存為模版”,分別建立“上證”,“深證”兩個(gè)模版,看哪個(gè)市場(chǎng)的股票就點(diǎn)一下相對(duì)模版,這樣就能正確精準(zhǔn)的疊加對(duì)應(yīng)大盤線,只要在剛創(chuàng)立好時(shí)點(diǎn)一次就行,以后你看該市場(chǎng)的股票時(shí)便會(huì)自動(dòng)調(diào)用對(duì)應(yīng)模版。
該模版在分時(shí)左上角顯示MA5,MA10,EMA25均線價(jià)格和所屬行業(yè),有上角顯示昨高和昨低的價(jià)格,下面分時(shí)成交量處顯示所屬板塊、流通盤、同比增長(zhǎng)、每股收益、每股市盈信息。
使用非付費(fèi)行情的同學(xué),因?yàn)槊赓M(fèi)軟件不是全推行情,是請(qǐng)求數(shù)據(jù),所以你可能會(huì)發(fā)現(xiàn)分時(shí)大盤線會(huì)是一條直線,這是你只要按一下鍵盤上的:“F3”和“F4”鍵,讀出上證指數(shù)和深證成指的指數(shù)走勢(shì),再切換回個(gè)股分時(shí),指數(shù)線就正常了。
{上證分時(shí)}
a1:=DYNAINFO(3);
a2:='sh000001';
昨收:=hhv(STKINDI(a2,'MAB.昨收#day'),0);
開(kāi)盤:=HHv(STKINDI(a2,'MAB.開(kāi)盤#day'),0);
收盤:=if(time>093000,STKINDI(a2,'MAB.收盤#min1'),開(kāi)盤);
疊加指數(shù):=(收盤/昨收-1)*a1+a1;
POLYLINE(C,疊加指數(shù)),colorCYAN,linethick1;
POLYLINE(C,C),LINETHICK2,COLORblack;
最新:C,PRECIS2,COLORWHITE,LAYER0;
所屬板塊:=BKNAME;
每股市盈率:=DYNAINFO(39);
每股收益:=FINANCE2(3);
流通盤大小:=FINANCE2(37)/1000000*100;
同比增長(zhǎng):=FINANCE2(10);
DRAWTEXTREL(0,765,'同比增長(zhǎng):'+NUMTOSTRN(同比增長(zhǎng),2)+'%'),LINETHICK1,ColorCYAN;
DRAWTEXTREL(0,695,'流 通 盤:'+NUMTOSTRN(流通盤大小,2)+'億'),LINETHICK1,ColorCYAN;
DRAWTEXTREL(180,695,'每股收益:'+NUMTOSTRN(每股收益,2)+'元'),ColorCYAN;
DRAWTEXTREL(180,765,'每股市盈:'+NUMTOSTRN(每股市盈率,1)+'倍'),ColorCYAN;
DRAWTEXTREL(0,625,'所屬板塊:'+所屬板塊),COLORCYAN;
MA5:="MAB.MA5#day";
MA10:="MAB.MA10#day";
MA25:="MAB.MA25#day";
MA30:="MAB.MA30#day";
MA60:="MAB.MA60#day";
MA100:="MAB.MA100#day";
MA200:="MAB.MA200#day";
MA300:="MAB.MA300#day";
MA400:="MAB.MA400#day";
MA5P:=(MA5-DYNAINFO(3))/DYNAINFO(3)*100;
MA10P:=(MA10-DYNAINFO(3))/DYNAINFO(3)*100;
MA25P:=(MA25-DYNAINFO(3))/DYNAINFO(3)*100;
MA30P:=(MA30-DYNAINFO(3))/DYNAINFO(3)*100;
MA60P:=(MA60-DYNAINFO(3))/DYNAINFO(3)*100;
DRAWTEXTREL( 0,10,' 5日線: '+NUMTOSTRN(MA5,2)+'元 '+NUMTOSTRN(MA5P,1)+'%'),colorwhite;
DRAWTEXTREL( 0,60 ,'10日線: '+NUMTOSTRN(MA10,2)+'元 '+NUMTOSTRN(MA10P,1)+'%'),COLORyellow;
DRAWTEXTREL( 0,110 ,'25日線: '+NUMTOSTRN(MA25,2)+'元 '+NUMTOSTRN(MA25P,1)+'%'),ColorMAGENTA;
DRAWTEXTREL( 690,10 ,'昨高點(diǎn): '+NUMTOSTRN(MA30,2)+'元 '+NUMTOSTRN(MA30P,1)+'%'),COLORred;
DRAWTEXTREL( 690,60 ,'昨低點(diǎn): '+NUMTOSTRN(MA60,2)+'元 '+NUMTOSTRN(MA60P,1)+'%'),Colorgreen;
板塊:=IFS(INBLOCK('工程建筑'),'工程建筑',
IFS(INBLOCK('電力'),'電力',
IFS(INBLOCK('計(jì)算機(jī)'),'計(jì)算機(jī)',
IFS(INBLOCK('電子信息'),'電子信息',
IFS(INBLOCK('房地產(chǎn)'),'房地產(chǎn)',
IFS(INBLOCK('紡織服裝'),'紡織服裝',
IFS(INBLOCK('鋼鐵'),'鋼鐵',
IFS(INBLOCK('供水供氣'),'供水供氣',
IFS(INBLOCK('化工化纖'),'化工化纖',
IFS(INBLOCK('電器'),'電器',
IFS(INBLOCK('交通設(shè)施'),'交通設(shè)施',
IFS(INBLOCK('銀行類'),'銀行類',
IFS(INBLOCK('旅游酒店'),'旅游酒店',
IFS(INBLOCK('煤炭石油'),'煤炭石油',
IFS(INBLOCK('釀酒食品'),'釀酒食品',
IFS(INBLOCK('農(nóng)林牧漁'),'農(nóng)林牧漁',
IFS(INBLOCK('商業(yè)連鎖'),'商業(yè)連鎖',
IFS(INBLOCK('建材'),'建材',
IFS(INBLOCK('其他行業(yè)'),'其他行業(yè)',
IFS(INBLOCK('交通工具'),'交通工具',
IFS(INBLOCK('機(jī)械'),'機(jī)械',
IFS(INBLOCK('醫(yī)藥'),'醫(yī)藥',
IFS(INBLOCK('外貿(mào)'),'外貿(mào)',
IFS(INBLOCK('教育傳媒'),'教育傳媒',
IFS(INBLOCK('儀電儀表'),'儀電儀表',
IFS(INBLOCK('有色金屬'),'有色金屬',
IFS(INBLOCK('造紙印刷'),'造紙印刷',
IFS(INBLOCK('券商'),'券商',
IFS(INBLOCK('電力設(shè)備'),'電力設(shè)備',
IFS(INBLOCK('通信'),'通信',
IFS(INBLOCK('運(yùn)輸物流'),'運(yùn)輸物流',
IFS(INBLOCK('海峽西岸'),'海峽西岸',
IFS(INBLOCK('保險(xiǎn)'),'保險(xiǎn)','')
))))))))))))))))))))))))))))))));
DRAWTEXTABS(0,70,'行業(yè)板塊: '+板塊),color00a1ff;
上證指數(shù):INDEXC,PRECIS0,ColorCYAN,LINETHICK0;
{深證分時(shí)}
a1:=DYNAINFO(3);
a2:='SZ399001';
昨收:=hhv(STKINDI(a2,'MAB.昨收#day'),0);
開(kāi)盤:=HHv(STKINDI(a2,'MAB.開(kāi)盤#day'),0);
收盤:=if(time>093000,STKINDI(a2,'MAB.收盤#min1'),開(kāi)盤);
疊加指數(shù):=(收盤/昨收-1)*a1+a1;
POLYLINE(C,疊加指數(shù)),colorcyan,linethick1;
POLYLINE(C,C),LINETHICK2,COLORblack;
最新:C,PRECIS2,COLORWHITE,LAYER0;
所屬板塊:=BKNAME;
每股市盈率:=DYNAINFO(39);
每股收益:=FINANCE2(3);
流通盤大小:=FINANCE2(37)/1000000*100;
同比增長(zhǎng):=FINANCE2(10);
DRAWTEXTREL(0,765,'同比增長(zhǎng):'+NUMTOSTRN(同比增長(zhǎng),2)+'%'),LINETHICK1,colorcyan;
DRAWTEXTREL(0,695,'流 通 盤:'+NUMTOSTRN(流通盤大小,2)+'億'),LINETHICK1,colorcyan;
DRAWTEXTREL(180,695,'每股收益:'+NUMTOSTRN(每股收益,2)+'元'),colorcyan;
DRAWTEXTREL(180,765,'每股市盈:'+NUMTOSTRN(每股市盈率,1)+'倍'),colorcyan;
DRAWTEXTREL(0,625,'所屬板塊:'+所屬板塊),COLORCYAN;
MA5:="MAB.MA5#day";
MA10:="MAB.MA10#day";
MA25:="MAB.MA25#day";
MA30:="MAB.MA30#day";
MA60:="MAB.MA60#day";
MA100:="MAB.MA100#day";
MA200:="MAB.MA200#day";
MA300:="MAB.MA300#day";
MA400:="MAB.MA400#day";
MA5P:=(MA5-DYNAINFO(3))/DYNAINFO(3)*100;
MA10P:=(MA10-DYNAINFO(3))/DYNAINFO(3)*100;
MA25P:=(MA25-DYNAINFO(3))/DYNAINFO(3)*100;
MA30P:=(MA30-DYNAINFO(3))/DYNAINFO(3)*100;
MA60P:=(MA60-DYNAINFO(3))/DYNAINFO(3)*100;
DRAWTEXTREL( 0,10,' 5日線: '+NUMTOSTRN(MA5,2)+'元 '+NUMTOSTRN(MA5P,1)+'%'),colorwhite;
DRAWTEXTREL( 0,60 ,'10日線: '+NUMTOSTRN(MA10,2)+'元 '+NUMTOSTRN(MA10P,1)+'%'),COLORyellow;
DRAWTEXTREL( 0,110 ,'25日線: '+NUMTOSTRN(MA25,2)+'元 '+NUMTOSTRN(MA25P,1)+'%'),ColorMAGENTA;
DRAWTEXTREL( 690,10 ,'昨高點(diǎn): '+NUMTOSTRN(MA30,2)+'元 '+NUMTOSTRN(MA30P,1)+'%'),COLORred;
DRAWTEXTREL( 690,60 ,'昨低點(diǎn): '+NUMTOSTRN(MA60,2)+'元 '+NUMTOSTRN(MA60P,1)+'%'),Colorgreen;
板塊:=IFS(INBLOCK('工程建筑'),'工程建筑',
IFS(INBLOCK('電力'),'電力',
IFS(INBLOCK('計(jì)算機(jī)'),'計(jì)算機(jī)',
IFS(INBLOCK('電子信息'),'電子信息',
IFS(INBLOCK('房地產(chǎn)'),'房地產(chǎn)',
IFS(INBLOCK('紡織服裝'),'紡織服裝',
IFS(INBLOCK('鋼鐵'),'鋼鐵',
IFS(INBLOCK('供水供氣'),'供水供氣',
IFS(INBLOCK('化工化纖'),'化工化纖',
IFS(INBLOCK('電器'),'電器',
IFS(INBLOCK('交通設(shè)施'),'交通設(shè)施',
IFS(INBLOCK('銀行類'),'銀行類',
IFS(INBLOCK('旅游酒店'),'旅游酒店',
IFS(INBLOCK('煤炭石油'),'煤炭石油',
IFS(INBLOCK('釀酒食品'),'釀酒食品',
IFS(INBLOCK('農(nóng)林牧漁'),'農(nóng)林牧漁',
IFS(INBLOCK('商業(yè)連鎖'),'商業(yè)連鎖',
IFS(INBLOCK('建材'),'建材',
IFS(INBLOCK('其他行業(yè)'),'其他行業(yè)',
IFS(INBLOCK('交通工具'),'交通工具',
IFS(INBLOCK('機(jī)械'),'機(jī)械',
IFS(INBLOCK('醫(yī)藥'),'醫(yī)藥',
IFS(INBLOCK('外貿(mào)'),'外貿(mào)',
IFS(INBLOCK('教育傳媒'),'教育傳媒',
IFS(INBLOCK('儀電儀表'),'儀電儀表',
IFS(INBLOCK('有色金屬'),'有色金屬',
IFS(INBLOCK('造紙印刷'),'造紙印刷',
IFS(INBLOCK('券商'),'券商',
IFS(INBLOCK('電力設(shè)備'),'電力設(shè)備',
IFS(INBLOCK('通信'),'通信',
IFS(INBLOCK('運(yùn)輸物流'),'運(yùn)輸物流',
IFS(INBLOCK('海峽西岸'),'海峽西岸',
IFS(INBLOCK('保險(xiǎn)'),'保險(xiǎn)','')
))))))))))))))))))))))))))))))));
DRAWTEXTABS(0,70,'行業(yè)板塊: '+板塊),color00a1ff;
深證成指:INDEXC,PRECIS0,colorcyan,LINETHICK0;
{MAB}
MA5:MA(CLOSE,5),PRECIS2;
MA10:MA(CLOSE,10),PRECIS2;
MA25:EMA(CLOSE,25),PRECIS2;
MA30:ref(h,1),PRECIS2;
MA60:ref(l,1),PRECIS2;
VAR0A:=EMA(EMA(EMA(CLOSE,2),2),2);
TLAMSENR:=MAX(MAX((HIGH-LOW),ABS((REF(CLOSE,1)-HIGH))),ABS((REF(CLOSE,1)-LOW)));
ATR:=MA(TLAMSENR,13);
VAR1A:=(REF(CLOSE,1)-REF(ATR,1));
MA400:(HHV(VAR1A,12)),PRECIS2;
VAR1:=EMA(AMOUNT/VOL/100,3);
MA100:EMA(VAR1,88),PRECIS2;
MA200:EMA(VAR1,88)*0.85,PRECIS2;
MA300:MA200*0.87,PRECIS2;
收盤:c;
開(kāi)盤:o;
昨收:DYNAINFO(3);
4.虛擬成交量,這是在理想中找的加密指標(biāo),直接引用即可。
{虛擬成交量}
1756929_090e_太極量(DZH).fnc (3.76 KB) 1756929_090e_太極量(DZH).fnc (3.76 KB)
下載次數(shù): 34
2011-9-3 17:20
5.分時(shí)副圖中那個(gè)很好看的漸變色MACD。
{RFMACD}
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
STICKLINE((MACD > 0),0,MACD,1,0),COLOR0000CC;
STICKLINE((MACD > 0),0,MACD*0.9,1,0),COLOR0000EE;
STICKLINE((MACD > 0),0,MACD*0.8,1,0),COLOR0011FF;
STICKLINE((MACD > 0),0,MACD*0.7,1,0),COLOR0033FF;
STICKLINE((MACD > 0),0,MACD*0.6,1,0),COLOR0055FF;
STICKLINE((MACD > 0),0,MACD*0.5,1,0),COLOR0077FF;
STICKLINE((MACD > 0),0,MACD*0.4,1,0),COLOR0099FF;
STICKLINE((MACD > 0),0,MACD*0.3,1,0),COLOR00BBFF;
STICKLINE((MACD > 0),0,MACD*0.2,1,0),COLOR00DDFF;
STICKLINE((MACD > 0),0,MACD*0.1,1,0),COLOR00FFFF;
STICKLINE((MACD < 0),0,MACD,1,0),COLORCC0033;
STICKLINE((MACD < 0),0,MACD*0.9,1,0),COLOREE0033;
STICKLINE((MACD < 0),0,MACD*0.8,1,0),COLORFF1133;
STICKLINE((MACD < 0),0,MACD*0.7,1,0),COLORFF3333;
STICKLINE((MACD < 0),0,MACD*0.6,1,0),COLORFF5533;
STICKLINE((MACD < 0),0,MACD*0.5,1,0),COLORFF7733;
STICKLINE((MACD < 0),0,MACD*0.4,1,0),COLORFF9933;
STICKLINE((MACD < 0),0,MACD*0.3,1,0),COLORFFBB33;
STICKLINE((MACD < 0),0,MACD*0.2,1,0),COLORFFDD33;
STICKLINE((MACD < 0),0,MACD*0.1,1,0),COLORFFFF33;
【很棒的操盤主圖】相關(guān)文章:
我很棒作文10-01
大耳朵圖圖作文12-12
主播的作文12-02
其實(shí)我很棒作文12-10
其實(shí)我很棒作文02-21
稱贊男人很棒的句子01-09
awesome (a.) (俚)很棒的05-04
《養(yǎng)生主》原文及翻譯11-15