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

RE: [amibroker] Using STRING() ???



PureBytes Links

Trading Reference Links










<span
>Actually,
I’ll have to play with it since this wigs out when I try to SCAN…

<span
> 

AlertIf<font size=1
color=black face=Tahoma>( Buy, <font
size=1 color=fuchsia face=Tahoma>"<span
>,"\<font
size=1 color=fuchsia face=Tahoma>"BUY, 2000,\" "<font size=1
color=black face=Tahoma> + <span
>Name<font
size=1 color=black face=Tahoma>() + <span
>" , "<font
size=1 color=black face=Tahoma> + <span
>"\"LMT\""<font
size=1 color=black face=Tahoma> + <span
>" , "<font
size=1 color=black face=Tahoma> + <span
>WriteVal<font
size=1 color=black face=Tahoma>(Close,FORMAT=<font
size=1 color=fuchsia face=Tahoma>1.2<span
>)+ <font
size=1 color=fuchsia face=Tahoma>"  "<font
size=1 color=black face=Tahoma> + <span
>Date<font
size=1 color=black face=Tahoma>() + <span
>" \"COVER,
2000,"\"<span
> + <font
size=1 color=blue face=Tahoma>Name<span
>() + <font
size=1 color=fuchsia face=Tahoma>" , "<font size=1 color=black
face=Tahoma> + <font
size=1 color=fuchsia face=Tahoma>"\"LMT\""<font size=1
color=black face=Tahoma> + <span
>" , "<font
size=1 color=black face=Tahoma> + <span
>WriteVal<font
size=1 color=black face=Tahoma>(Close,FORMAT=<font
size=1 color=fuchsia face=Tahoma>1.2<span
>)+ <font
size=1 color=fuchsia face=Tahoma>"  "<font
size=1 color=black face=Tahoma> + <span
>Date<font
size=1 color=black face=Tahoma>() , type = <span
>1<font
size=1 color=black face=Tahoma>,flags = <span
>1<font
size=1 color=black face=Tahoma>+<span
>8<font
size=1 color=black face=Tahoma>, lookback = <span
>1<font
size=1 color=black face=Tahoma> );

 

<span
>Mr Valley

<span
> 

<span
> 

<font size=2 color=black
face=Tahoma>-----Original
Message-----
From: Tomasz Janeczko
[mailto:tj@xxxxxxxxxxxxx]
Sent: Friday, April 25, 2003 1:20
AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Using
STRING() ???

<span
> 

<font size=2 color=black
face="Times New Roman">Hello,<font
color=black>

<font size=3 color=black
face="Times New Roman"> <font
color=black>

<font size=2 color=black
face="Times New Roman">It works the
same way as in C/C++. If you want to print quotation mark<font
color=black>

<font size=2 color=black
face="Times New Roman">you have to
enter is as \"  (backslash-quotation mark). Here is simple example:<font
color=black>

<font size=3 color=black
face="Times New Roman"> <font
color=black>

<span
>"<font size=2
color=fuchsia face="Courier New">Here is a string in<font size=2
color=fuchsia> <font
size=2 color=fuchsia face="Courier New">\"double quotes\" ";<font
size=1 color=black face="Courier New"> <span
>

<span
>Your example would look
like this:

<span
> <span
>

<span
>AlertIf<font
size=1 color=black face=Tahoma>( Buy, <font
size=1 color=fuchsia face=Tahoma>"<span
>,"\<font
size=1 color=fuchsia face=Tahoma>"BUY, 2000,\" "<font size=1
color=black face=Tahoma> + <span
>Name<font
size=1 color=black face=Tahoma>() + <span
>" , "<font
size=1 color=black face=Tahoma> + <span
>"\"LMT\""<font
size=1 color=black face=Tahoma> + <span
>" , "<font
size=1 color=black face=Tahoma> + <span
>WriteVal<font
size=1 color=black face=Tahoma>(Close,FORMAT=<font
size=1 color=fuchsia face=Tahoma>1.2<span
>)+ <font
size=1 color=fuchsia face=Tahoma>"  "<font
size=1 color=black face=Tahoma> + <span
>Date<font
size=1 color=black face=Tahoma>() + <span
>" \"COVER,
2000,"\"<span
> + <font
size=1 color=blue face=Tahoma>Name<span
>() + <font
size=1 color=fuchsia face=Tahoma>" , "<font size=1 color=black
face=Tahoma> + <font
size=1 color=fuchsia face=Tahoma>"\"LMT\""<font size=1
color=black face=Tahoma> + <span
>" , "<font
size=1 color=black face=Tahoma> + <span
>WriteVal<font
size=1 color=black face=Tahoma>(Close,FORMAT=<font
size=1 color=fuchsia face=Tahoma>1.2<span
>)+ <font
size=1 color=fuchsia face=Tahoma>"  "<font
size=1 color=black face=Tahoma> + <span
>Date<font
size=1 color=black face=Tahoma>() , type = <span
>1<font
size=1 color=black face=Tahoma>,flags = <span
>1<font
size=1 color=black face=Tahoma>+<span
>8<font
size=1 color=black face=Tahoma>, lookback = <span
>1<font
size=1 color=black face=Tahoma> );

<font size=3 color=black
face="Times New Roman">Best regards,
Tomasz Janeczko
amibroker.com



<font size=2 color=black
face=Arial>-----
Original Message ----- <span
>

<font size=2 color=black
face=Arial>

From:<font size=2 color=black
face=Arial> <a
href="" title="valleymj@xxxxxxxxx">Mr Valley 



<font size=2 color=black
face=Arial>To:<span
> <a
href="" title="amibroker@xxxxxxxxxxxxxxx">Amibroker


<font size=2 color=black
face=Arial>Sent:<span
> Friday, April 25, 2003
5:58 AM<span
>

<font size=2 color=black
face=Arial>Subject:<font size=2 color=black
face=Arial>
[amibroker] Using STRING() ???<font size=2 color=black
face=Arial>

<font size=3 color=black
face="Times New Roman"> <font
color=black>

<span
class=EmailStyle16>How can I encase the text
with quotes and have it display/ function correctly so I can work with it the
AA window?

<span
class=EmailStyle16> 

<span
class=EmailStyle16> 

<span
class=EmailStyle16>If I put in the extra
quotation marks to try to show “BUY”, “2000” , “LMT”, etc……… anywhere within
the editor it sees it as being back to a function?

<span
class=EmailStyle16> 

AlertIf<font size=1
color=black face=Tahoma>( Buy, <font
size=1 color=fuchsia face=Tahoma>" "<span
>,” <font
size=1 color=fuchsia face=Tahoma>"BUY, 2000,” "<font size=1 color=black
face=Tahoma> + <font
size=1 color=blue face=Tahoma>Name<span
>() + <font
size=1 color=fuchsia face=Tahoma>" , "<font size=1 color=black
face=Tahoma> + <font
size=1 color=fuchsia face=Tahoma>"LMT"<font size=1 color=black
face=Tahoma> + <font
size=1 color=fuchsia face=Tahoma>" , "<font size=1 color=black
face=Tahoma> + <font
size=1 color=blue face=Tahoma>WriteVal<span
>(<span
>Close,FORMAT=<font size=1
color=fuchsia face=Tahoma>1.2<span
>)+ <font
size=1 color=fuchsia face=Tahoma>"  "<font
size=1 color=black face=Tahoma> + <span
>Date<font
size=1 color=black face=Tahoma>() + <span
>" COVER, 2000,
"<span
> + <font
size=1 color=blue face=Tahoma>Name<span
>() + <font
size=1 color=fuchsia face=Tahoma>" , "<font size=1 color=black
face=Tahoma> + <font
size=1 color=fuchsia face=Tahoma>"LMT"<font size=1 color=black
face=Tahoma> + <font
size=1 color=fuchsia face=Tahoma>" , "<font size=1 color=black
face=Tahoma> + <font
size=1 color=blue face=Tahoma>WriteVal<span
>(<span
>Close,FORMAT=<font size=1
color=fuchsia face=Tahoma>1.2<span
>)+ <font
size=1 color=fuchsia face=Tahoma>"  "<font
size=1 color=black face=Tahoma> + <span
>Date<font
size=1 color=black face=Tahoma>() , type = <span
>1<font
size=1 color=black face=Tahoma>,flags = <span
>1<font
size=1 color=black face=Tahoma>+<span
>8<font
size=1 color=black face=Tahoma>, lookback = <span
>1<font
size=1 color=black face=Tahoma> );

 

 

I have tried Writeif() and that didn’t do
it for me.

 

I tried the EnableTextOutput() and editor
changes a comma to < sign.

 

AlertIf<font size=1
color=black face=Tahoma>(Buy<<font
size=1 color=fuchsia face=Tahoma>"EnableTextOutput(False);<font size=1
color=black face=Tahoma>

variable = <font size=1
color=fuchsia face=Tahoma>"text"<font size=1 color=black
face=Tahoma>; <font
size=1 color=green face=Tahoma>// this won't be written to commentary window<font
size=1 color=black face=Tahoma>

EnableTextOutput<font
size=1 color=black face=Tahoma>(True); 

 

I tried to define a text string,.

 

Var1 = <font size=1
color=fuchsia face=Tahoma>"STK"<font size=1 color=black
face=Tahoma>,<font
size=1 color=fuchsia face=Tahoma>"BUY"<font size=1 color=black
face=Tahoma>,<font
size=1 color=fuchsia face=Tahoma>"2000"<font size=1 color=black
face=Tahoma>,<font
size=1 color=fuchsia face=Tahoma>"LMT"<font size=1 color=black
face=Tahoma>;

Var2 = <font size=1
color=fuchsia face=Tahoma>"STK"<font size=1 color=black
face=Tahoma>,<font
size=1 color=fuchsia face=Tahoma>"SELL"<font size=1 color=black
face=Tahoma>,<font
size=1 color=fuchsia face=Tahoma>"2000"<font size=1 color=black
face=Tahoma>,<font
size=1 color=fuchsia face=Tahoma>"LMT"<font size=1 color=black
face=Tahoma>;

Var3 = <font size=1
color=fuchsia face=Tahoma>"STK"<font size=1 color=black
face=Tahoma>,<font
size=1 color=fuchsia face=Tahoma>"COVER"<font size=1 color=black
face=Tahoma>,<font
size=1 color=fuchsia face=Tahoma>"2000"<font size=1 color=black
face=Tahoma>,<font
size=1 color=fuchsia face=Tahoma>"LMT"<font size=1 color=black
face=Tahoma>;

Var4 = <font size=1
color=fuchsia face=Tahoma>"STK"<font size=1 color=black
face=Tahoma>,<font
size=1 color=fuchsia face=Tahoma>"SHORT"<font size=1 color=black
face=Tahoma>,<font
size=1 color=fuchsia face=Tahoma>"2000"<font size=1 color=black
face=Tahoma>,<font
size=1 color=fuchsia face=Tahoma>"LMT"<font size=1 color=black
face=Tahoma>;

 

Nothing worked.

Any thoughts?

 

Thanks,

Mr Valley

<span
class=EmailStyle16> 

<font size=3 color=black
face="Times New Roman">

<span
>Send BUG REPORTS
to bugs@xxxxxxxxxxxxx<font size=2 color=black
face="Courier New">
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html<font
color=black> 

<span
>Your use of
Yahoo! Groups is subject to the Yahoo!
Terms of Service.<span
> 



<font size=3 color=black
face="Times New Roman"><br
>



<font size=2 color=black
face="Courier New">Send BUG REPORTS to bugs@xxxxxxxxxxxxx<font
size=2 color=black face="Courier New">
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html<font
color=black> 

<span
>Your use of
Yahoo! Groups is subject to the Yahoo!
Terms of Service.<span
> 










Yahoo! Groups Sponsor












Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.