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

Re: [amibroker] Re: Suggestions/Enhancements



PureBytes Links

Trading Reference Links




Tomasz,
 
Thank you....that corrects the title output...but 
it only stays visible on the day of the cross....how would I correct it so the 
output stays visible during the life after the cross until it crosses in the 
opposite direction..?
 
Anthony
<BLOCKQUOTE dir=ltr 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Tomasz Janeczko 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Sunday, March 07, 2004 10:02 
  AM
  Subject: Re: [amibroker] Conditional 
  title help
  
  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<FONT 
    size=2>(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=<FONT face="Courier New" color=#0000ff 
    size=2>Name();<FONT 
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@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 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.