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

In Strategy AddPlot to panel (not overlay) plus add indicator with overlay

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

    In Strategy AddPlot to panel (not overlay) plus add indicator with overlay

    Hello everyone,

    I would like to as if it is possible to create a strategy that draws lines in an extra panel, so not overlay and add an indicator with AddChartIndicator() as overlay.

    Thanks in advance.

    #2
    Hi Airwave, thanks for posting.

    It is possible to plot and draw in a separate panel in a strategy. You will need this set up in State.SetDefaults:

    Code:
    IsOverlay = false; //plot in seperate panel
    DrawOnPricePanel = false; //place drawing objects on the panel
    AddPlot(Brushes.Red, "MyPlot"); //plot for the panel
    Best regards,
    -ChrisL
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Hi Chris,

      thank you, that was, what I was doing. But when I then add an overlay Indicator with AddChartIndicator() this one is also been pushed into the separate panel although I want this stay on top of the bars.

      Thanks in advnace.

      Comment


        #4
        Hi Airwave, thanks for your reply.

        The indicator you are adding to the chart must be IsOverlay= false. I just tested with the SMA indicator and that is added to the price panel from a strategy.

        Best regards,
        -ChrisL
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by geotrades1, Today, 10:02 AM
        0 responses
        1 view
        0 likes
        Last Post geotrades1  
        Started by rajendrasubedi2023, Today, 09:50 AM
        0 responses
        10 views
        0 likes
        Last Post rajendrasubedi2023  
        Started by ender_wiggum, Today, 09:50 AM
        0 responses
        4 views
        0 likes
        Last Post ender_wiggum  
        Started by bmartz, Today, 09:30 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by geddyisodin, Today, 05:20 AM
        3 responses
        24 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X