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 cmtjoancolmenero, 04-29-2024, 03:40 PM
        29 responses
        96 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by Gavin45, Today, 08:40 AM
        0 responses
        0 views
        0 likes
        Last Post Gavin45
        by Gavin45
         
        Started by trilliantrader, Today, 07:50 AM
        3 responses
        6 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by z.franck, Today, 08:37 AM
        0 responses
        2 views
        0 likes
        Last Post z.franck  
        Started by Taddypole, Yesterday, 02:25 PM
        4 responses
        21 views
        0 likes
        Last Post Taddypole  
        Working...
        X