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 to control Display on Price Panel, Indicator Panel, Data Box.

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

    How to control Display on Price Panel, Indicator Panel, Data Box.

    How do you control whether indicators display on the Price Panel, Indicator Panel, and/or the Data Box and are available for strategies?
    I wrote an indicator that has 5 outputs.
    4 are very close to the current price, the last is either +1 or -1 depending on whether the signal is Long or Short.
    1) I want to display the lines and symbols on the Price Panel (which is happening OK with DrawLine, DrawTriangle, etc.), but not in an Indicator Panel. I don't want anything in any indicator panel.
    2) I want to output the +1 or -1 in the Data Box, but not to the Price or Indicator Panel, because it totally messes up the chart's scale.
    I have tried several combinations of Overlay, DisplayInDataBox, DrawOnPricePanel, Add(new Plot...), ???.Set(???), etc.
    Thanks.

    #2
    Chuck, currently it isn't possible to do what you want. Indicator plots go either all on the price panel or all on the indicator panel. It isn't possible to mix and match what goes where.

    The +1 -1 plot seems to be what is holding you back. It is possible, however, to create and expose DataSeries that are not plots. Thus, depending on your application of the indicator, you could simply call the exposed +1 -1 "plot" from another strategy or indicator, eliminating the need to plot it visually.

    The other option would be to create a new indicator that just plots the +1 -1 data, which would make it show up in the data box.
    AustinNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kaywai, 09-01-2023, 08:44 PM
    5 responses
    601 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by xiinteractive, 04-09-2024, 08:08 AM
    6 responses
    22 views
    0 likes
    Last Post xiinteractive  
    Started by Pattontje, Yesterday, 02:10 PM
    2 responses
    18 views
    0 likes
    Last Post Pattontje  
    Started by flybuzz, 04-21-2024, 04:07 PM
    17 responses
    230 views
    0 likes
    Last Post TradingLoss  
    Started by agclub, 04-21-2024, 08:57 PM
    3 responses
    17 views
    0 likes
    Last Post TradingLoss  
    Working...
    X