Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Copying from another indicator

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

    Copying from another indicator

    Hi

    If I start an indicator from the wizard it shows up on both the indicator list under editor and also on the list within a chart.

    I'm also trying to use the candlestick pattern indicator to create alternative scenarios that can be called from another indicator. The problem is that when I copy the code and then give the indicator a name, say "patternBase", it shows up as PatternBase on editor but reverts back to candlestick pattern under the chart list of indicators.

    I guess two questions
    1) am I copying right - select all, copy and paste over new indicator code (deleting all automatically generated code from Wizard)
    2) why is the name reverting back to CandleStickPattern in the chart

    Many thanks for any help you can offer

    #2
    Hello fluke,

    Thank you for your note.

    Below is a link to a video that demonstrates copying a NinjaScript.


    Open the script, right-click the editor, select Save As, give a new name.

    Your copy is likely using the same string in the Name property set in State.SetDefaults.

    Below I am also providing a link to a forum post with helpful information about getting started with NinjaScript.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks Chelsea worked a treat

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      44 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      54 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      34 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      94 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      56 views
      0 likes
      Last Post PaulMohn  
      Working...
      X