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

[RT] Gen - code request ADR



PureBytes Links

Trading Reference Links

Using an intraday chart I would like to plot in subgraph 2 an average DAILY
range of "N" days not including the current day.  Overlayed on that would be
the current day's range of HighD(0)-LowD(0).  I don't want to use a
multidata chart with day bars in data2.  N will be any number greater than
1.  For example a three day average range with intraday bars starting with
the previously complete day is something like (HighD(1)-Low(1)
+HighD(2)-LowD(2)+HighD(3)-LowD(3))/3 but I would like some generalized code
that takes an input of N(10) or N(14) etc.. and calculates the N day
average.  The idea here is obviously to visually compare the current day's
range development with that of the previous N days average.  This gives a
feel for whether there is room left for range expansion or whether things
are overdone and the odds are against further expansion.

thanks,
bobr


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Find the Best Software/ Application Developers at Elance
Post Your Project for FREE to receive
Competitive Proposals from multiple vendors
http://us.click.yahoo.com/DmjnND/8A0DAA/cosFAA/zMEolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
realtraders-unsubscribe@xxxxxxxxxxxxxxx

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/