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

Re: How to display variable on a chart



PureBytes Links

Trading Reference Links

Hi,

To display a variable on a chart use the EL "Text_New" command,
you will also have to use the "NumToStr" command to convert your
variable (if numeric) into a string. eg for some number called 'A'

VAR TmpText(0),         ** Needed for Text_New, holds a Text Ref number 
         A(10);

TmpText=Text_New(Date,Time,Pos,NumToStr(A,0));
 
Where Pos= y axis position on chart & would be something like L-1 or H+1
others self explanatory.

Capt Zap!


> >How do you display a variable on a chart or in a data window?
> >
> >Specifically, if I have a variable like maxpositionprofit, what is the
> >EL command to make it display in the chart window.  If this is a
> >problem, having the variable in a data window would also be fine.