• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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.
        https://ninjatrader.com/support/foru...592#post788592
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by stenberg98, Today, 04:53 AM
        1 response
        3 views
        0 likes
        Last Post stenberg98  
        Started by mbcmbc, Yesterday, 10:12 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_ChrisSch  
        Started by fx.practic, Today, 03:44 AM
        0 responses
        9 views
        0 likes
        Last Post fx.practic  
        Started by pjsmith, Today, 03:28 AM
        0 responses
        4 views
        0 likes
        Last Post pjsmith
        by pjsmith
         
        Started by pjsmith, Today, 03:26 AM
        0 responses
        4 views
        0 likes
        Last Post pjsmith
        by pjsmith
         
        Working...
        X