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

RE: [amibroker] setting up for pair trading



PureBytes Links

Trading Reference Links

Thanks Graham!

I was able to change DateNum to DateTime and get exactly what I 
wanted in the Title block for the leftbar.

I had trouble with the righbar.. But changing it to LastValue(DateTime
() ) got me there.

Couldn't have done it without you. Thanks for the tips!


--- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
> Try this, its not fancy but works
> 
> Seebar = Status("barvisible") ;
> 
> LeftBar = ValueWhen(Ref(Seebar,-1)==0 AND seebar , DateNum());
> 
> RightBar = LastValue( ValueWhen(Ref(Seebar,1)==0 AND seebar, DateNum
()) );
> 
> Cheers,
> Graham
> http://e-wire.net.au/~eb_kavan/
> 
> -----Original Message-----
> From: Rick Miller [mailto:rick300m@x...] 
> Sent: Monday, 9 February 2004 12:16 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] First Date in Title??
> 
> 
> Hello-
> 
> I am looking for code to place the date of the left most visible 
bar 
> and right most visible bar in my Title block. 
> 
> I am stumped and could not find anything using search.
> 
> Anybody have some suggestions??
> 
> Thanks!
> 
> Rick
> 
> 
> 
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> 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



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/