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 cre8able, Today, 03:20 PM
            1 response
            9 views
            0 likes
            Last Post cre8able  
            Started by fiddich, Today, 05:25 PM
            0 responses
            3 views
            0 likes
            Last Post fiddich
            by fiddich
             
            Started by gemify, 11-11-2022, 11:52 AM
            6 responses
            804 views
            2 likes
            Last Post ultls
            by ultls
             
            Started by ScottWalsh, Today, 04:52 PM
            0 responses
            4 views
            0 likes
            Last Post ScottWalsh  
            Started by ScottWalsh, Today, 04:29 PM
            0 responses
            9 views
            0 likes
            Last Post ScottWalsh  
            Working...
            X