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

[amibroker] OT: Kevin Haggerty



PureBytes Links

Trading Reference Links




Gary,
 
Thank you for the suggestion....
 
Anthony
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Gary 
  A. Serkhoshian 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Sunday, March 07, 2004 10:28 
  AM
  Subject: Re: [amibroker] Conditional 
  title help
  
  Howdy Anthony,
   
  The problem, as you probably know, is the cross function is producing an 
  array which the if function will not accept.
   
  The best way to go about this would be to use a series of writeif 
  statements which will get you where you want to go.
   
  Hope this helps,
  GaryAnthony Faragasso <<A 
  href="">ajf1111@xxxxxxxx> wrote:
  <BLOCKQUOTE class=replbq 
  >
    
    

    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=#ff0 
    size=2 0ff>"\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 
    color=#0000ff size=2>WriteVal((fast-slow)-<FONT 
    color=#0000ff size=2>Ref(fast-slow,-<FONT 
    color=#ff00ff size=2>1),<FONT 
    color=#ff00ff size=2>1.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 
    
  
  
  Do you Yahoo!?Yahoo! Search - <A 
  href="">Find what you’re looking 
  for faster. 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.