Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

add plots in strategy builder

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

    add plots in strategy builder

    Hey everyone,

    Can someone advise me on how to add plots in strategy builder to an indicator? I would like to able to choose the green shaded area and the red shaded area from the plots in the strategy builder. I have attached photos of what I need help with.
    Thank you
    titli
    Attached Files

    #2
    Hello Titli,

    The way to select plots would be just as you have pictured, you would select the indicator and then use the plots list to select a plot.

    If the indicator in question does not have a specific signal plot, meaning a plot which makes a value to be used with a strategy then you may not be able to detect the red/green switch. From the image it looks like you have high and low plots and a third plot. If the condition you want to make involves checking if the price crosses one of those plots you could do that using the builder. The red and green switch would require other logic similar to what the indicator does internally if there is not a plot exposed for the purpose of signals. If this is an indicator you have hte code to then you can open it using the NinjaScript editor to view how the red/green condition is formed to get a better idea if that is possible in the builder.

    I look forward to being of further assistance.

    Comment


      #3
      Hey Jesse,

      Thank you for that information. If the definition of the shaded areas exist within the code is it not possible to have them added as plots?

      Comment


        #4
        Hello Titli,

        Yes that is possible. The indicator has some existing logic which controls the coloring based on some condition. That would be the point where a plot could be set based on that change. For example the plot is always 0 unless green happens then its 1 or red could be 2. The indicator pictured likely does not contain a specific signal like that but if its something you have the code for you could certainly add it by adding another plot for that purpose. https://ninjatrader.com/support/help...ghtsub=addplot

        If that is something you can post a link to or attach the file we could possibly point out where the coloring is happening to provide further guidance on that modification.


        I look forward to being of further assistance.

        Comment


          #5
          Hey Jesse,

          I got someone to assist me with it. Thanks thou

          Comment

          Latest Posts

          Collapse

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