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.

      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.

          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.

              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.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by NullPointStrategies, Today, 05:17 AM
                  0 responses
                  50 views
                  0 likes
                  Last Post NullPointStrategies  
                  Started by argusthome, 03-08-2026, 10:06 AM
                  0 responses
                  126 views
                  0 likes
                  Last Post argusthome  
                  Started by NabilKhattabi, 03-06-2026, 11:18 AM
                  0 responses
                  69 views
                  0 likes
                  Last Post NabilKhattabi  
                  Started by Deep42, 03-06-2026, 12:28 AM
                  0 responses
                  42 views
                  0 likes
                  Last Post Deep42
                  by Deep42
                   
                  Started by TheRealMorford, 03-05-2026, 06:15 PM
                  0 responses
                  46 views
                  0 likes
                  Last Post TheRealMorford  
                  Working...
                  X