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

Base.Plot

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

    Base.Plot

    Hi

    dont worry about replying Ninja I know this is a non standard item ... perhaps some kind soul could tell me what I am doing wrong.

    I have a Plot Override to draw some lines and boxes which works perfectly for that. However here's the thing .. I also have three plots which I would like to see sometimes but when I add the base.Plot(graphics, bounds, min, max); statement I get a run time error where I am told that ..


    5/9/2012 1:31:23 PM Default Error on plotting indicator 'PReceiver'. Please check the 'OnBarUpdate' or the 'Plot' method: Value cannot be null.
    Parameter name: pen

    I do use pens and brushes in the method but I cant spot what I am doing wrong (obviously compile works fine)

    I also have a return if Bars== null in there.

    any pointers would be appreciated.

    cheers

    #2
    Just checking if you ever made any progress on this item.

    Please let me know if there is anything we can do to help if needed.
    MatthewNinjaTrader Product Management

    Comment


      #3
      Originally posted by I_Quant View Post
      Hi

      dont worry about replying Ninja I know this is a non standard item ... perhaps some kind soul could tell me what I am doing wrong.

      I have a Plot Override to draw some lines and boxes which works perfectly for that. However here's the thing .. I also have three plots which I would like to see sometimes but when I add the base.Plot(graphics, bounds, min, max); statement I get a run time error where I am told that ..


      5/9/2012 1:31:23 PM Default Error on plotting indicator 'PReceiver'. Please check the 'OnBarUpdate' or the 'Plot' method: Value cannot be null.
      Parameter name: pen

      I do use pens and brushes in the method but I cant spot what I am doing wrong (obviously compile works fine)

      I also have a return if Bars== null in there.

      any pointers would be appreciated.

      cheers
      Could you show some pseudocode of your custom Plot, so that we can see how exactly you are calling base.Plot()?

      Comment


        #4
        I have some code running in the overloaded Plot() method (which works fine). It seems that calling base.Plot() within my function doesn't matter one way or the other.

        Can someone explain to me the idea of why I should call it within my Plot() method?

        Thanks!
        Daniel
        Last edited by neoikon; 06-22-2012, 09:19 AM.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by judysamnt7, 03-13-2023, 09:11 AM
        4 responses
        55 views
        0 likes
        Last Post DynamicTest  
        Started by ScottWalsh, Today, 06:52 PM
        4 responses
        35 views
        0 likes
        Last Post ScottWalsh  
        Started by olisav57, Today, 07:39 PM
        0 responses
        7 views
        0 likes
        Last Post olisav57  
        Started by trilliantrader, Today, 03:01 PM
        2 responses
        19 views
        0 likes
        Last Post helpwanted  
        Started by cre8able, Today, 07:24 PM
        0 responses
        8 views
        0 likes
        Last Post cre8able  
        Working...
        X