Announcement

Collapse
No announcement yet.

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.

    Comment


      #3
      worked great

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      29 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      46 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Working...
      X