Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Detecting bounce from supply and demand zones

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

    Detecting bounce from supply and demand zones

    Hello I am using the attached indicator to detect supply and demand zones, with Ninza Renko bars, it detects nicely , I have 2 questions:

    1) This indicator doesnt show up when i try to build a strategy using strategy builder. How can i expose this indicator in the strategy builder.
    2) I need to modify this indicator to detect a bounce from supply and demand zones. How can I do that?

    Please help me with this.
    Attached Files

    #2
    Hello archReactor,

    Thanks for your post.

    The Strategy Builder is only able to access indicators that contain plots added to the indicator using the AddPlot() method.

    To access the indicator in a Strategy Builder window, you could need to call the AddPlot() method in the indicator to add a plot(s) to the indicator and assign a value to the plot(s).

    See this help guide page for more information about AddPlot(): https://ninjatrader.com/support/help...t8/addplot.htm

    What exactly are you referring to when you mention you want to detect a "bounce"?

    To accomplish detecting a "bounce" from the supply and demand zones in the script would likely require that you come up with your own custom logic to calculate this based from the current logic in the script.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Hi NinjaTrader_BrandonH

      Thank you for your response, Could you provide me with an example of add plot..

      As for bounce you can see in the screen shot that the ninza renko candle went into the supply zone and came out of it and reversed it direction. Thats what i meant by bounce. Same goes for demand zones.
      Attached Files

      Comment


        #4
        Hello archReactor,

        Thanks for your notes.

        The AddPlot() help guide documentation linked in post # 2 contains sample code that you could view for how to call AddPlot() in a NinjaScript and assign values to the plot.

        AddPlot(): https://ninjatrader.com/support/help...ml?addplot.htm

        You would need to come up with your own custom logic that checks if the previous bar's Close price (Close[1]) is greater than the value of the SharpDX line being drawn for the supply line and check if the current Close price (Close[0]) is less than the value the supply line is being drawn at. You would also need to come up with your own custom logic to check if the previous Close price (Close[1]) is less than the value the of the SharpDX line being drawn for the demand line and check if the current Close price (Close[0]) is greater than the value the demand line is being drawn at.

        Since this script was not created by NinjaTrader, we do not know exactly how the logic of the script behaves and calculates values so you would need to study the script to understand how values are calculated.

        If this script was not created by you then you could consider contacting the developer of the script directly to get information about how exaclty the script is calculating those values in the script to better understand the script's logic.
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment


          #5
          Thank you NinjaTrader_BrandonH

          How would you add a Values Plot to show the signals in the strategy builder.

          Comment


            #6
            Hello archReactor,

            Thanks for your notes.

            Custom plots cannot be added to a strategy in the Strategy Builder window. This is a limitation of the Strategy Builder.

            If you want to access the indicator in the Strategy Builder for conditions and actions, you would need to add the plot to the indicator itself using the NinjaScript Editor window and then assign a value to the plot in the indicator script.

            That indicator plot could then be used for conditions and actions in a Strategy Builder strategy.

            Conditions: https://ninjatrader.com/support/help...on_builder.htm
            Actions: https://ninjatrader.com/support/help...t8/actions.htm

            If you do want to add a custom plot to a strategy, you would need to unlock the strategy code from the Strategy Builder by clicking the 'Unlock code' button and then manually program the AddPlot() logic into the script using the NinjaScript Editor window.

            Below is a link to a forum post with helpful information about getting started with NinjaScript.
            https://ninjatrader.com/support/foru...040#post786040
            <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

            Comment

            Latest Posts

            Collapse

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