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

Error: OnBarUpDate cannot be null

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

    Error: OnBarUpDate cannot be null

    With the attached code, it compiles OK, but I'm getting an error message in the Log when I apply it to a chart.

    Error on plotting indicator "RiskReward". Please check the "OnBarUpdate" or the "Plot" method. Value cannot be null.

    I'm using code from another indicator as a template to create a new RiskReward indicator and have stripped all the code out of the "OnBarUpDate" method. Is that the reason for the message?

    Thanks,
    taddypole...
    Attached Files
    Last edited by Taddypole; 02-24-2011, 12:38 AM.

    #2
    Taddypole, on which NT version are you working here? For NT7 there have been code breaking changes working with the unsupported ChartControl / custom Plot methods - http://www.ninjatrader.com/support/f...ad.php?t=21016
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Rapine Heihei, Today, 08:19 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by Rapine Heihei, Today, 08:25 PM
    0 responses
    6 views
    0 likes
    Last Post Rapine Heihei  
    Started by f.saeidi, Today, 08:01 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by Rapine Heihei, Today, 07:51 PM
    0 responses
    8 views
    0 likes
    Last Post Rapine Heihei  
    Started by frslvr, 04-11-2024, 07:26 AM
    5 responses
    98 views
    1 like
    Last Post caryc123  
    Working...
    X