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

Re: Coding Q



PureBytes Links

Trading Reference Links

Here's an indicator that plots the difference between any two trendlines on
a chart.  Create a user function (call it AR_TLDif), as follows:



Input:  TLNum_1(NumericSimple), TLNum_2(NumericSimple);
AR_TLDif = TL_GetValue(TLNum_1,Date,Time) - TL_GetValue(TLNum_2,Date,Time);



Then create an indicator (with any name you like), as follows:


Input:  TLNum_1(0), TLNum_2(1);
Plot1(AR_TLDif(TLNum_1, TLNum_2), "TL Diff.");



You may use the code above or the attached .ela.  The inputs specify which
two trendlines are to be used in the difference calculation, by trendline
number.  Every trendline on a chart has a number.  To determine the
trendline number of any trendline on your chart, simply (right-click) or
(left-click and hold) on it.  The trendline number will be visible in the
box which appears.  The value of trendline number TLNum_2 will be subtracted
from the value of TLNum_1.


Good trading,

The Omega Man



----- Original Message -----
From: Per Nystroem <jur94pnm@xxxxxxxxxxxxxx>
To: Omega-list <omega-list@xxxxxxxxxx>; omega-digest
<omega-digest@xxxxxxxxxx>
Sent: Thursday, June 10, 1999 3:01 PM
Subject: Coding Q


> Hi
> After several months of lurking mode I've decided to pop a question.
> Maybe someone here might be able to help me.
>
> I've been trying to do an indicator that measures the difference between
> two trendlines (that have been entered into a chart by "drawing tools").
> However this seems to be a bit difficult to do. Anyone here able to help
> out???? Why I would like to do this? Well it's ment to be used a a
> signal later on in a system.
>
> BTW: I seem to be missing 4 functions. OpenD, HighD, LowD and CloseD (if
> the last two exist). Would anyone be nice enough to help me?
>
> Thanks for any help.
> Geetings from Sweden
> Per
>

Attachment Converted: "c:\eudora\attach\TLDIFF1.ELA"




  • References: