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

writeval usage



PureBytes Links

Trading Reference Links

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