Loading ...
Sorry, an error occurred while loading the content.

Re: [amibroker-ts] Coding Problem

Expand Messages
  • Anthony Faragasso
    Robert, This will do it for you. Codeblue=C==H ; Codered=C==L ; barcolor=Flip(Codeblue,Codered); Plot(Close, ,IIf(barcolor,colorBlue,colorRed),styleCandle);
    Message 1 of 4 , Jun 3, 2003
    View Source
    • 0 Attachment
      Robert,
       
      This will do it for you.
       

      Codeblue=C==H ;

      Codered=C==L ;

      barcolor=

      Flip(Codeblue,Codered);

      Plot

      (Close,
      "",IIf(barcolor,colorBlue,colorRed),styleCandle);

      Anthony

      ----- Original Message -----
      From: RLU94305
      Sent: Tuesday, June 03, 2003 1:22 PM
      Subject: [amibroker-ts] Coding Problem

      Hi,
       
      I have a programing problem would like to seek for help.
       
      I would like to define the bar color to blue when the close of the bar is equal to high.  And it will remain in blue until next signal when close is equal to low.  (In other words, the bar changes color only when close locates at either high or low of the bar.)
       
      Here is my current program code:
      Color = IIf(Close==High, colorBlue, IIf(Close==Low, colorRed, colorBlack));
      Plot(Close, "Bar Chart", Color, styleBar);
      However, I do not know how to make the color remain the same until next signal happens.
       
      Thank you for your help.
       
      Best regards, 
      Robert Lu
      ____________________________________________________
        IncrediMail - Email has finally evolved - Click Here


      To unsubscribe from this group, send an email to:
      amibroker-ts-unsubscribe@yahoogroups.com



      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

      ---
      Outgoing mail is certified Virus Free.
      Checked by AVG anti-virus system (http://www.grisoft.com).
      Version: 6.0.486 / Virus Database: 284 - Release Date: 5/29/2003
    • RLU94305
      Hi Anthony, Thank you very much. It works fine now. Best regards, Robert ... From: amibroker-ts@yahoogroups.com Date: Wednesday, June 04, 2003 07:33:19 AM To:
      Message 2 of 4 , Jun 3, 2003
      View Source
      • 0 Attachment
        Hi Anthony,
         
        Thank you very much.  It works fine now.
         
        Best regards,
        Robert 
         
        -------Original Message-------
         
        Date: Wednesday, June 04, 2003 07:33:19 AM
        Subject: Re: [amibroker-ts] Coding Problem
         
        Robert,
         
        This will do it for you.
         

        Codeblue=C==H ;

        Codered=C==L ;

        barcolor=

        Flip(Codeblue,Codered);

        Plot

        (Close,
        "",IIf(barcolor,colorBlue,colorRed),styleCandle);

        Anthony

        ----- Original Message -----
        From: RLU94305
        Sent: Tuesday, June 03, 2003 1:22 PM
        Subject: [amibroker-ts] Coding Problem

        Hi,
         
        I have a programing problem would like to seek for help.
         
        I would like to define the bar color to blue when the close of the bar is equal to high.  And it will remain in blue until next signal when close is equal to low.  (In other words, the bar changes color only when close locates at either high or low of the bar.)
         
        Here is my current program code:
        Color = IIf(Close==High, colorBlue, IIf(Close==Low, colorRed, colorBlack));
        Plot(Close, "Bar Chart", Color, styleBar);
        However, I do not know how to make the color remain the same until next signal happens.
         
        Thank you for your help.
         
        Best regards, 
        Robert Lu


        To unsubscribe from this group, send an email to:
        amibroker-ts-unsubscribe@yahoogroups.com



        Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

        ---
        Outgoing mail is certified Virus Free.
        Checked by AVG anti-virus system (http://www.grisoft.com).
        Version: 6.0.486 / Virus Database: 284 - Release Date: 5/29/2003


        To unsubscribe from this group, send an email to:
        amibroker-ts-unsubscribe@yahoogroups.com



        Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
         
        ____________________________________________________
          IncrediMail - Email has finally evolved - Click Here
      Your message has been successfully submitted and would be delivered to recipients shortly.