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

Re:Question about Text on chart



PureBytes Links

Trading Reference Links


As Benjamin Blanco points out, NewLine is not part of the Text_New
supporting functions. Look in the EasyLanguage Dictionary in the PE. 

Try stacking three different Text_New(...) (1 for each string) and
progressively change the vertical placement. 

And see http://www.purebytes.com/archives/omega/2001/msg11362.html ,
http://www.traders2traders.com/code&overviews/textOncharts.txt



> Subject:  Re: Question about Text on chart
>     Date: Fri, 4 Oct 2002 00:15:15 -0400
>    From:"Benjamin Blanco" <ezlang@xxxxxxxxxxxxxxxx>
>       To:"Travis Saimoto" <travis@xxxxxxxxxxxxxxxxxxx>
>       CC: "omega-list" <omega-list@xxxxxxxxxx>
> 
> Text objects do not support the end-of-line and carriage return characters outputted by the NewLine function.
> 
> 
> ----- Original Message -----
> From: "Travis Saimoto" <travis@xxxxxxxxxxxxxxxxxxx>
> To: "Omega List" <omega-list@xxxxxxxxxx>
> Sent: Thursday, October 03, 2002 8:39 AM
> Subject: Question about Text on chart
> 
> 
> I've coded a indicator and I want them to put a text in the chart with the
> values of the indicator.  I want the values to be lined up vertically.
> 
> I've put:
> 
> If HTrend = True then WaveText = Text_New(RHDate[0], RHTime[0], RHVal[0],
> NumToStr(WaveVal[0], 2)
>  + NewLine + NumToStr(WaveBar[0], 0) + NewLine + NumToStr(WavePTV[0], 2));
> If LTrend = True then WaveText = Text_New(RLDate[0], RLTime[0], RLVal[0],
> NumToStr(WaveVal[0], 2)
>  + NewLine + NumToStr(WaveBar[0], 0) + NewLine + NumToStr(WavePTV[0], 2));
> 
> The "NewLine" function gives me two boxes between the 3 value.  Is the
> function broken or am I doing something wrong.  Is there any extra criterias
> I need to put to setup the String, like string size or something like that?
> 
> Thanks in advance.
> 
> Travis