|
楼主 |
发表于 2015-5-26 17:48
|
显示全部楼层
本帖最后由 WANGSHUXIAN 于 2015-5-26 17:59 编辑
通达信软件:点击公式—其它—新建—粘贴—左上角填写名称。
右上角:如果是主图公式,选主图叠加。
先到网上搜到公式,然后复制。
我这两个公式比较简单。
主图公式:
STICKLINE(V>=REF(V,1)*1.8 AND C>=REF(C,1),O,C,2,0) COLORYELLOW;
STICKLINE(C>REF(C,1) AND C<=O,O,C,2,0) COLORLIMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.8,0.1,1,STRCAT(STRCAT(HYBLOCK,' '), STRCAT(STRCAT(DYBLOCK,' '),GNBLOCK))),COLORGREEN;
三一位:REF(O-(O-C)*2/3,1) NODRAW;
二一位:REF((O+C)/2,1) NODRAW;
下三一:REF(O+(C-O)/3,1) NODRAW;
(三一,二一,下三一指的是昨日的)
量柱公式:
〖量〗:VOL,NODRAW,VOLSTICK;
STICKLINE(V>=3*REF(V,1),V/3,V/3,3.9,0),COLORWHITE;
STICKLINE(V>=2*REF(V,1),V/2,V/2,3.9,0),COLORYELLOW;
5换:SUM(100*V/CAPITAL,5),LINETHICK0;
10换:SUM(100*V/CAPITAL,10),LINETHICK0;
20换:SUM(100*V/CAPITAL,20),LINETHICK0;
VVOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;
VOLUME:VOL,VOLSTICK;
虚拟VOL:=IF(CURRBARSCOUNT=1 AND PERIOD=2,V*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=2,虚拟VOL,0,-1,-1),NODRAW;
虚量:VVOL;
虚换手:VVOL/CAPITAL*100;
换手率:V/CAPITAL*100,NODRAW;
三日总换手:SUM(V/CAPITAL*100,3),COLORLICYAN,NODRAW;
倍量:=(V>=REF(V,1)*1.8 AND C>=REF(C,1));
STICKLINE(倍量,V,0,2,0),COLORYELLOW;
二一量:=(V<=REF(V,1)/2 OR 虚量<=REF(V,1)/2);
三一量:=(V<=REF(V,1)*2/3 OR 虚量<=REF(V,1)*2/3);
三二量:=(V<=REF(V,1)/3 OR 虚量<=REF(V,1)/3);
STICKLINE(三二量,V,0,2,0),COLORBROWN;
STICKLINE(三一量,V,0,2,0),COLORMAGENTA;
STICKLINE(二一量,V,0,2,0),COLORRED;
STICKLINE(倍量,0,V,2,0),COLORYELLOW;
|
|