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

I can't see Strategy plots and indicators in Chart

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

    I can't see Strategy plots and indicators in Chart

    Hello,

    I have created a new STRATEGY and added:

    1.) Plot using - AddPlot(new Stroke(Brushes.Red,1), PlotStyle.Line, "Plot1"); in state State.SetDefaults
    2.) I also added an indicator using - AddChartIndicator(ATR(60)); in state State.DataLoaded

    Now, when I run the strategy analyzer, I can see both the plot and ATR indicator in the chart.
    However, when I add the strategy into a chart using New -> Chart and then adding a strategy, I cannot see the indicator nor the plot.

    Is this expected behavior? Is there any way how to visualize the strategy without running the strategy analyzer?

    With Regards,
    Martin

    #2
    Hello svitaz,

    Is the strategy enabled on the chart?
    (Does the strategy show with the Enabled checkbox checked on the Strategies tab of the Control Center?)
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      You are right indeed! The strategy was not enabled. When it is, plot and indicator will show up.

      One more question though. Is it possible for a strategy to display the plot in a separate panel or does the plot need to be always in a price panel? I can't figure out how to display the plot in a separate panel...

      Martin

      Comment


        #4
        Hello Martin,

        The indicator will do the plotting. The plots of an indicator must be in the same panel of the indicator.

        The Strategy can put an indicator in a different panel.

        Below is a link to an example.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmtjoancolmenero, Yesterday, 03:58 PM
        1 response
        17 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by benmarkal, Yesterday, 12:52 PM
        3 responses
        23 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by helpwanted, Today, 03:06 AM
        1 response
        19 views
        0 likes
        Last Post sarafuenonly123  
        Started by Brevo, Today, 01:45 AM
        0 responses
        11 views
        0 likes
        Last Post Brevo
        by Brevo
         
        Started by pvincent, 06-23-2022, 12:53 PM
        14 responses
        244 views
        0 likes
        Last Post Nyman
        by Nyman
         
        Working...
        X