Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Value plot drop down menu in Strategy Builder

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

    Value plot drop down menu in Strategy Builder

    Greetings!

    I am looking for documentation on how to create the Value plot dropdown menu (on the left side under Plot) that is used in the strategy builder. I have evaluated almost all of the built in scripts that have them but have not been able to decipher what the piece of code is that creates that drop down menu.

    The goal I want to achieve is to select one of the variables in my indicator by using the drop down menu (on the left side of strategy builder) set that to equals (in the middle of the strategy builder) and set the condition to true one bar ago (on the right side of the strategy builder).

    Any help is appreciated. Thanks!

    #2
    Hello TheTechnician86,

    Plots are added with the AddPlot() method, which populates the Values[] collection.
    The Values[plot index] must be returned by a public Series<double> for the indicator to appear in the Strategy Builder.

    Below is a link to the support article on adding plots to indicators.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks Chelsea B. Unfortunately, this did not work for me. I have attached pictures of my code and where they are in the script. I am trying for my PosDiv and NegDiv conditions to show up as a selectable.

      Picture 0 - Variable declarations
      Picture 1 - On Bar update location of variables
      Picture 2 - If currentbar > 0 declaration
      Picture 3 - How I am using PosDiv
      Picture 4 - Outputting PosDiv like the example provided to a Value[x][x]

      Not sure what I am doing wrong. Only thing I can come up with is that I am using draw.text and draw.shape function to plot a letter or a shape.

      Any ideas?​
      Attached Files

      Comment


        #4
        Hello TheTechnician86,

        May I also see the screenshots of the public Series<double> declarations so I can see they are returning the Values[plot indexes]?
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        42 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        124 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        64 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        41 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