Experiments in Technical Analysis

karthikmarar

Well-Known Member
Hi Friends

Continuing with the "Trading the MACD" discussion

Finally it always good to look at the volume while looking at the MACD. Combing Volume with MACD helps us to get onto some really good moves. There could be many ways to combine this. One could just use a simple moving average of the volume or look at some volume-based indicator. OBV indicator with a 30 day moving average of the same does work as a good confirmatory Indicator.

We can also derive a MACD with a volume bias. There are many ways to do that. I will not go into the details of these here. I will provide a simple example here.

Create a new variable V= sum(C*V)n / sum (V)n

Now create a MACD of this variable with n=12 and n=26.

I will leave the experimentation to you. Just enclosing the chart of this volume biased MACD with the normal MACD

Next we will conclude thus discussion with a brief look on the Pros and Cons of MACD.

Regards

Karthik
 
Last edited:

asnavale

Well-Known Member
Hi Friends

Continuing with the "Trading the MACD" discussion

...........................................

We can also derive a MACD with a volume bias. There are many ways to do that. I will not go into the details of these here. I will provide a simple example here.

Create a new variable V= sum(C*V)n / sum (V)n

Now create a MACD of this variable with n=12 and n=26.

I will leave the experimentation to you. Just enclosing the chart of this volume biased MACD with the normal MACD

Next we will conclude thus discussion with a brief look on the Pros and Cons of MACD.

Regards

Karthik
Hi Karthik,

The line in RED above has a variable V on the LHS. But V is used for Volume on RHS (V is a reserved symbol). Shouldn't we use some other identifier for the new variable? Such as 'var' or 'newvar' or some such thing?

Regards

-Anant
 
U

uasish

Guest
Hi Karthik,

The line in RED above has a variable V on the LHS. But V is used for Volume on RHS (V is a reserved symbol). Shouldn't we use some other identifier for the new variable? Such as 'var' or 'newvar' or some such thing?

Regards

-Anant
Anant,
Var is also a reserved symbol in MS.

Asish
 

karthikmarar

Well-Known Member
Ananth, asish

Nice to know you guys go through these posts seriously :D

True, V is a reserved letter. Please do change it to something like CV (not creditviolet ... close volume biased... :) )

regards

Karthik
 

karthikmarar

Well-Known Member
Re: Experiments in Technical Analysis - Trading the MACD

Friends,

Now it is time to conclude this discussion on trading the MACD. Before that we will just look at the pros and cons of the MACD.

MACD-PROS

MACD can be a trend following as well as a momentum Indicator. Since we are using two moving averages it makes a good trend following Indicator. As a momentum Indicator it captures the underlying momentum and that is the reason divergences are very effective in case of MACD. Divergence forewarns the traders of the impending weakness and reversals. MACD can be used on any time frame effectively. MACD is one of the most widely followed Indicators and that makes it self-fulfilling and effective.

MACD- CONS

Since MACD is based on moving averages the inherent qualities of lag and whipsaws are also reflected in the MACD. MACD as a momentum Indicator does not work well as a indicator of over bought and oversold levels.

END NOTE

MACD used properly can be one of the simplest and rewarding tool for the Technical Analyst. However it does have drawbacks and combining it with other Indicators makes it very effective.

One can try the MACD with different combination of the moving averages instead of the standard 12, 26. Many people use a shorter period for example 8,17,9 for Buy and longer ones 12,26,9 for sell.

Also one can experiment with MACD of other types of moving averages like weighted Moving averages, Adaptive moving averages like KAMA, VIDYA, and MAMA etc.

I hope this discussion was useful especially to the newbie.

Happy Experimenting

Warm regards

Karthik
 
Tq very much Karthik, we are very lucky to have a Technical Expert like you sharing your thoughts and programming skills with us!! Now we have more knowledge to reduce our losses and hopefully, to gain more!!
 

asnavale

Well-Known Member
Anant,
Var is also a reserved symbol in MS.

Asish
Hi Asish,

I am not familiar with MS coding. So I suggested 'var'. As Karthik suggested we can write something else which wouldn't conflict with reserved words.

Thanks and Regards

-Anant
 

mfire

Active Member
Thank you very much for such elaborative & nice work for us. I always feel that this thread has given me a way to look at the technical analysis.
Mohan
 

Similar threads