Announcement

Collapse
No announcement yet.

Trix

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Trix

    Is it possible to have TRIX indicator without the signal line?
    Everytime I put in a signal line of 1 it gives me an error.
    If it is possible to have the indicator without the signal line is it possible to have an arrow or color bar which shows change in direction?
    Thanks for your time.....Greg

  • #2
    Greg
    Which TRIX efs are you referring to? FWIW in this thread I show how to easily write a TRIX study.
    Alex

    Comment


    • #3
      TRIX

      Alex;
      I was refering to the esignal trix.efs
      Every time I put in a number 1 in the signal line box it gives me an error.
      Is it possible to fix that?
      Is it possible to have a color bar or an arrow when there is a change in direction?
      Thanks again...Greg

      Comment


      • #4
        Greg
        Please provide a link to the efs or attach it to your post.
        Alex

        Comment


        • #5
          TRIX

          Alex;
          Here is the link.
          Thanks again..Greg
          http://forum.esignalcentral.com/show...trix#post28958

          Comment


          • #6
            Greg
            You get an error when you set the Signal length to 1 because the minimum value for that parameter is set to 2 (see line 40). Replace the value 2 with 0 in fp2.setLowerLimit(2);
            Alex

            Comment


            • #7
              TRIX

              Alex;
              Thank you. That was an easy fix. Is there a way to put an arrow or color bar when there is a change in direction?
              Greg

              Comment


              • #8
                Greg
                The efs already includes two variables which define the values of vTRIX at the prior bar (vT_1) and of two bars back (vT_2). which can be used to determine the turning points of the indicator
                Insert the following lines just before the return statement

                PHP Code:
                if(vTRIX vT_1 && vT_1 vT_2
                    
                setPriceBarColor(Color.blue);
                if(
                vTRIX vT_1 && vT_1 vT_2
                    
                setPriceBarColor(Color.red); 
                You will also need to add two statements in preMain and specifically setColorPriceBars(true) and setDefaultPriceBarColor(Color.black) Replace the default color with one of your choice.
                This will paint the price bar in blue when the indicator turns up and in red when it turns down
                Alex

                Comment

                Working...
                X