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

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 franatas, Today, 01:53 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by tkaboris, Today, 06:27 AM
        3 responses
        11 views
        0 likes
        Last Post tkaboris  
        Started by cummish, Yesterday, 08:43 PM
        1 response
        20 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by elirion, Yesterday, 09:32 PM
        2 responses
        16 views
        0 likes
        Last Post elirion
        by elirion
         
        Started by cupir2, Yesterday, 07:44 PM
        1 response
        16 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X