Rank: Advanced Member
Groups: Registered, Registered Users Joined: 9/23/2009(UTC) Posts: 51
|
I want to perform a MACD on the On Balance Volume indicator so I can more easily see when the momentum of the OBV indicator is starting to slow down. However, I cannot grab the MACD indictor and move it on top of the On Balance Volume indicator. Does anyone know of a way to do this or an alternative?
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Hi Alan
Here are a couple of indicator options for an MACD of OBV. The DLL-based option makes it possible to use precise “new data” ratios for each EMA but the conventional ratios generated by Period parameters of 12 and 26 are probably quite adequate for most purposes.
Roy
{OBV MACD 1}
FastMA:=Mov(OBV(C),12,E);
SlowMA:=Mov(OBV(C),26,E);
M:=FastMA-SlowMA;
M; {MACD}
Mov(M,9,E); {Signal}
{OBV MACD 2}
FastMA:=ExtFml("MSTT.EMA",OBV(C),12.3333);
SlowMA:=ExtFml("MSTT.EMA",OBV(C),25.6667);
M:=FastMA-SlowMA;
M; {MACD}
Mov(M,9,E); {Signal}
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 9/23/2009(UTC) Posts: 51
|
Hi Roy:
Thanks for such a quick response. I will try these out and report back.
Alan,
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Hi Alan
You won’t have the MSTT DLL as it was created by Wabbit especially for MetaStock Tips & Tools. However, the standard MetaStock Mov() function should provide all the flexibility you’re likely to need for an MACD of On Balance Volume.
Roy
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 9/23/2009(UTC) Posts: 51
|
Hi Roy:
Tried the following and it works fine:
{OBV MACD 1} FastMA:=Mov(OBV(C),12,E); SlowMA:=Mov(OBV(C),26,E); M:=FastMA-SlowMA; M; {MACD} Mov(M,9,E); {Signal}
However when I plot OBV(C); and FastMA; and SlowMA; and then compare them to the OBV indicator, the 12 day EMA, and the 26 day EMA from the pull down indicator list and overlay them they do not look the same. Any idea's why? I'm using QQQQ.
Alan,
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Hi Alan
The only thing I can think of is that the scaling of various plots is distorting the appearance of other plots. A test for this would be to check all values by referring to each plot value as reported in the Data Window (click the crosshairs icon on the toolbar). Regardless of what two plots look like when displayed in the same window, if the data window says they have the same value then they do have the same value. Mixing scaled with unscaled or scaled-left with scaled-right plots is the most common reason for identical value plots appearing to be different.
Roy
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.