Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Referenced indicators erroring out

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

    Referenced indicators erroring out

    Hi,
    I converted my NT7 indicators to NT8 using this handy utility:
    http://ninjatrader.com/support/forum...ad.php?t=79551 Thank you wbennettjr.


    Now all my indicators that reference another indicator's bool variable or have a test condition error out like this one:
    // price above trendline
    && AutoTrendH(true,true,5).TrendPrice < Close[0]
    The error thrown is CS0118, ..<name of indicator> is a 'type' but is used like a 'variable'

    Any ideas?

    #2
    Hello,

    Thank you for the question.

    I would be unsure what the code changes were that the linked converter made, but it seems there is some errors in the resulting code it generated.

    Did you convert multiple items and then just place them into the respective folders or had you done these individually to ensure they worked correct? By the error it may be that the NinjaScript generated code that goes in the bottom of each indicator is missing.

    In general I would not suggest using a converter as you miss out on learning the code changes if you will be programming going forward these are pretty key points.

    Otherwise if you want to use a converter, you may need to reply back to the author to find the reason for this happening with the converter, as for your current code without a sample of the indicators I would not really be able to say what the exact problem is based on what was provided.

    Do you have any simple examples you could create that demonstrate the error? If so that would likely be the easiest way to answer what may be happening here.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by fx.practic, 10-15-2013, 12:53 AM
    5 responses
    5,404 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by Shai Samuel, 07-02-2022, 02:46 PM
    4 responses
    95 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by DJ888, Yesterday, 10:57 PM
    0 responses
    8 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by MacDad, 02-25-2024, 11:48 PM
    7 responses
    159 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Yesterday, 09:29 PM
    0 responses
    8 views
    0 likes
    Last Post Belfortbucks  
    Working...
    X