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 Aviram Y, Today, 05:29 AM
    4 responses
    11 views
    0 likes
    Last Post Aviram Y  
    Started by algospoke, 04-17-2024, 06:40 PM
    3 responses
    27 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by bmartz, 03-12-2024, 06:12 AM
    3 responses
    30 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Started by gentlebenthebear, Today, 01:30 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by cls71, Today, 04:45 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X