Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ploting Internal Indicators

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

    Ploting Internal Indicators

    I am familiar with ploting external indicators using code such as Add(SMA(20)); in a strat, but is it possible to plot an indicator that has been coded within a strat? If so, can you tell me how please?

    Thanks
    Dave

    #2
    DaveS,

    Unfortunately this is not possible without a dummy indicator. Please see Ryan's post above.

    Please let me know if I can assist further.
    Last edited by NinjaTrader_AdamP; 10-26-2011, 06:44 AM.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      search the forum with keyword Strategy Plot.

      basic idea is create an indicator with an exposed plot (say MyPlot). in the strategy add the same indi and you can set value to it as MyPlot().Value.Set(Close[0]); //replace Close[0] with your custom value.

      Comment


        #4
        Hi DaveS,

        This is a correction to Adam's post. You can setup a dummy indicator and then set the value of this within the strategy. The following sample can help with this:
        When running a strategy on a chart you may find the need to plot values onto a chart. If these values are internal strategy calculations that are difficult to migrate to an indicator, you can use the following technique to achieve a plot. NinjaTrader 8 With NinjaTrader 8 we introduced strategy plots which provide the ability
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Thanks both.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          67 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          150 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          162 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          99 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          286 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Working...
          X