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

Preprocessor Directives Support

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

    Preprocessor Directives Support

    Hello,

    Could the use of preprocessor directives cause an issue with NT8?
    I saw on an old post that it was not supported, but I see it compiles and runs without problem.

    Regards,

    #2
    Hello Waxavi,

    Thank you for your note.

    I can confirm pre-processor directives are not supported and will cause issues with NinjaScript, specifically with things like autogenerated code. For example, if you were to wrap your properties definitions in an #if / #endif block, and #undef a bool tested in that #if statement, the NinjaScript generated code will not update accordingly, which will trigger a range of compile errors. Depending on your use case, it may work, but it wouldn't be something that we would be able to supply assistance with.

    That being said, I have added a vote for you to feature request SFT-602, 'Allow NS auto-generated code to respond to pre-processor directives in an NS script'.

    As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted in the Release Notes page of the Help Guide.

    Release Notes — https://ninjatrader.com/support/help...ease_notes.htm

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CommonWhale, Today, 09:55 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by Gerik, Today, 09:40 AM
    2 responses
    7 views
    0 likes
    Last Post Gerik
    by Gerik
     
    Started by RookieTrader, Today, 09:37 AM
    2 responses
    12 views
    0 likes
    Last Post RookieTrader  
    Started by alifarahani, Today, 09:40 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by KennyK, 05-29-2017, 02:02 AM
    3 responses
    1,285 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Working...
    X