分时4小时离不开的【OBV+MACD.OBV+KDJ】源码 解释介绍
分时4小时离不开的【OBV+MACD.OBV+KDJ】源码 解释
我们每天看盘4小时那么量价是能不能探讨的课题.OBV结合基本公式MACD和KDJ效果如何呢.我们不可能一成不变的考虑问题.就是要不断的研究.试探各式各样的方法.其实这就是公式交流区的目标.要不断的【新陈代谢】发挥咱们的才智,大家集思广益我们才能前进.前进.再前进.
下边我把用在分时的OBV单独列个题目就是要吸引大家注意分时公式的研究.我承认我这个公式是个不成熟的公式.其实我就这吗点能耐.希望大家帮助我完善.纠正.
【A】OBV用MACD表述的公式源码:---------------------
{FS----OBV+MACD---}
DRAWRECTREL(-1,0,1000,1000,RGB(0,0,50)),color0077FF,LINETHICK2,LAYER7;
OBV:=SUM(IF(C>REF(C,1),VOL,IF(C<REF(C,1),-VOL,0)),0);
DIFF:=EMA(OBV,18)-EMA(OBV,20);
DEA:=EMA(DIFF,8);
MACD:50*(DIFF-DEA),COLORSTICK,LAYER7;
50*(DIFF-DEA),COLOR00ff00,LINETHICK2,LAYER3;
PARTLINE(MACD,MACD>REF(MACD,1),rgb(255,0,0)),LINETHICK2,LAYER0;
{成交量}
STICKLINE(C>=REF(C,1),0,V,4,0 ),Color0077ff,LAYER0;
STICKLINE(C<REF(C,1),0,-V,4,0 ),Color99FF99,LAYER0;
----------------------------------------------------------------------------------------------------------------
【B】OBV用KDJ表述的公式源码:---------------------
{FS----OBV+KDJ---}
DRAWRECTREL(-1,0,1000,1000,RGB(0,0,50)),color0077FF,LINETHICK2,LAYER7;
OBV:=SUM(IF(C>REF(C,1),VOL,IF(C<REF(C,1),-VOL,0)),0);
STK:=DMA(OBV,3);
K:=SMA(STK,2,1);
D:=SMA(K,5,1);
J:(3*K-2*D),COLORSTICK;
PARTLINE(J,J>REF(J,1),rgb(255,0,0)),LINETHICK2,LAYER0;
J,COLOR00FF00,LINETHICK2;
{成交量}
STICKLINE(C>=REF(C,1),0,V,4,0 ),Color0077ff,LAYER0;
STICKLINE(C<REF(C,1),0,-V,4,0 ),Color99FF99,LAYER0;
gd23146