Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Plotting through value

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

    Plotting through value

    i have the following instruction in initialize()


    base.Add(new Plot(new Pen(Color.Gray, 6f), PlotStyle.Bar, "N1"));
    base.Add(new Plot(new Pen(Color.Gray, 1f), PlotStyle.Bar, "N2"));
    base.Add(new Plot(new Pen(Color.Gray, 1f), PlotStyle.Bar, "N3"));

    OnBarUpdate()


    I want to assign the value of the plot by value:

    value.set(1); ======> I have read the guides in this set mode value in the first plot ...
    but for others as I do?






    #2
    turbofib, this is just the main indicator value series - you can use Values to set for any other additional series as well - http://www.ninjatrader.com/support/h...ightsub=Values
    BertrandNinjaTrader Customer Service

    Comment


      #3
      I've already read it but I did not understand how to use it

      Values ​​[1] is not referring to the second plot.

      Comment


        #4
        No, that would be the second indicator value series which typically is linked to your plots. The plots themselves just define how the values would be visualized. It would be certainly easier to set the plot values directly. To get a better understanding in how this works, I would suggest to check into for example the default Stochastic indicator and then check into the properties section.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          I want to say a few words that you connect each variable to its own plot in the properties

          Is correct?

          Comment


            #6
            Correct, in the properties section of the indicator you would 'connect' the plot value to it's values series - the plot will then determine the visualization of the values set.
            BertrandNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Segwin, 05-07-2018, 02:15 PM
            14 responses
            1,789 views
            0 likes
            Last Post aligator  
            Started by Jimmyk, 01-26-2018, 05:19 AM
            6 responses
            837 views
            0 likes
            Last Post emuns
            by emuns
             
            Started by jxs_xrj, 01-12-2020, 09:49 AM
            6 responses
            3,293 views
            1 like
            Last Post jgualdronc  
            Started by Touch-Ups, Today, 10:36 AM
            0 responses
            13 views
            0 likes
            Last Post Touch-Ups  
            Started by geddyisodin, 04-25-2024, 05:20 AM
            11 responses
            63 views
            0 likes
            Last Post halgo_boulder  
            Working...
            X