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

[amibroker] Does Amibroker 'remember' active window ?



PureBytes Links

Trading Reference Links




Anthony,
 
As written in the Users Guide if-else statement needs ONE 
BOOLEAN value (not array).
 
Therefore to make your code working you would need to use 
SelectedValue function
 
 
if ( SelectedValue( <FONT face="Courier New" 
color=#0000ff size=2>Cross(fast,slow) ) 
)
{
...
}
else <FONT face="Courier New" 
color=#800000 size=2>if ( 
SelectedValue( <FONT face="Courier New" color=#0000ff 
size=2>Cross(slow,fast) ) <FONT 
face="Times New Roman" size=2>)
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Anthony Faragasso 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Sunday, March 07, 2004 3:16 
PM
  Subject: [amibroker] Conditional title 
  help
  
  I am trying to have a conditional title on the 
  custom chart....the following is not working....could someone 
  help..
   
  Thank you
  Anthony
   
  
  if (<FONT face="Courier New" color=#0000ff 
  size=2>Cross(fast,slow)<FONT 
  size=2>)
  {
  Title=Name<FONT 
  size=2>()+"\n"<FONT 
  size=2>+"TARGET UP"<FONT 
  size=2>+"\n 
  ................."+<FONT color=#ff00ff 
  size=2>"\n"+<FONT color=#ff00ff 
  size=2>"Cross = "+<FONT color=#0000ff 
  size=2>WriteVal(<FONT color=#0000ff 
  size=2>ValueWhen(<FONT color=#0000ff 
  size=2>Cross(fast,slow),fast),<FONT 
  color=#ff00ff size=2>1.2)+<FONT 
  color=#ff00ff size=2>"\n"+<FONT 
  color=#ff00ff size=2>"Trough1 = "+<FONT 
  color=#0000ff size=2>WriteVal(Trough1,<FONT 
  color=#ff00ff size=2>1.2)+<FONT 
  color=#ff00ff size=2>"\n"+<FONT 
  color=#ff00ff size=2>"points = "+<FONT 
  color=#0000ff size=2>WriteVal(<FONT color=#0000ff 
  size=2>ValueWhen(<FONT color=#0000ff 
  size=2>Cross(fast,slow),fast)-Trough1,<FONT 
  color=#ff00ff size=2>1.2)+<FONT 
  color=#ff00ff size=2>"\n"+<FONT 
  color=#ff00ff size=2>"TargetUP = "+<FONT 
  color=#0000ff size=2>WriteVal((<FONT color=#0000ff 
  size=2>ValueWhen(<FONT color=#0000ff 
  size=2>Cross(fast,slow),fast)-Trough1)+<FONT 
  color=#0000ff size=2>ValueWhen(<FONT color=#0000ff 
  size=2>Cross(fast,slow),fast),<FONT 
  color=#ff00ff size=2>1.2)+<FONT 
  color=#ff00ff size=2>"\n" +<FONT 
  color=#ff00ff size=2>" Difference = "+<FONT 
  color=#0000ff size=2>WriteVal(fast-slow,<FONT 
  color=#ff00ff size=2>1.2)+<FONT 
  color=#ff00ff size=2>"\n"+<FONT 
  color=#ff00ff size=2>"Diff from yesterday ="<FONT 
  size=2>+WriteVal<FONT 
  size=2>((fast-slow)-Ref<FONT 
  size=2>(fast-slow,-1<FONT 
  size=2>),1.2<FONT 
size=2>);
  }
  else <FONT face="Courier New" 
  color=#800000 size=2>if (<FONT face="Courier New" 
  color=#0000ff size=2>Cross<FONT face="Courier New" 
  size=2>(slow,fast))
  {
  Title=Name<FONT 
  face="Courier New" size=2>();
  }
  ---Outgoing mail is certified Virus Free.Checked by AVG 
  anti-virus system (<A 
  href="">http://www.grisoft.com).Version: 6.0.583 
  / Virus Database: 369 - Release Date: 
  2/10/2004Send 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 
  


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








Yahoo! Groups Sponsor


ADVERTISEMENT




Click Here















Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/ 
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.