PureBytes Links
Trading Reference Links
|
You may have to explain a little further, when you say quotes, are you
talking about bid and ask info? or bars? a simple divergence between price
and the indicator could sound something like this.
Price > price[1] and lr < lr[1]; or you could be use the arctangent function
to get the angle of lr.
From: "Carl A. Schreiber" <gooly@xxxxxx>
Reply-To: gooly@xxxxxx
To: omega List <omega-list@xxxxxxxxxx>
Subject: how to code the divergence
Date: Fri, 22 Apr 2005 18:05:47 +0200
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
|