Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

protected override plot

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

    protected override plot

    Hi,

    I have an indicator. in which I use the public override void plot method and included there I plot using graphics.drawline and graphics.drawstring.
    My question is: Is there a way to include that in a strategy, so that I can use the calculated values (which are plotted in the indicator) for entries and exits and plot them using the above mentioned statements from within the strategy?
    Or said otherwise how can I implement that all in a strategy to not have to use an indicator and a strategy?

    Regards keepsimple
    Last edited by keepsimple; 09-23-2014, 07:38 AM.

    #2
    keepsimple,

    Thank you for your post.

    You would not be able to use Plot() in the Strategy as this only exists in the IndicatorBase.

    The indicator would need to be included in the strategy for this kind of setup

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Hi Cal,
      Could you give me short example, of how to include an indicator in a strategy? do you do that using add in the initialze section?

      Comment


        #4
        Keepsimple,

        Exactly. Use Add() method to include the Indicator in the strategy.
        http://www.ninjatrader.com/support/h....html?add2.htm
        Cal H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        647 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        369 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        572 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X