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

RE: Simple indicator help



PureBytes Links

Trading Reference Links

Hello,

Thanks to all who replied to my request.








It was very helpful.








Sincerely,
JTraDer421 








-----Original Message-----
From: Massimo Ciarafoni [mailto:maxci@xxxxxx] 
Sent: Saturday, January 31, 2004 5:00 AM
To: JTraDer421@xxxxxxxxxxx
Subject: Simple indicator help








JTraDer421








You could try something like this :








Vars:id(0),dec(2);
If CurrentBar=1 then begin 
	id=Text_New(Date, Time, C[1], NumToStr(C[1],dec)) ; end else begin
	Text_SetString(id, "     "+NumToStr(C[1], dec));
	Text_SetLocation(id, Date, Time, C[1]);
	Text_SetStyle(Id, 0, 2);
end;
If 1=0 then Plot1(0,"");








Plot it same as price data.
To see it you need some space at the right of the last bar, dec input allows
you to modify the number of decimals to show on the chart (I don't know
which instrument you want to apply it to).
Using the text function you can modify it as you like.
I didn't test it real-time so try if it works for you.








Best regards. 








Massimo Ciarafoni