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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      87 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      132 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      65 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      118 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      67 views
      0 likes
      Last Post PaulMohn  
      Working...
      X