Saturday, 8 June 2013

Methods to Detect Divergences


Divergences are a bit difficult to programme. Divergences are best checked visually.

There are many different ways to check for divergences.

1. One of the simplest is to use Rate of change indicator and EXPLORATION feature of Automatic Analysis window.

// 5 day rate of change of closePriceUp ROCC) > // 5 day rate of change of MACD histogramMacdUP ROCMACD() - Signal(), ) > 0BullishDiv NOT PriceUP AND MACDUp;BearishDiv PriceUP AND NOT MACDUp;Filter BullishDiv OR BearishDiv;AddColumnBullishDiv"Bullish Divergence"1.0,
       
colorDefaultIIf(BullishDivcolorGreencolorDefault ) );
AddColumn
BearishDiv "Bearish Divergence"1.0,
       
colorDefaultIIf(BearishDiv colorRedcolorDefault) );



2. Using linear regression  

// 10 day linear regression slope of closePriceUp LinRegSlopeC10 ) > // 10 day linear regression slope of MACD histogramMacdUP LinRegSlopeMACD() - Signal(), 10 ); 


The divergences can be applied to any oscillators for any specific values. 

1 comment:

  1. MR. PRASADSIR,

    FIRST OF ALL HATS OFF YOU FOR CREATING & HELPING THIS MUCH OF PEOPLE OUT HERE...

    YOU DECIDED NOT TO PROVIDE YOUR HOLY GRAIL TO PUBLIC AFTER WISESTOCKTRADER INCIDENT, BUT SIR I LOOKED EVERY POST OF YOUR BLOG WHERE PEOPLE BEGGING FOR THAT HOLY GRAIL,

    SIR I REQUEST YOU MAY NOT PUBLIC THAT AFL BUT PLEASE PLEASE DO FEVER TO PROVIDE THAT ON EMAILS...

    PEOPLE ARE BEGGING BECAUSE THEY SOMEWHERE LOOSING UP OR WIPED OUT THEIR ACCOUNTS SO MANY TIMES, I AM ONE OF THEM.

    SIR NOW ONLY YOU & YOU CAN SAVE US.....


    MAY BE WE ARE NOT DESERVE THIS THINGS, BUY SIR WE OWE YOU IF YOU HELP US, WE OWE YOU SIR....


    THE HOPE :----

    MY EMAIL ID

    shah.abhishek7271@gmail.com

    ReplyDelete

/* begin page number */