Announcement

Collapse
No announcement yet.

average true range bands

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

  • average true range bands

    Hi All!

    I have this chart done with a volatility trailing stop and a chandelier exit.

    Is it possible to show this trailingstop on the top that i have
    a ATR channel or band?


    The problem on the chandelier exit is that the dots are gone if
    i pull the clear button.

    Regards

    vienna
    Attached Files
    Last edited by vienna; 01-03-2009, 10:50 AM.

  • #2
    efs

    efs
    Attached Files

    Comment


    • #3
      efs

      efs
      Attached Files

      Comment


      • #4
        here a sample linke

        http://novicebear.com/2008/06/24/ano...trailing-stop/


        it should look like this charts following the linke

        Comment


        • #5
          i got it

          I got it. It is the Chandelier Exit.



          http://forum.esignalcentral.com/show...5&pagenumber=3

          http://share.esignal.com/groupconten...us&groupid=114


          Thanks to the ESignal Team and Chris D. Kryza, i found some
          wonderfull EFS here in the forum.

          vienna
          Attached Files
          Last edited by vienna; 01-04-2009, 02:15 AM.

          Comment


          • #6
            The following was coded by some one using Wealthlab. Was wondering if any one of you can code the same on EFS so we can use it. This is also very similar to trender i.e. ATR stops etc. Here is the equivalent Wealthlab code:

            {$I 'Basic Math Series III'}
            procedure PossibleTrenderStudy( atrPer, varPer: integer );
            var
            Bar, tSer, variance, xSer, meanOfSquares, squareOfMean, tPane: integer;
            bull: boolean;
            begin
            meanOfSquares := SMASeries( SqrSeries( ATRSeries( atrPer ) ), varPer );
            squareOfMean := SqrSeries( SMASeries( ATRSeries( atrPer ), varPer ) );
            variance := SubtractSeries(meanOfSquares, squareOfMean);
            xSer := AddSeries( ATRSeries( atrPer ), variance );
            xSer := MultiplySeriesValue( xSer, varPer );
            tSer := CreateSeries;
            @tSer[varPer] := PriceClose(varPer) - @xSer[varPer];
            bull := true;
            for Bar := varPer + 1 to BarCount - 1 do
            begin
            var C: float = PriceClose(Bar);
            if bull then
            begin
            if C < @tSer[Bar - 1] then
            begin
            bull := false;
            @tSer[Bar] := C + @xSer[Bar];
            end
            else
            @tSer[Bar] := Max( C - @xSer[Bar], @tSer[Bar - 1] );
            end
            else // bear
            begin
            if C > @tSer[Bar - 1] then
            begin
            bull := true;
            @tSer[Bar] := C - @xSer[Bar];
            end
            else
            @tSer[Bar] := Min( C + @xSer[Bar], @tSer[Bar - 1] );
            end;
            if bull then
            SetSeriesBarColor( Bar, tSer, #Red )
            else
            SetSeriesBarColor( Bar, tSer, #Green );
            end;
            PlotSeriesLabel(tSer, 0, #Red, #Dots, 'Trender???');
            end;

            {* Call the study - make changes to the ATR and Variance periods, respectively, here *}
            PossibleTrenderStudy( 5, 10 );

            Comment

            Working...
            X