Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

RenkoBars & Swing indicator has strength swifth

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

    RenkoBars & Swing indicator has strength swifth

    Hi,

    Renkobars with swing indicator has swing strenght swifth at least in strategy analyzer:

    example:

    protected override void Initialize()
    {
    Add(Swing(5));
    CalculateOnBarClose = true;
    }

    protected override void OnBarUpdate()
    {

    DrawTriangleUp("My triangle up" + CurrentBar, false, 0, Swing(5).SwingHigh[0] , Color.Lime);
    DrawTriangleDown("My triangle down" + CurrentBar, false, 0, Swing(5).SwingLow[0], Color.Red);
    }


    If runned in strategy analyzer, NT7 with renko bars it can be seen easily. 5 steps right ...
    Any way to avoid or correct situation?

    #2
    Addition:

    that Add(Swing(5)); shows indicator correctly but

    that Swing(5).SwingHigh[0] (or Low) is not sync with it ..

    Comment


      #3
      raffu, what the visual Swing indicator would show is not what you can access programmatically at the corresponding bars index. I suggest you plot the Swing.High method return to see what info is programmatically accessible at which time.
      BertrandNinjaTrader Customer Service

      Comment


        #4
        As mater of fact I think that visual indicator of swing is correct but what I get via Swing.SwingHigh is not in sync (those values printed to the same ...) Anyway I have to check it more.

        Comment


          #5
          You could unfortunately not compare the prints received via programmatic access of the method to the visual Swing indicator representation.
          BertrandNinjaTrader Customer Service

          Comment


            #6
            Ok,

            By the way did you try to compile the code and run it, it will show the anomality well
            (select Renko, 2, f.ex NQ)

            (no need to print Close and SwingHigh or Low then)

            Comment


              #7
              Yes, the 'anomaly' if you like to call it that way will be there, you can't compare the 2.
              BertrandNinjaTrader Customer Service

              Comment


                #8
                Thanks,

                I think that I got the point now, Actually there had to be that swing strength "swift" ...
                Newbie with swing indicator ...

                BR
                - raffu

                Comment


                  #9
                  You're welcome, the swing indicator is unfortunately a bit harder to tackle programmatically than visually.
                  BertrandNinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by bortz, 11-06-2023, 08:04 AM
                  47 responses
                  1,603 views
                  0 likes
                  Last Post aligator  
                  Started by jaybedreamin, Today, 05:56 PM
                  0 responses
                  8 views
                  0 likes
                  Last Post jaybedreamin  
                  Started by DJ888, 04-16-2024, 06:09 PM
                  6 responses
                  18 views
                  0 likes
                  Last Post DJ888
                  by DJ888
                   
                  Started by Jon17, Today, 04:33 PM
                  0 responses
                  4 views
                  0 likes
                  Last Post Jon17
                  by Jon17
                   
                  Started by Javierw.ok, Today, 04:12 PM
                  0 responses
                  12 views
                  0 likes
                  Last Post Javierw.ok  
                  Working...
                  X