龙听期货论坛's Archiver

龙听 发表于 2018-12-24 13:32

大智慧换手率解盘指标公式[大智慧公式]

[code]
DRAWGBKLAST(C>0,STRIP(RGB(10,10,50),RGB(50,10,10),0));
DRAWFLAGTEXT(v/capital>0.075,C,'换手过大,小心主力出逃,短期头部'),colorffff00;
HSL:=vol/capital*100;
量能:=SUM(HSL,3);
涨幅a:=(C-ref(C,3))/ref(C,3)*100;
流通市值:=capital*c;{流通市值相对越小,涨幅越大,流通市值相对越大,涨幅越小 }
DRAWFLAGTEXT(涨幅a>0,C,'流通市值减小,涨幅加大');
DRAWFLAGTEXT(涨幅a<=0,C,'流通市值加大,涨幅减小');
DRAWFLAGTEXT(HSL<=1,C,'绝对地量:HSL<=1。');
DRAWFLAGTEXT(HSL>2 AND HSL<3,C,'该股成交温和:2%-3%,属于备份股。');
DRAWFLAGTEXT(HSL>1 AND HSL<2,C,'该股股成交低靡:1%-2%,属于冷门。');
CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));
WARNING('http://www.cxh99.com',CURRENTTIME>180000 and (CXH=3 OR CXH=8));
DRAWTEXTREL(10 ,10 ,'');
DRAWFLAGTEXT(HSL>3 AND HSL<5,C,'该股成交活跃:3%-5%,人们购买该股票的意愿高,属于热门股。');
DRAWFLAGTEXT(HSL>5 AND HSL<8,C,'该股初步带量:5%-8%!');
DRAWFLAGTEXT(HSL>=25,C,'该股票成交怪异:HSL>=25!');
DRAWFLAGTEXT(HSL>15 AND HSL<25,C,'已放巨量:15%-25%!');
DRAWFLAGTEXT(量能>3*3 AND 涨幅a>3*3,C,'继续大涨!');
DRAWFLAGTEXT(量能<0.5*3 AND 涨幅a<3,C,'继续小涨!');
DRAWFLAGTEXT(量能<0.5*3 AND 涨幅a>-3 AND 涨幅a>0,C,'继续小跌!');
DRAWFLAGTEXT(量能>3*3 AND 涨幅a<-3*3,C,'继续大跌!');
DRAWFLAGTEXT(((量能>3*3 AND 涨幅a<3) OR (量能<0.5*3 AND 涨幅a>3*3)
OR (量能>3*3 AND 涨幅a>-3 AND 涨幅a<0) OR (量能<0.5*3 AND 涨幅a<-3*3)),C,'注意变盘!');
{盖印}
DRAWRECTABS(0,0,30,35,RGB(250,60,80)),color000099;
DRAWRECTABS(0,30,30,45,RGB(250,250,80)),color009999;
DRAWTEXTABS(2,5,'金城'),colorFFFFFF,LINETHICK1;
DRAWTEXTABS(2,18,'特别'),colorFFFFFF,LINETHICK1;
DRAWTEXTABS(2,30,'优化'),color0000FF,LINETHICK1;
[/code]

龙听 发表于 2018-12-24 13:32

源码解析:

DRAWGBKLAST(收盘价>0,STRIP(自定色,自定色,0))
DRAWFLAGTEXT(成交量(手)/当前流通股本(手)>0.075,收盘价,'换手过大,小心主力出逃,短期头部'),COLORFFFF00
HSL赋值:成交量(手)/当前流通股本(手)*100
量能赋值:HSL的3日累和
涨幅A赋值:(收盘价-3日前的收盘价)/3日前的收盘价*100
流通市值赋值:当前流通股本(手)*收盘价

页: [1]