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

[amibroker] Re: Indicator based on....



PureBytes Links

Trading Reference Links

It is a long story how this came to be but I blame it on TC2000 
because their data works from the end to the front in 5 day 
increments for their weekly data...  

ERRR....



--- In amibroker@xxxxxxxxxxxxxxx, "Paul Chivers" <pchivers@xxxx> 
wrote:
> Mark,
> 
> I don't have a database of US stocks so can't try your example for 
USB.
> 
> However, I don't think "inDaily*5" is creating a weekly M-F chart 
but rather
> counting forward in fives from the start of your database.  It 
might
> coincidentally be that the last groups of 5 trading days span 2/5 
to 2/11
> but you would just be lucky if this were so.
> 
> By examing the plotted "inDaily*5" bars it should be obvious which 
bars it
> counts as the first of the 5, the last of the 5, etc.
> 
> If you really want it to count backwards from the last bar in 
fives, I think
> you will have to play around with LLV(), HHV() etc to come up with 
some code
> that adjusts things so the "inDaily*5" effectively counts 
backsward from the
> end.
> 
> Paul
> 
> ----- Original Message ----- 
> From: "mleonsprint" <mleonsprint@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Friday, 13 February 2004 1:41 PM
> Subject: [amibroker] Re: 5 Daily bars compressed into one.........
> 
> 
> Graham,
> 
> I plotted the following and I don't think it is taking the last 5
> days and compressing them together.  plot it and then bring up a
> daily along with the code below in another indicator. Then open
> another window and put it into a "weekly" format.
> 
> Bring up the stock USB
> 
> of the dates 2/11 | 2/10 | 2/9 | 2/6 | 2/5
> 
> The low of those dates according to my data with Quotes Plus is
> 27.50 comming from the date 2/6
> 
> The Open should have come from 2/5 and it would have been 27.98
> 
> The High and close from 2/11 would have been 28.03 {The highest in 
5
> days was the 11th and it also closed at it}
> 
> I think the code below is making a standard weekly chart (Mon. Thru
> Fri.)?
> 
> I may be wrong, please let me know what your thoughts are?
> Thanks for your help
> Mark



Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
     amibroker-unsubscribe@xxxxxxxxxxxxxxx

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