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

RE: [amibroker] RE: [spam] Re: Indicator to highlight above MA



PureBytes Links

Trading Reference Links

--- Begin Message ---
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: Code Question
From: "Gordon" <amibroker@xxxxxxxxxxxxxx>
Date: Thu, 05 Feb 2004 05:34:13 -0000
Delivered-to: mailing list amibroker@xxxxxxxxxxxxxxx
In-reply-to: <20040205024805.67168.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
List-unsubscribe: <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx>
Mailing-list: list amibroker@xxxxxxxxxxxxxxx; contact amibroker-owner@xxxxxxxxxxxxxxx
User-agent: eGroups-EW/0.82
No, my cut&paste of actual code is accurate, my reply-while-working 
example is not :)

Gordon
--- In amibroker@xxxxxxxxxxxxxxx, b <b519b@xxxx> wrote:
> Gordon,
> 
> Do you intend to measure today vs tomorrow? If so, your
> code is fine. 
> 
> If, however, you want to measure whether today is up or
> down from yesterday, then you should replace 1 with -1 in
> your REF() calls.
> 
> b
>  
> --- Gordon <amibroker@xxxx> wrote:
> > I figure you have a couple of choices. 
> > 
> > One of the things I use is ATR(1) -- the avg. true range
> > for one 
> > period, or the true range between today and yesterday. I
> > like to know 
> > that number, and you can also simply use
> > 
> > (c - ref(c, 1))/ref(c, 1)
> > 
> > For part of my chart title, I include:
> > 
> > "ATR: " + NumToStr(ATR(1), 4.2) + " ( " + 
> > 	NumToStr((C - Ref(C, -1)), 4.2) + " / " +
> > 	NumToStr((((C - Ref(C, -1)) / Ref(C, -1)) * 100), 2.1) +
> > 
> > 	"% )
> > 
> > It's a snippet, so look out for unbalanced parantheses,
> > quotes, etc.
> > 
> > Gordon
> > --- In amibroker@xxxxxxxxxxxxxxx, "nb9trade" <clyde@xxxx>
> > wrote:
> > > Is there a built in function for % change from one day
> > to the next?
> > > 
> > > What code would be used to designate the previous days
> > close, high 
> > > low or last etc.?
> > > 
> > > Thanks
> > > 
> > > Clyde
> > 
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Finance: Get your refund fast by filing online.
> http://taxes.yahoo.com/filing.html


--- End Message ---