一区二区三区日韩精品-日韩经典一区二区三区-五月激情综合丁香婷婷-欧美精品中文字幕专区

分享

換手率的啟發(fā)和實(shí)戰(zhàn)應(yīng)用 附公式源碼

 愚樵青山 2023-08-25 發(fā)布于山東

學(xué)習(xí)了不少老師們?cè)凇傲?nbsp; 換手率”的習(xí)作收益匪淺做一體現(xiàn)疊加“周 月 半月  分時(shí)用疊加日量”公式。
僅供朋友們參考,有心得體會(huì)請(qǐng)跟貼交流學(xué)習(xí)!!!!
//月 半月 周 日 疊加
input:月(0,0,1),半月(0,0,1),周(0,0,1),日(0,0,1);
TBS:=POW(10,ABS(LOG(MINDIFF)));
BY:=MONTH;YB:=BY-REF(BY,1)<>0 OR BARPOS=1;
w:=BARSLAST(YB),LINETHICK;
dg:=w=0 or ISLASTBAR;
wx:=0*C;
for P=datacount-1 downto lbound(dg) do
  if dg[P] then
    wx[P]:=0;
  else
    wx[P]:=wx[P+1]+1;
r:=BACKSET(ISLASTBAR,w+1)-ISLASTBAR;
wx:=refx(wx,1)+r,LINETHICK;
oo:=ref(o,w);
zq1:=BARSLAST(ref(wx,1)=0 or BARPOS=1)+1;//月天數(shù)
yt1:=if(zq1=1 and refx(zq1,2)=1,13,if(refx(zq1,1)=1 or zq1=1,7,14));
YEK:=ROUND(OO*TBS)/TBS;
YES:=ROUND(refx(c,wx)*TBS)/TBS;
f:=YES>YEK or (YES=YEK and YES>ref(YES,W));
j:=cross(w,wx);
AS:=月;
月量:=SUM(V,zq1),ColorFFff00,LINETHICK0;
月?lián)Q手率:=SUM(vol/CAPITAL*100,ZQ1),linethick0,PRECISion2,colorffff00;
STICKLINE(YEK<YES AND AS,0,月量*0.25,YT1,0),COLOReeaaEE;
STICKLINE(YEK>YES AND AS,0,月量*0.25,YT1,0),Color6AA932;
R:=DAY;
RBY:=IF(R<=15,R,R-15);
TY:=RBY;TB:=DATEDIFF(REF(DATE,1),DATE)<>TY-REF(TY,1) OR BARPOS=1;
TW:=BARSLAST(TB),LINETHICK;
Tdg:=TW=0 or ISLASTBAR;
Twx:=0*c;
for P=datacount-1 downto lbound(Tdg) do
  if Tdg[P] then
    Twx[P]:=0;
  else
    Twx[P]:=Twx[P+1]+1;
TTr:=BACKSET(ISLASTBAR,Tw+1)-ISLASTBAR;
Twx:=refx(Twx,1)+TTr,LINETHICK;
TQ:=BARSLAST(ref(Twx,1)=0 or BARPOS=1)+1;//N天數(shù)
TTo:=ref(o,Tw);
YYK:=ROUND(TTO*TBS)/TBS;
YYS:=ROUND(refx(c,Twx)*TBS)/TBS;
YT:=if(TQ=1 and refx(TQ,2)=1,13,if(refx(TQ,1)=1 or TQ=1,7,14));
YYL:=SUM(V,TQ),ColorFFff00,LINETHICK0;
ss:=半月;
STICKLINE(YYK<=YYS and ss,0,YYL*0.30,YT,0),Color613076;//Color5261EB  Color613076
STICKLINE(YYK>=YYS and ss,0,YYL*0.30,YT,0),ColorFA7D32;
BZ:=WEEKDAY;ZB:=DATEDIFF(REF(DATE,1),DATE)<>BZ-REF(BZ,1) OR BARPOS=1;
ZW:=BARSLAST(ZB),LINETHICK;
Zdg:=ZW=0 or ISLASTBAR;
Zwx:=0*c;
for P=datacount-1 downto lbound(Zdg) do
  if Zdg[P] then
    Zwx[P]:=0;
  else
    Zwx[P]:=Zwx[P+1]+1;
Zr:=BACKSET(ISLASTBAR,Zw+1)-ISLASTBAR;
Zwx:=refx(Zwx,1)+Zr,LINETHICK;
zq:=BARSLAST(ref(Zwx,1)=0 or BARPOS=1)+1; //星期天數(shù)
Zo:=ref(o,Zw);
ZZK:=ROUND(ZO*TBS)/TBS;
ZZS:=ROUND(refx(c,Zwx)*TBS)/TBS;
ZT:=if(zq=1 and refx(zq,2)=1,13,if(refx(zq,1)=1 or zq=1,7,14));
周量:=SUM(V,zq),ColorFFff00,LINETHICK0;
周換手率:=SUM(vol/CAPITAL*100,ZQ),ColorFFff00,LINETHICK0;
ss:=周;
STICKLINE(ZZK<ZZS and ss,0,周量*0.45,ZT,0),Color3547E8,LINEDOT;//Color3547E8//ColorB468FF
STICKLINE(ZZK>ZZS and ss,0,周量*0.45,ZT,0),ColorFDDD32,LINEDOT;
RRL:=DAY;
RRL:=RRL-REF(RRL,1)<>0 OR BARPOS=1;
Rw:=BARSLAST(RRL),LINETHICK;
Rdg:=Rw=0 or ISLASTBAR;
Rwx:=0*C;
for P=datacount-1 downto lbound(Rdg) do
  if Rdg[P] then
    Rwx[P]:=0;
  else
    Rwx[P]:=Rwx[P+1]+1;
Rr:=BACKSET(ISLASTBAR,Rw+1)-ISLASTBAR;
Rwx:=refx(Rwx,1)+Rr,LINETHICK;
Roo:=ref(o,Rw);
Rzq1:=BARSLAST(ref(Rwx,1)=0 or BARPOS=1)+1;//N天數(shù)
Ryt1:=if(Rzq1=1 and refx(Rzq1,2)=1,13,if(refx(Rzq1,1)=1 or Rzq1=1,7,14));
RRK:=ROUND(ROO*TBS)/TBS;
RRS:=ROUND(refx(c,Rwx)*TBS)/TBS;
AR:=日;
日量:SUM(V,Rzq1),ColorFFff00,LINETHICK0;
STICKLINE(RRK<=RRS AND AR,0,日量*0.5,RYT1,0),ColorD24A92,LINEDOT;//ColorD24A92  COLOReeaaEE
STICKLINE(RRK>=RRS AND AR,0,日量*0.5,RYT1,0),Color6AA932,LINEDOT;
//日量:V,ColorFFff00,LINETHICK0;
換手率:vol/CAPITAL*100,ColorFFff00,LINETHICK0;
半月量:=SUM(V,TQ),ColorFFff00,LINETHICK0;
半月?lián)Q手率:=SUM(vol/CAPITAL*100,TQ),ColorFFff00,LINETHICK0;
TT2:=ISLASTBAR=1;
DRAWTEXTEX(TT2,0,371,1,'【創(chuàng)于2010.06.14 草根】'+''),ColorFFFFFF;
DRAWTEXTEX(TT2,0,4,1,'【一周期: '+NUMTOSTR(ZQ[SYSPARAM(1)],0)+''+'天 】'+''),Color00FFFF;
DRAWTEXTEX(TT2,0,125,1,'【周量: '+NUMTOSTR(周量[SYSPARAM(1)],0)+''+'】'+' 周換手率【'+NUMTOSTR(周換手率[SYSPARAM(1)],2)+'%】'),Color00FFFF;
DRAWTEXTEX(TT2,0,4,16,'【半月周期: '+NUMTOSTR(TQ[SYSPARAM(1)],0)+''+'天 】'+''),Color00FFFF;
DRAWTEXTEX(TT2,0,125,16,'【半月量: '+NUMTOSTR(半月量[SYSPARAM(1)],0)+''+'】'+''+' 半月?lián)Q手率【'+NUMTOSTR(半月?lián)Q手率[SYSPARAM(1)],2)+'%】'),Color00FFFF;
DRAWTEXTEX(TT2,0,4,31,'【月周期: '+NUMTOSTR(zQ1[SYSPARAM(1)],0)+''+'天 】'+''),Color00FFFF;
DRAWTEXTEX(TT2,0,125,31,'【月量: '+NUMTOSTR(月量[SYSPARAM(1)],0)+''+'】'+''+' 月?lián)Q手率【'+NUMTOSTR(月?lián)Q手率[SYSPARAM(1)],2)+'%】'),Color00FFFF;
input:n(5,0,100),na(13,0,100),nb(135,0,500);
量:=VOL,VOLSTICK;
HSL:=VOL/CAPITAL*100;
地量0_1:STICKLINE(HSL<1,0,量,0.1,0 ),coloreeeeee;
STICKLINE(HSL<1,0,量,5,0 ),colordddddd;
STICKLINE(HSL<1,0,量,3,0 ),coloreeeeee;
STICKLINE(HSL<1,0,量,1,0 ),colorffffff;
低靡1_2:STICKLINE(HSL>=1 and HSL<2,0,量,0.1,0 ),coloreeee00;
STICKLINE(HSL>=1 and HSL<2,0,量,5,0 ),coloraaaa00;
STICKLINE(HSL>=1 and HSL<2,0,量,3,0 ),colorcccc00;
STICKLINE(HSL>=1 and HSL<2,0,量,1,0 ),coloreeee00;
溫和2_3:STICKLINE(HSL>=2 and HSL<3,0,量,0.1,0 ),Color0080BB;
STICKLINE(HSL>=2 and HSL<3,0,量,5,0 ),Color0040dd;
STICKLINE(HSL>=2 and HSL<3,0,量,3,0 ),Color0060ee;
STICKLINE(HSL>=2 and HSL<3,0,量,1,0 ),Color0080BB;
活躍3_5:STICKLINE(HSL>=3 and HSL<5,0,量,0.1,0 ),color00eeee;
STICKLINE(HSL>=3 and HSL<5,0,量,5,0 ),color00aaaa;
STICKLINE(HSL>=3 and HSL<5,0,量,3,0 ),color00cccc;
STICKLINE(HSL>=3 and HSL<5,0,量,1,0 ),color00eeee;
帶量5_8:STICKLINE(HSL>=5 and HSL<8,0,量,0.1,0 ),coloree00ee;
STICKLINE(HSL>=5 and HSL<8,0,量,5,0 ),coloraa00aa;
STICKLINE(HSL>=5 and HSL<8,0,量,3,0 ),colorcc00cc;
STICKLINE(HSL>=5 and HSL<8,0,量,1,0 ),coloree00ee;
放量8_15:STICKLINE(HSL>=8 and HSL<15,0,量,0.1,0 ),Color0000FF;
STICKLINE(HSL>=8 and HSL<15,0,量,5,0 ),Color0000aa;
sTICKLINE(HSL>=8 and HSL<15,0,量,3,0 ),Color0000cc;
sTICKLINE(HSL>=8 and HSL<15,0,量,1,0 ),Color0000FF;
巨量15_25:STICKLINE(HSL>=15 and HSL<25,0,量,0.01,0 ),coloree0000;
STICKLINE(HSL>=15 and HSL<25,0,量,5,0 ),coloraa0000;
STICKLINE(HSL>=15 and HSL<25,0,量,3,0 ),colorcc0000;
STICKLINE(HSL>=15 and HSL<25,0,量,1,0 ),coloree0000;
怪異25_F:STICKLINE(HSL>=25,0,量,0.1,0),color00ff00;
STICKLINE(HSL>=25,0,量,5,0),color00aa00;
STICKLINE(HSL>=25,0,量,3,0),color00cc00;
STICKLINE(HSL>=25,0,量,1,0),color00ee00;
MA3:MA(量,n),COLORFFffff,linethick1;
MAd:MA(量,na),COLOR00ffff,linethick1;
MA90:MA(量,nb),color00ff00;
DRAWTEXT(ISLASTBAR=1 AND MAd>REF(MAd,1),MAd,' '+NUMTOSTR(na,0)+'↑'),COLOR00ffff,align0;
DRAWTEXT(ISLASTBAR=1 AND MAd<REF(MAd,1),MAd,' '+NUMTOSTR(na,0)+'↑'),Color00ffff,align0;
DRAWTEXT(BARSTATUS=2 AND MA3>REF(MA3,1),MA3,'   '+NUMTOSTR(n,0)+'↑'),COLORFFffff,align1;
DRAWTEXT(BARSTATUS=2 AND MA3<REF(MA3,1),MA3,'   '+NUMTOSTR(n,0)+'↓'),ColorFFffff,align1;
DRAWTEXT(w>0 and j and as,0,'月'),Color0435FB,ALIGN1,PXUP127;
DRAWNUMBER(w>0 and j and as,0,BY,0),Color0435FB,ALIGN2,PXUP127;
EXPLAIN(CLOSE,'    〓【換手率解盤】〓'),colorFF;
EXPLAIN(CLOSE,'【創(chuàng)于2010.06.14 草根】'+''),ColorFFFFFF;
EXPLAINEX(1,'換手率=',((VOL / CAPITAL) * 100),2,1);
EXPLAINEX(1,'【獲利盤】比例=',(WINNER(CLOSE) * 100),2,0),color0033FF;
EXPLAINEX((1 = 1),'【套牢盤】比例=',(100 - (WINNER(CLOSE) * 100)),2,1),colorFF00;
Explain(1=1,'【換手率級(jí)別】:'),color00ffff;
Explain(換手率<1,'【絕對(duì)地量:小于1%】 '),colorffffff;
Explain(換手率>1 and 換手率<2,'日換手率在1%--2%,股價(jià)屬于成交低靡,屬于冷門股。日換手率成交小于3%的成交額稱為"成交無量'),colorffff00;
Explain(換手率>=2 and 換手率<3,'日換手率在2%--3%,股價(jià)屬于成交溫和,屬于備份股。'),Color0080FF;
Explain(換手率>=3 and 換手率<5,'日換手率在3%--5%,股價(jià)屬于成交活躍,表示有莊家在積極活動(dòng),屬于熱門股。把10日平均換手率大于3%或大于5%,而后又縮量至換手率小于3%高度控盤的個(gè)股作為選股條件。'),color00dddd;
Explain(換手率>=5 and 換手率<8,'日換手率在5%--8%, 大于7%,常常超過10%,屬于股價(jià)成交帶量,表明籌碼在急劇換手。發(fā)生在低位或是通過第一阻力區(qū),很可能是強(qiáng)莊積極進(jìn)貨。'),colorddaadd;
Explain(換手率>=8 and 換手率<15,'日換手率大于8%--15%,股價(jià)屬于成交放量。'),color0022ff;
Explain(換手率>=15 and 換手率<25,'日換手率大于15%--25%,股價(jià)屬于成交巨量,發(fā)生在高位或高位縮量橫盤之后,很可能是莊家出貨'),Coloree8800;
Explain(換手率>25,'日換手率大于25% 股價(jià)屬于成交怪異;周換手率大于25% 屬于成交活躍。'),color00ff00;
EXPLAINEX(1,'五日換手:',SUM(換手率,5),2,0),colorffaadd;
EXPLAINEX(1,'十日換手:',SUM(換手率,10),2,1),colorffaadd;
日J(rèn):="KDJ.J#day"(9,3,3),colorFFFFFF,LINEDOT;
日K:="KDJ.K#day"(9,3,3),color00FFFF,LINEDOT;
日D:="KDJ.D#day"(9,3,3),colorFF00FF,LINEDOT;
周K:="KDJ.K#week"(9,3,3),color00FFFF;
周D:="KDJ.D#week"(9,3,3),colorFF00FF;
周J:="KDJ.J#week"(9,3,3),colorFFFFFF;
月K:="KDJ.K#MONTH"(9,3,3),color00FFFF,linethick0;
月D:="KDJ.D#MONTH"(9,3,3),colorFF00FF,linethick0;
月J:="KDJ.J#MONTH"(9,3,3),colorFFFFFF,linethick0;
EXPLAINEX((日J(rèn) > 0),'日J(rèn)=',日J(rèn),2,0),{colorFF0000}COLOR00FF00;
EXPLAINEX((日K > 0),'日K=',日K,2,0),{colorFF0000}COLORCYAN;
EXPLAINEX((日D > 0),'日D=',日D,2,0),colorFFFF00;
EXPLAIN((日K <= 20),'日線KD指標(biāo)位置:低位'),COLORCYAN;
EXPLAIN(((日K > 20) AND (日K < 50)),'日線KD指標(biāo)位置:中低'),colorFF;
EXPLAIN(((日K > 50) AND (日K < 80)),'日線KD指標(biāo)位置:中高'),colorFF00;
EXPLAIN((日K >= 80),'日線KD指標(biāo)位置:高位'),colorFF00;
EXPLAINEX((周K > 0),'周K=',周K,2,0),colorFF;
EXPLAINEX((周D > 0),'周D=',周D,2,0),color208FFF;
EXPLAIN((周K <= 20),'周線KD指標(biāo)位置:低位'),colorFF;
EXPLAIN(((周K > 20) AND (周K < 50)),'周線KD指標(biāo)位置:中低'),colorFF;
EXPLAIN(((周K > 50) AND (周K < 80)),'周線KD指標(biāo)位置:中高'),colorFF00;
EXPLAIN((周K >= 80),'周線KD指標(biāo)位置:高位'),;
EXPLAIN(CROSS(日K,日D),'日K與日D今日金叉'),COLORCYAN;
EXPLAIN(CROSS(日D,日K),'日K與日D今日死叉'),colorFF00;
EXPLAIN(CROSS(周K,周D),'周K與周D今日金叉'),colorFF;
EXPLAIN(CROSS(周D,周K),'周K與周D今日死叉'),colorFF00;
{
--------日疊加周月量--------
月=1      Param#1 疊加月量用;
半月=1  Param#2 疊加半月量用;
周=1      Param#3 疊加周量用;
--------分時(shí)疊加日量--------
日=1  Param#4 疊加日量用;
--------調(diào)整任意均量值--------
N   Param#5 調(diào)整任意均量值(白色);
NA  Param#6 調(diào)整任意均量值(黃色);
NB  Param#7 調(diào)整任意均量值(綠色);

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    午夜成年人黄片免费观看| 成年人视频日本大香蕉久久| 欧美色欧美亚洲日在线| 日本加勒比不卡二三四区| 日本在线视频播放91| 国产91色综合久久高清| 国产老熟女超碰一区二区三区| 国产精品一区二区高潮| 国产日韩熟女中文字幕| 久久久精品日韩欧美丰满| 欧美日韩亚洲国产精品| 国产一区二区精品高清免费| 大香蕉久草网一区二区三区 | 欧美精品久久男人的天堂| 欧美激情区一区二区三区| 色鬼综合久久鬼色88| 亚洲国产91精品视频| 亚洲婷婷开心色四房播播| 久久福利视频视频一区二区| 丝袜诱惑一区二区三区| 日本一本不卡免费视频| 欧美一区二区三区不卡高清视| 好吊日视频这里都是精品| 亚洲精品伦理熟女国产一区二区| 中文字幕乱码亚洲三区| 91精品国产品国语在线不卡| 日本本亚洲三级在线播放| 免费精品国产日韩热久久| 亚洲一区二区精品免费| 亚洲中文字幕人妻av| 国产91人妻精品一区二区三区 | 大香蕉伊人一区二区三区| 91香蕉视频精品在线看| 国产传媒免费观看视频| 成人区人妻精品一区二区三区| 十八禁日本一区二区三区| 加勒比日本欧美在线观看| 日本精品中文字幕人妻| 国产精品久久熟女吞精| 国产精品一区二区传媒蜜臀| 黄色三级日本在线观看|