您现在的位置:好股网 >> 股票公式 >> 通达信公式 >> 一键转帖:金马主附图--始称温度计

金马主附图--始称温度计


指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2013-08-09 08:22:00
公式简介:

金马主附图--始称温度计

金马主图

N1:=3;
M2:=MA(C,20),COLORGREEN;
MA10:=EMA(C,10),COLORWHITE;
MA15:=EMA(C,15),COLORRED;
VAR1:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR3:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR6:=VAR3-VAR1;
Z:=MA(VAR6,N1);
STICKLINE(Z>=0 {AND ZZ=2},O,C,3,1),COLORRED;
STICKLINE(Z>=0 {AND ZZ=2},H,MAX(O,C),0,1),COLORRED;
STICKLINE(Z>=0 {AND ZZ=2},MIN(O,C),L,0,1),COLORRED;
STICKLINE(Z<0 {AND ZZ=1},O,C,3,0),COLORCYAN;
STICKLINE(Z<0 {AND ZZ=1},H,MAX(O,C),0,0),COLORCYAN;
STICKLINE(Z<0 {AND ZZ=1},MIN(O,C),L,0,0),COLORCYAN;
STICKLINE(Z>=0 AND M2>C,O,C,3,0),COLORCYAN;
STICKLINE(Z>=0 AND M2>C,H,MAX(O,C),0,0),COLORCYAN;
STICKLINE(Z>=0 AND M2>C,MIN(O,C),L,0,0),COLORCYAN;
STICKLINE(Z<0 AND M2<C,O,C,3,1),COLORRED;
STICKLINE(Z<0 AND M2<C,H,MAX(O,C),0,0),COLORRED;
STICKLINE(Z<0 AND M2<C,MIN(O,C),L,0,0),COLORRED;
金马日线:IF(MA10<C,MA10,DRAWNULL )COLORWHITE;
金马K线:IF(C>=MA15 AND MA10>MA15 AND CLOSE>MA15 ,MA15,DRAWNULL )COLORRED,LINETHICK1;
涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0);
STICKLINE(涨停,O,C,2.5,0),COLORLIMAGENTA;


金马附图
参数设置 m1 2 250 5
m2 2 250 5
源码如下:
量:VoL,VOLSTICK;
预量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),COLORFFFF00;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT ;
卖:-IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLORFF9088,POINTDOT;
买卖%:ABS(买/卖),LINETHICK0,COLORWHITE;
STICKLINE(VOL>0,VOL,0,3,0),COLORCC0000;
STICKLINE(VOL>0,VOL,0,2,0),COLORFF4400;
STICKLINE(VOL>0,VOL,0,1.1,0),COLORFF8800;
STICKLINE(VOL>0,VOL,0,0.4,0),COLORFFCC00;
STICKLINE(买>0,0,买,3,0),COLOR000066;
STICKLINE(买>0,0,买,2,0),COLOR000099;
STICKLINE(买>0,0,买,1.1,0),COLOR0000CC;
STICKLINE(买>0,0,买,0.4,0),COLOR0000FF;
M5:MA(买,M1),COLORFFFFFF,LINETHICK1;
MM5:MA(卖,M2),COLOR00FF00,LINETHICK1; N1:=3;
M2:=MA(C,20),COLORGREEN;
MA10:=EMA(C,10),COLORWHITE;
MA15:=EMA(C,15),COLORRED;
VAR1:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR3:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR6:=VAR3-VAR1;
Z:=MA(VAR6,N1);
STICKLINE(Z>=0 {AND ZZ=2},O,C,3,1),COLORRED;
STICKLINE(Z>=0 {AND ZZ=2},H,MAX(O,C),0,1),COLORRED;
STICKLINE(Z>=0 {AND ZZ=2},MIN(O,C),L,0,1),COLORRED;
STICKLINE(Z<0 {AND ZZ=1},O,C,3,0),COLORCYAN;
STICKLINE(Z<0 {AND ZZ=1},H,MAX(O,C),0,0),COLORCYAN;
STICKLINE(Z<0 {AND ZZ=1},MIN(O,C),L,0,0),COLORCYAN;
STICKLINE(Z>=0 AND M2>C,O,C,3,0),COLORCYAN;
STICKLINE(Z>=0 AND M2>C,H,MAX(O,C),0,0),COLORCYAN;
STICKLINE(Z>=0 AND M2>C,MIN(O,C),L,0,0),COLORCYAN;
STICKLINE(Z<0 AND M2<C,O,C,3,1),COLORRED;
STICKLINE(Z<0 AND M2<C,H,MAX(O,C),0,0),COLORRED;
STICKLINE(Z<0 AND M2<C,MIN(O,C),L,0,0),COLORRED;
金马日线:IF(MA10<C,MA10,DRAWNULL )COLORWHITE;
金马K线:IF(C>=MA15 AND MA10>MA15 AND CLOSE>MA15 ,MA15,DRAWNULL )COLORRED,LINETHICK1;
涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0);
STICKLINE(涨停,O,C,2.5,0),COLORLIMAGENTA;




[url=http://www.goodgupiao.com/gupiaogongshi/30145.html][B]金马主附图--始称温度计[/B][/url]