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

help with adding plots to indicator

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

    help with adding plots to indicator

    HI i was wondering if one can help to add plots so it plots supp and res values to this sup res indicator.
    I added these two lines but stuck afterwards
    AddPlot(Brushes.YellowGreen, "Demand");
    AddPlot(Brushes.Tomato, "Supply");​
    Attached Files

    #2
    Hello tkaboris,

    It looks like you added the plots in the correct location. Plots require that you set data to them for them to do anything. You would now have to set the data you wanted to display from OnBarUpdate.

    To set the plots you can use the values collection:

    Values[0][0] = someValueForDemandPlot;
    Values[1][0] = someValueForSupplyPlot;
    JesseNinjaTrader Customer Service

    Comment


      #3
      thank you, its not as easy as that with this indicator... then there are properties values that needed to be added. I will do more study

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by giulyko00, Today, 11:49 AM
      2 responses
      11 views
      0 likes
      Last Post giulyko00  
      Started by Aviram Y, Today, 06:03 AM
      2 responses
      10 views
      0 likes
      Last Post Aviram Y  
      Started by FishTrade, Today, 03:42 PM
      0 responses
      1 view
      0 likes
      Last Post FishTrade  
      Started by Richozzy38, Today, 01:06 PM
      3 responses
      14 views
      0 likes
      Last Post Richozzy38  
      Started by ttrader23, Today, 09:04 AM
      2 responses
      12 views
      0 likes
      Last Post ttrader23  
      Working...
      X