Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Renko Swing Indicator

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

    Renko Swing Indicator

    I've been trying to set up a swing indicator strategy in strategy builder, but the swing indicator from Ninja trader repaints. I'm using mean Renko bars. What I'm trying to do is compare the low of the current bullish reversal bar with the low of the previous bullish reversal bar (and vice versa for bearish bars) to catch higher lows and lower highs. Is there a way to plot these prices and then reference them for comparison using strategy builder?

    #2
    Hello Adanni,

    Thank you for your post.

    Do you mean plot the values of the Swing indicator? You can check the 'Plot on chart' box when using it in a condition so the values appear on the chart.

    To save a specific value, you can create a variable in the 'Inputs and Variables' screen and then in an Action, assign that variable a value (like a value from the Swing indicator).

    Comment


      #3
      Sorry, but I wasn't referring to the swing indicator. I tried using the swing indicator, but it repaints and therefore lags. I have created a strategy so far that draws arrows under reversal bars at the close of the bar that meet certain criteria. Now, I want to be able to save the value of the high and low price of those bars and compare the current reversal bar high or low price to the previous reversal bar high or low price. I am specifically interested in trading higher lows and lower highs. As it stands, I am also getting higher highs and lower lows, ​and I want to filter those out. Below is the code I've generated so far along with a screenshot.

      Click image for larger version

Name:	Screenshot 2025-03-04 004621.png
Views:	542
Size:	246.8 KB
ID:	1336602 Click image for larger version

Name:	Screenshot 2025-03-04 004207 2.png
Views:	498
Size:	153.6 KB
ID:	1336603

      Comment


        #4
        Hello Adanni,

        The same concept still applies, create a variable or variables to save the value of those bars. You can then use those variables for later comparisons.

        Comment


          #5
          I guess what I'm struggling with is the variable. Do I just use the high and low? Not sure how to save the value of the bar. Basically, trying to plot the highs and lows on bar close. Any tutorials of something similar? I've gone about as far as I can on my own.

          Comment


            #6
            Originally posted by Adanni View Post
            Sorry, but I wasn't referring to the swing indicator. I tried using the swing indicator, but it repaints and therefore lags. I have created a strategy so far that draws arrows under reversal bars at the close of the bar that meet certain criteria. Now, I want to be able to save the KitSuperStore.com value of the high and low price of those bars and compare the current reversal bar high or low price to the previous reversal bar high or low price. I am specifically interested to click here in trading higher lows and lower highs. As it stands, I am also getting higher highs and lower lows, ​and I want to filter those out. Below is the code I've generated so far along with a screenshot.

            Click image for larger version  Name:	Screenshot 2025-03-04 004621.png Views:	94 Size:	246.8 KB ID:	1336602 Click image for larger version  Name:	Screenshot 2025-03-04 004207 2.png Views:	88 Size:	153.6 KB ID:	1336603
            So, it was solved or not? One of my fellow is also facing the same issues.
            Last edited by mikecolady; 03-23-2025, 05:34 PM.

            Comment


              #7
              Hello,

              Apologies as our system did not re-open this case after the last reply from Adanni.

              Do I just use the high and low? Not sure how to save the value of the bar.
              If you want to save price values for bars, like the High or Low, you can create double variables. For example,
              Code:
              double myHigh = High[0];
              Or if you wanted to save a series of values, like saving a certain value per bar, use a custom Series<double>. Below is the Help Guide page for Series<t>.


              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              547 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              323 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              99 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              543 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              545 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X