Escape character in EasyLanguage

Questions about MultiCharts and user contributed studies.
flyscalper
Posts: 14
Joined: 01 Jan 2012
Has thanked: 4 times

Escape character in EasyLanguage

Postby flyscalper » 28 Jun 2012

Hello,

I need to write some data from a signal to a file. The problem is that the data I need to write contains double quotes, and I do not know what is the escape sequence in easylanguage.

Anybody knows it?

Un saludo,

Pablo

User avatar
ABC
Posts: 718
Joined: 16 Dec 2006
Location: www.abctradinggroup.com
Has thanked: 125 times
Been thanked: 408 times
Contact:

Re: Escape character in EasyLanguage

Postby ABC » 28 Jun 2012

Hi Pablo,

not sure if I understand your request correctly, but the reserved word DoubleQuote might work for you.
DoubleQuote
Displays the double-quote (") character in a string.

Example
This example demonstrates how the word Hello in double quotes can be displayed on the last bar above High:

Variable: ID(-1);
If LastBarOnChart Then
ID = Text_New(Date, Time, High + 1 Point, DoubleQuote + "Hello" + DoubleQuote);
Regards,

ABC

flyscalper
Posts: 14
Joined: 01 Jan 2012
Has thanked: 4 times

Re: Escape character in EasyLanguage

Postby flyscalper » 28 Jun 2012

Yes, that is exactly what I needed.

Thanks a lot,

Pablo


Return to “MultiCharts”