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

Re: how to code the divergence



PureBytes Links

Trading Reference Links

Excellent! Thought you were kidding at first! I will definately do that.

From: Abhijit Dey <omegalist@xxxxxxxxxx>
To: omega List <omega-list@xxxxxxxxxx>
Subject: Re: how to code the divergence
Date: Fri, 22 Apr 2005 13:00:46 -0500

Go become a member of group "HD_RDforDummies" at groups.yahoo.com. Then download DIVERGENCEINDICATORS.ELA from "Files > Other Day Trading Files > Tradestation" under the files section.

This code is good enough.. or modify at will.

HTH - Abhijit


Carl A. Schreiber wrote:

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