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

Re: [amibroker] writeval usage



PureBytes Links

Trading Reference Links

Mohan,

This code can display cursor date only when used in Chart Commentary
window. 

Currently custom indicators are not re-calculated when cursor position changes
so the title is not updated.


Best regards,
Tomasz Janeczko
===============
AmiBroker - the comprehensive share manager.
http://www.amibroker.com


----- Original Message ----- 
From: "Mohan Yellayi" <yellayi@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, October 30, 2001 4:05 PM
Subject: [amibroker] writeval usage


> 
> I would like to use writeval to display values where the cursor is
> instead of a fixed display. How can I do this? As an example the code
> below from the afl library displays for the current date. I would like
> to change this to show values , where the cursor is.
> 
> ch= (close-(ref(close,-1)));
> chpct=ch/ref(c,-1)*100;
> 
> title =date()+" "+name()+" Open"+writeval(O)+" High"+writeval(H)+"
> Low"+writeval(L)+" Close" + writeval(graph0) + " Previous Close " +
> writeval((ref(graph0,-1))) + "Change=" + writeval(ch)+"
> ("+writeval(chpct,format=1.2)+"%)";
> 
> 
> Thanks for any help
> 
> Mohan
> 
> 
> 
> 
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
> 
> 
>