[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to code the divergence



PureBytes Links

Trading Reference Links

Hi everyboday,

I need some ideas about how to program a divergence between quotes and 
indicators: how would you do that? 

It is so simple, if you look at the chart, but how would you mathematically 
select the 'very important points' (vip ;-) for the liniear regression to get 
the slope? Then you can just multiply them and you'll get either 
	result < 0 (=Divergence) or 
	result > 0 (no Divergence).

Or can you recommand to use all ne values of both quotes and indicator?

Any idea is appreciated.

I thank you all very much in advance,
Carl