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 traderqz, Today, 12:06 AM
      2 responses
      3 views
      0 likes
      Last Post traderqz  
      Started by RideMe, 04-07-2024, 04:54 PM
      5 responses
      28 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by f.saeidi, Today, 08:13 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by DavidHP, Today, 07:56 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by kujista, Today, 06:23 AM
      3 responses
      11 views
      0 likes
      Last Post kujista
      by kujista
       
      Working...
      X