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

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



PureBytes Links

Trading Reference Links




Hello,
 
It works the same way as in C/C++. If you want to print 
quotation mark
you have to enter is as \"  (backslash-quotation mark). 
Here is simple example:
 

"<FONT 
color=#ff00ff>Here is a string in <FONT 
face="Courier New">\"double quotes\<FONT 
face="Courier New">" "<FONT 
face="Courier New">; 

Your example would 
look like this:
<FONT face=Tahoma 
size=2> 
<SPAN 
>AlertIf<FONT 
face=Tahoma color=black size=1><SPAN 
>( <SPAN 
>Buy, <FONT face=Tahoma 
color=fuchsia size=1><SPAN 
>"<FONT 
face=Tahoma color=black size=1><SPAN 
>,"\<FONT 
face=Tahoma color=fuchsia size=1><SPAN 
>"BUY, 2000,\" 
"<SPAN 
> + <FONT 
face=Tahoma color=blue size=1><SPAN 
>Name<FONT 
face=Tahoma color=black size=1><SPAN 
>() + 
<SPAN 
>" , 
"<SPAN 
> + <FONT 
face=Tahoma color=fuchsia size=1><SPAN 
>"\"LMT\""<FONT 
face=Tahoma color=black size=1><SPAN 
> + <FONT 
face=Tahoma color=fuchsia size=1><SPAN 
>" , 
"<SPAN 
> + <FONT 
face=Tahoma color=blue size=1><SPAN 
>WriteVal<FONT 
face=Tahoma color=black size=1><SPAN 
>(<SPAN 
>Close,FORMAT=<FONT 
face=Tahoma color=fuchsia size=1><SPAN 
>1.2<FONT 
face=Tahoma color=black size=1><SPAN 
>)+ <FONT 
face=Tahoma color=fuchsia size=1><SPAN 
>"<SPAN 
>  "<FONT face=Tahoma 
color=black size=1><SPAN 
> + <FONT 
face=Tahoma color=blue size=1><SPAN 
>Date<FONT 
face=Tahoma color=black size=1><SPAN 
>() + 
<SPAN 
>" \"COVER, 
2000,"\"<SPAN 
> + <FONT 
face=Tahoma color=blue size=1><SPAN 
>Name<FONT 
face=Tahoma color=black size=1><SPAN 
>() + 
<SPAN 
>" , 
"<SPAN 
> + <FONT 
face=Tahoma color=fuchsia size=1><SPAN 
>"\"LMT\""<FONT 
face=Tahoma color=black size=1><SPAN 
> + <FONT 
face=Tahoma color=fuchsia size=1><SPAN 
>" , 
"<SPAN 
> + <FONT 
face=Tahoma color=blue size=1><SPAN 
>WriteVal<FONT 
face=Tahoma color=black size=1><SPAN 
>(<SPAN 
>Close,FORMAT=<FONT 
face=Tahoma color=fuchsia size=1><SPAN 
>1.2<FONT 
face=Tahoma color=black size=1><SPAN 
>)+ <FONT 
face=Tahoma color=fuchsia size=1><SPAN 
>"<SPAN 
>  "<FONT face=Tahoma 
color=black size=1><SPAN 
> + <FONT 
face=Tahoma color=blue size=1><SPAN 
>Date<FONT 
face=Tahoma color=black size=1><SPAN 
>() , type = 
<SPAN 
>1<FONT 
face=Tahoma color=black size=1><SPAN 
>,flags = 
<SPAN 
>1<FONT 
face=Tahoma color=black size=1><SPAN 
>+<FONT 
face=Tahoma color=fuchsia size=1><SPAN 
>8<FONT 
face=Tahoma color=black size=1><SPAN 
>, lookback = 
<SPAN 
>1<FONT 
face=Tahoma color=black size=1><SPAN 
> 
);
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Mr Valley 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">Amibroker 
  Sent: Friday, April 25, 2003 5:58 
AM
  Subject: [amibroker] Using STRING() 
  ???
  
  
  <FONT face=Arial color=black 
  size=2><SPAN 
  >How 
  can I encase the text with quotes and have it display/ function correctly so I 
  can work with it the AA window?
  <FONT face=Arial color=black 
  size=2><SPAN 
  > 
  <FONT face=Arial color=black 
  size=2><SPAN 
  > 
  <FONT face=Arial color=black 
  size=2><SPAN 
  >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?
  <FONT face=Arial color=black 
  size=2><SPAN 
  > 
  <FONT face=Tahoma 
  color=blue size=1><SPAN 
  >AlertIf<FONT 
  face=Tahoma color=black size=1><SPAN 
  >( <SPAN 
  >Buy, <FONT face=Tahoma 
  color=fuchsia size=1><SPAN 
  >" 
  "<SPAN 
  >,” 
  <SPAN 
  >"BUY, 2000,” 
  "<SPAN 
  > + 
  <SPAN 
  >Name<FONT 
  face=Tahoma color=black size=1><SPAN 
  >() + 
  <SPAN 
  >" , 
  "<SPAN 
  > + 
  <SPAN 
  >"LMT"<FONT 
  face=Tahoma color=black size=1><SPAN 
  > + 
  <SPAN 
  >" , 
  "<SPAN 
  > + 
  <SPAN 
  >WriteVal<FONT 
  face=Tahoma color=black size=1><SPAN 
  >(<SPAN 
  >Close,FORMAT=<FONT 
  face=Tahoma color=fuchsia size=1><SPAN 
  >1.2<FONT 
  face=Tahoma color=black size=1><SPAN 
  >)+ 
  <SPAN 
  >"<SPAN 
  >  "<FONT face=Tahoma 
  color=black size=1><SPAN 
  > + 
  <SPAN 
  >Date<FONT 
  face=Tahoma color=black size=1><SPAN 
  >() + 
  <SPAN 
  >" COVER, 2000, 
  "<SPAN 
  > + 
  <SPAN 
  >Name<FONT 
  face=Tahoma color=black size=1><SPAN 
  >() + 
  <SPAN 
  >" , 
  "<SPAN 
  > + 
  <SPAN 
  >"LMT"<FONT 
  face=Tahoma color=black size=1><SPAN 
  > + 
  <SPAN 
  >" , 
  "<SPAN 
  > + 
  <SPAN 
  >WriteVal<FONT 
  face=Tahoma color=black size=1><SPAN 
  >(<SPAN 
  >Close,FORMAT=<FONT 
  face=Tahoma color=fuchsia size=1><SPAN 
  >1.2<FONT 
  face=Tahoma color=black size=1><SPAN 
  >)+ 
  <SPAN 
  >"<SPAN 
  >  "<FONT face=Tahoma 
  color=black size=1><SPAN 
  > + 
  <SPAN 
  >Date<FONT 
  face=Tahoma color=black size=1><SPAN 
  >() , type = 
  <SPAN 
  >1<FONT 
  face=Tahoma color=black size=1><SPAN 
  >,flags = 
  <SPAN 
  >1<FONT 
  face=Tahoma color=black size=1><SPAN 
  >+<FONT 
  face=Tahoma color=fuchsia size=1><SPAN 
  >8<FONT 
  face=Tahoma color=black size=1><SPAN 
  >, lookback = 
  <SPAN 
  >1<FONT 
  face=Tahoma color=black size=1><SPAN 
  > 
  );
  <FONT face=Tahoma 
  color=black size=1><SPAN 
  > 
  <FONT face=Tahoma 
  color=black size=1><SPAN 
  > 
  <FONT face=Tahoma 
  color=blue size=1><SPAN 
  >I have tried 
  Writeif() and that didn’t do it for me.
  <FONT face=Tahoma 
  color=blue size=1><SPAN 
  > 
  <FONT face=Tahoma 
  color=black size=1><SPAN 
  >I tried the 
  EnableTextOutput() and editor changes a comma to < 
  sign.
  <FONT face=Tahoma 
  color=black size=1><SPAN 
  > 
  <FONT face=Tahoma 
  color=blue size=1><SPAN 
  >AlertIf<FONT 
  face=Tahoma color=black size=1><SPAN 
  >(<SPAN 
  >Buy<<FONT face=Tahoma 
  color=fuchsia size=1><SPAN 
  >"EnableTextOutput(False);<FONT 
  face=Tahoma color=black size=1><SPAN 
  >
  <FONT face=Tahoma 
  color=black size=1><SPAN 
  >variable = 
  <SPAN 
  >"text"<FONT 
  face=Tahoma color=black size=1><SPAN 
  >; 
  <SPAN 
  >// this won't be 
  written to commentary window<FONT face=Tahoma color=black 
  size=1><SPAN 
  >
  <FONT face=Tahoma 
  color=blue size=1><SPAN 
  >EnableTextOutput<FONT 
  face=Tahoma color=black size=1><SPAN 
  >(<SPAN 
  >True); 
  <FONT face=Tahoma 
  color=black size=1><SPAN 
  > 
  <FONT face=Tahoma 
  color=black size=1><SPAN 
  >I tried to define a 
  text string,.
  <FONT face=Tahoma 
  color=black size=1><SPAN 
  > 
  <FONT face=Tahoma 
  color=black size=1><SPAN 
  >Var1 = 
  <SPAN 
  >"STK"<FONT 
  face=Tahoma color=black size=1><SPAN 
  >,<FONT 
  face=Tahoma color=fuchsia size=1><SPAN 
  >"BUY"<FONT 
  face=Tahoma color=black size=1><SPAN 
  >,<FONT 
  face=Tahoma color=fuchsia size=1><SPAN 
  >"2000"<FONT 
  face=Tahoma color=black size=1><SPAN 
  >,<FONT 
  face=Tahoma color=fuchsia size=1><SPAN 
  >"LMT"<FONT 
  face=Tahoma color=black size=1><SPAN 
  >;
  <FONT face=Tahoma 
  color=black size=1><SPAN 
  >Var2 = 
  <SPAN 
  >"STK"<FONT 
  face=Tahoma color=black size=1><SPAN 
  >,<FONT 
  face=Tahoma color=fuchsia size=1><SPAN 
  >"SELL"<FONT 
  face=Tahoma color=black size=1><SPAN 
  >,<FONT 
  face=Tahoma color=fuchsia size=1><SPAN 
  >"2000"<FONT 
  face=Tahoma color=black size=1><SPAN 
  >,<FONT 
  face=Tahoma color=fuchsia size=1><SPAN 
  >"LMT"<FONT 
  face=Tahoma color=black size=1><SPAN 
  >;
  <FONT face=Tahoma 
  color=black size=1><SPAN 
  >Var3 = 
  <SPAN 
  >"STK"<FONT 
  face=Tahoma color=black size=1><SPAN 
  >,<FONT 
  face=Tahoma color=fuchsia size=1><SPAN 
  >"COVER"<FONT 
  face=Tahoma color=black size=1><SPAN 
  >,<FONT 
  face=Tahoma color=fuchsia size=1><SPAN 
  >"2000"<FONT 
  face=Tahoma color=black size=1><SPAN 
  >,<FONT 
  face=Tahoma color=fuchsia size=1><SPAN 
  >"LMT"<FONT 
  face=Tahoma color=black size=1><SPAN 
  >;
  <FONT face=Tahoma 
  color=black size=1><SPAN 
  >Var4 = 
  <SPAN 
  >"STK"<FONT 
  face=Tahoma color=black size=1><SPAN 
  >,<FONT 
  face=Tahoma color=fuchsia size=1><SPAN 
  >"SHORT"<FONT 
  face=Tahoma color=black size=1><SPAN 
  >,<FONT 
  face=Tahoma color=fuchsia size=1><SPAN 
  >"2000"<FONT 
  face=Tahoma color=black size=1><SPAN 
  >,<FONT 
  face=Tahoma color=fuchsia size=1><SPAN 
  >"LMT"<FONT 
  face=Tahoma color=black size=1><SPAN 
  >;
  <FONT face=Tahoma 
  color=black size=1><SPAN 
  > 
  <FONT face=Tahoma 
  color=black size=1><SPAN 
  >Nothing 
  worked.
  <FONT face=Tahoma 
  color=black size=1><SPAN 
  >Any 
  thoughts?
  <FONT face=Tahoma 
  color=black size=1><SPAN 
  > 
  <FONT face=Tahoma 
  color=black size=1><SPAN 
  >Thanks,
  <FONT face=Tahoma 
  color=black size=1><SPAN 
  >Mr 
  Valley
  <FONT face=Arial color=black 
  size=2><SPAN 
  > Send 
  BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







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.