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

RE: CL_Need More Plot Statements? --Here They Are



PureBytes Links

Trading Reference Links


Dear Wayne,

Could you explain to us what is the advantage to test 2=2 which is of
course, always true?

I read on a TS EXpress issue that it's to include every bar in the test but
I don't understand why it wouldn't work without this condition?

Rgds,

Phil
-----Message d'origine-----
De : Wayne Mathews [mailto:wayne@xxxxxxxxx]
Envoyé : mardi 18 juillet 2000 01:42
À : =code-list; =omega list
Objet : CL_Need More Plot Statements? --Here They Are



Trendlines, TL, can be made to plot curves not just straight lines by
using the code below.  Thus TLs can function as a regular plot statement
so a chart is not now restricted to just 4 plots. The code is easiest
plotted in with the price data. The code is restricted to 1 minute
charts or greater as TLs do not work well in tick charts (TS has no
seconds interval capabilities ). Price() can be changed from the chart
as it is an input. E.g., Price(average(c,25) or Price(0.25*RSI(c,20))
(series functions seem to work best). Scaling factors must be taken into
account when the resulting plot is smaller or larger that the price
data. User defined scaling will work. There is a limit on how many TLs
(here bars) a chart can contain, I think a few thousand (or hundred).


input: price(c);
Var: TL(0);

If 2=2 then begin
   TL = TL_New(Date[1],time[1],price[1], Date,time,price );
   TL_SetStyle(TL, 1);
   TL_SetColor(TL, blue);
End;


wayne mathews