Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Copying C# Files ???

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

    Copying C# Files ???

    Hi,

    Sorry, a basic question but I am just getting started with NT after my departure from TS!

    If I have an Indicator and associated C# file and then copy this C# file to another name as a starting point for a new indicator ... change the logic, variables , properties, etc .. then recompile ...

    Does all the needed NT code in the "NinjaTrader generated code. Neither Change nor Remove" section get recreated for the new indicator? Or, do I have to use the Wizard to start off with each new indicator development?

    Thanks,

    #2
    Hello tornadoatc,

    NinjaTrader will generate the code at the bottom, so you would not need to copy it. With that said, you can create a new indicator with the original code from another indicator by going to the Control Center -> Tools -> Edit NinjaScript -> Indicators. Then double left click on the indicator that you want to have the original code from for example the "KeyReversalUp". It will then open up the source code for the indicator. Right click inside the window and select Save As. Type in a name of your choosing then press "Save". Press the "OK" button as NinjaTrader will automatically rename them for you. Now you have a new indicator based off the base indicator code that you can.
    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    26 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    182 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    335 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    260 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X