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

Re:Need More Plot Statements? --Here They Are



PureBytes Links

Trading Reference Links

This is a repost with an added note.

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). 

This was sent with a gif attachment but omega-list rejected the posting
(20K - too large). The code-list accepted it so if you want to see the
gif go there. I have dropped the "If ...then begin" "End" here as it
seems to work without it (in TS 2K).


input: price(c);
Var: TL(0);
  
TL = TL_New(Date[1],time[1],price[1], Date,time,price );
   TL_SetStyle(TL, 1);
   TL_SetColor(TL, blue);


wayne mathews