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

Strategy compile error after indicator conversion

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

    Strategy compile error after indicator conversion

    Having trouble compiling strategy when using an indicator converted from NT7.
    I converted the Inversefishertransform indicator from NT7 to NT8 using the process posted by wbennettjr (http://ninjatrader.com/support/forum...ad.php?t=79551 on 10/23/15 10:49)

    The indicator compiles and plots fine.
    Would like to use it in a strategy but getting error CS0118 ... states that the indicator is a type but used like a variable.
    I have attached the indicator and the strategy called test4
    Appreciate any help
    Thank you
    Attached Files

    #2
    Hello yngtrader,

    Thanks for writing in today.

    The error you were encountering was from the NinjaScript editor not adding the NinjaScript generated code to the bottom of your indicator. This can happen when an indicator is run through a converter and a few extra lines are added to the end of the script.

    To correct this, please delete any additional lines from your indicator so the end of file ends with the last curly brace "}". Once you hit compile you will witness the region "NinjaScript generated code. Neither change nor remove." gets added to the indicator script.

    The indicator will now be built correctly and you may use it as you have in your strategy.

    Please let me know if I may be of further assistance.
    JimNinjaTrader Customer Service

    Comment


      #3
      worked great

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by helpwanted, Today, 03:06 AM
      1 response
      16 views
      0 likes
      Last Post sarafuenonly123  
      Started by Brevo, Today, 01:45 AM
      0 responses
      11 views
      0 likes
      Last Post Brevo
      by Brevo
       
      Started by aussugardefender, Today, 01:07 AM
      0 responses
      6 views
      0 likes
      Last Post aussugardefender  
      Started by pvincent, 06-23-2022, 12:53 PM
      14 responses
      244 views
      0 likes
      Last Post Nyman
      by Nyman
       
      Started by TraderG23, 12-08-2023, 07:56 AM
      9 responses
      387 views
      1 like
      Last Post Gavini
      by Gavini
       
      Working...
      X