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

How does NT know which plot goes with which values?

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

  • hedgeplay
    replied
    The "Values" Array.

    Value[0] ( note the absence of the 's' ) seen in most indicators is just a reference to Values[0][0].

    Current value (E.g. [0] ) of the second plot can be found in Values[1][0].



    HedgePlay

    Leave a comment:


  • How does NT know which plot goes with which values?

    I'm trying to figure out how NinjaTrader knows to associate each plot with each value that is defined in OnBarUpdate().

    Initially I thought that maybe each plot added in State.SetDefaults would be assigned a value starting with 0 and incrementing with each new "AddPlot()", then this index would be used to determine which value in OnBarUpdate() was associated with each plot. To test this I changed the order around in both locations, however the plotted indicator remained unchanged even after removing and reapplying to the chart.

Latest Posts

Collapse

Topics Statistics Last Post
Started by TradeSaber, Today, 07:18 AM
0 responses
4 views
0 likes
Last Post TradeSaber  
Started by PaulMohn, Today, 05:00 AM
0 responses
9 views
0 likes
Last Post PaulMohn  
Started by ZenCortexAuCost, Today, 04:24 AM
0 responses
6 views
0 likes
Last Post ZenCortexAuCost  
Started by ZenCortexAuCost, Today, 04:22 AM
0 responses
3 views
0 likes
Last Post ZenCortexAuCost  
Started by SantoshXX, Today, 03:09 AM
0 responses
17 views
0 likes
Last Post SantoshXX  
Working...
X