Announcement

Collapse
No announcement yet.

Trend Continuation Factor...

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

  • Trend Continuation Factor...

    Alex - I have been using the Trend Continuation Factor (attached) that you wrote and posted on 10-17-2005. I have a few questions: 1) It never seems to plot any negative values. Is this efs working proprerly? 2) The TCF+ line (blue) often doesn't plot on the chart until many bars later (i.e. - it leaves a blank space that is later filled in.

    Is it possible to force the efs to always plot it's last value for both lines, so that I won't have to guess at the TCF value until it is plotted? I am not sure how to make this change.

    Thanks for your help with this...

    Steve
    Attached Files

  • #2
    Steve
    As far as I can see the formula is working properly. It is plotting negative values (on both plots) and is updating in real time (see enclosed screenshot)
    Alex




    Originally posted by jones24621
    Alex - I have been using the Trend Continuation Factor (attached) that you wrote and posted on 10-17-2005. I have a few questions: 1) It never seems to plot any negative values. Is this efs working proprerly? 2) The TCF+ line (blue) often doesn't plot on the chart until many bars later (i.e. - it leaves a blank space that is later filled in.

    Is it possible to force the efs to always plot it's last value for both lines, so that I won't have to guess at the TCF value until it is plotted? I am not sure how to make this change.

    Thanks for your help with this...

    Steve

    Comment


    • #3
      Trend Continuation Factor

      Alex: Thanks for the fast reply. Yes, I can see how it plots perfectly when configured the way you have it set. I am using it, however, as a confirming indicator on a 10 minute Russell e-mini chart. I am using the unique settings of 1, hlc3, ab #f, 60, true. The efs plots correctly in the y-axis, but doesn't do so on the chart itself. Often times there is a delay of several bars before the lower valued line actually plots. Since I am using the higher of the 2 values as my confirmation, it would be nice to see a visual representation of this without searching the y-axis for the actual values. I will attach a screenshot so you may see the discrepancy I am seeing. Anyway, is it possible to force the plot to be drawn. I tried setting both lines as a histogram, but that didn't help...

      Thanks again,

      Steve

      Comment


      • #4
        Steve
        The formula is not intended to work with the Length set to 1 and requires a minimum of 2.
        Please change line 26 to setLowerLimit(2);
        Alex


        Originally posted by jones24621
        Alex: Thanks for the fast reply. Yes, I can see how it plots perfectly when configured the way you have it set. I am using it, however, as a confirming indicator on a 10 minute Russell e-mini chart. I am using the unique settings of 1, hlc3, ab #f, 60, true. The efs plots correctly in the y-axis, but doesn't do so on the chart itself. Often times there is a delay of several bars before the lower valued line actually plots. Since I am using the higher of the 2 values as my confirmation, it would be nice to see a visual representation of this without searching the y-axis for the actual values. I will attach a screenshot so you may see the discrepancy I am seeing. Anyway, is it possible to force the plot to be drawn. I tried setting both lines as a histogram, but that didn't help...

        Thanks again,

        Steve

        Comment


        • #5
          Alex:

          I was afraid of that. Doesn't seem to work unless the length is set to 1. Is there any way to trick the inputs so that I get the same result using a different set of inputs?

          10 min chart
          length = 1
          source = hlc3
          Interval = 60

          I tried length = 2; interval = 60 but there was too much lag. Any ideas?

          Thanks,
          Steve

          Comment


          • #6
            Steve
            As I indicated in my prior reply the formula needs a minimum Length of 2 as it requires the values of the current and prior bar to perform its calculations.
            Alex


            Originally posted by jones24621
            Alex:

            I was afraid of that. Doesn't seem to work unless the length is set to 1. Is there any way to trick the inputs so that I get the same result using a different set of inputs?

            10 min chart
            length = 1
            source = hlc3
            Interval = 60

            I tried length = 2; interval = 60 but there was too much lag. Any ideas?

            Thanks,
            Steve

            Comment


            • #7
              Scaling...

              Alex:

              In your Trend Continuation factor EFS, I am trying to get the scaling to work so that the two lines remain scaled so that I can visually see the separation between lines. Following a period of extremely high or low values, the lines seem to appear as one, although they do actually have much different values. I was trying to get the scaling so that the min and max values are -100 and + 100 - so that I can always see the "gap" between them. Anything over + 100 would appear at the top of the window pane, and anything under -100 would appear at the bottom of the window pane.

              Here is what I added in the Premain, but it didn't work:

              function preMain(){
              setPriceStudy(false);
              setStudyTitle("RUSSELL TREND BIAS ");
              setCursorLabelName("TCF+", 0);
              setCursorLabelName("TCF-", 1);
              setDefaultBarFgColor(Color.blue, 0);
              setDefaultBarFgColor(Color.red, 1);
              setPlotType(PLOTTYPE_LINE,0);
              setPlotType(PLOTTYPE_LINE,1);
              setDefaultBarThickness(5,0);
              setDefaultBarThickness(5,1);
              askForInput();
              setStudyMax(100 );
              setStudyMin(-100 );

              Thanks, Steve

              Comment


              • #8
                Re: Scaling...

                Steve
                If you are trying to expand the central area of the study where the lines get closer and/or cross then using +100/-100 as the study max/min may be too high depending on the maximum excusion registered for that symbol and interval and will actually have the opposite effect (ie compress those lines even more). If the maximum excursion is for example +25/-25 then try using a lower max/min value such as for example +20/-20 (or less). As you lower the max/min values you will see the scale of the central area of the indicator expand and the separation between the lines become more evident.
                Alex



                Originally posted by jones24621
                Alex:

                In your Trend Continuation factor EFS, I am trying to get the scaling to work so that the two lines remain scaled so that I can visually see the separation between lines. Following a period of extremely high or low values, the lines seem to appear as one, although they do actually have much different values. I was trying to get the scaling so that the min and max values are -100 and + 100 - so that I can always see the "gap" between them. Anything over + 100 would appear at the top of the window pane, and anything under -100 would appear at the bottom of the window pane.

                Here is what I added in the Premain, but it didn't work:

                function preMain(){
                setPriceStudy(false);
                setStudyTitle("RUSSELL TREND BIAS ");
                setCursorLabelName("TCF+", 0);
                setCursorLabelName("TCF-", 1);
                setDefaultBarFgColor(Color.blue, 0);
                setDefaultBarFgColor(Color.red, 1);
                setPlotType(PLOTTYPE_LINE,0);
                setPlotType(PLOTTYPE_LINE,1);
                setDefaultBarThickness(5,0);
                setDefaultBarThickness(5,1);
                askForInput();
                setStudyMax(100 );
                setStudyMin(-100 );

                Thanks, Steve

                Comment

                Working...
                X