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

Re: [amibroker] String Logic Check



PureBytes Links

Trading Reference Links





text="Now is a good time to 
Buy";
AlertIf(<FONT color=#0000ff 
size=2>LastValue(Buy)==<FONT color=#ff00ff 
size=2>1,<FONT color=#ff00ff 
size=2>"",text,<FONT color=#ff00ff 
size=2>4);
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Mr Valley 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">Amibroker 
  Sent: Thursday, July 10, 2003 1:13 
  AM
  Subject: [amibroker] String Logic 
  Check
  
  Am I correct in 
  the use of this?
  <FONT face=Arial 
  size=2> 
  mvSignal = "Now 
  looks like a good time";
  
  myAlert = WriteIf((<FONT 
  color=#0000ff>LastValue(Buy) ==<FONT 
  color=#ff00ff>1),mvSignal ,<FONT 
  color=#ff00ff>"");  //This didn't 
  work as I wanted
  <FONT 
  face=Arial size=2>Here's the problem, When Buy == 1 it writes "Now looks 
  like a good time" ...But,<SPAN 
  class=968222404-10072003>When I run a Scan and Buy is 
  not ==1, then it writes a blank space rather than doing 
  nothing.
  <FONT face=Arial color=#0000ff 
  size=2>1)  How can one Scan and write under a True 
  condition only?  ...not either text or blank <FONT 
  color=#ff0000>using only .AFL?
  2) 
  <FONT 
   color=#ffffff>addtextcolumn( string, 
  name, format = 1.2, textColor = colorDefault, 
  bkgndColor = colorDefault ) How do use format when it is a 
  string, just leave it out, or ???<FONT 
  size=+0><FONT 
  size=2><SPAN 
  class=968222404-10072003><FONT 
  face=Arial size=2>3)Or, do I need to write a .dll and then do 
  it?
  <FONT 
  face="Times New Roman">What is the best way to do 
  this?
  Thanks 
  in advance.
  Mr. 
  Valley
  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. 
  
<BLOCKQUOTE 
><FONT 
  face="Courier New">---Outgoing mail is certified Virus 
  Free.Checked by AVG anti-virus system (<A 
  href="">http://www.grisoft.com).Version: 6.0.498 
  / Virus Database: 297 - Release Date: 7/8/2003






Yahoo! Groups Sponsor


  ADVERTISEMENT 









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.