Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        581 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        337 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        554 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        552 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X