Announcement

Collapse
No announcement yet.

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.
    Airwave
    NinjaTrader Ecosystem Vendor - Airwave

    #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

    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.
      Airwave
      NinjaTrader Ecosystem Vendor - Airwave

      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

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        54 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        131 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        73 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        44 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        49 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X