Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Copying existing indicators

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

    Copying existing indicators

    I'm having trouble creating a new indicator from an existing one.

    I wanted to create a new custom indicator called GannFanTest2, so
    I opened up an existing indicator (I randomly chose the RegressionChannel indicator), and stripped out basically all the code and wrote in my simple changes (I've attached the new CS file here).

    Now since the new indicator didn't require any properties, I commented out the one property that had been defined in the RegressionChannel code. The name of that property was "Period".

    Now, when I compile the new indicator, it errors out, because the NinjaScript code that has been automatically added to the indicator is still looking for that old property "Period" to be defined. I believe this was also a problem under v6.5.
    Attached Files

    #2
    In 6.5, if I commented a range in properties with /* */ I would get the error but if commenting every line with // I would not get the error. Doesn't seem to be the case here.
    eDanny
    NinjaTrader Ecosystem Vendor - Integrity Traders

    Comment


      #3
      Yes, commenting out by "//" should do the trick.

      Comment


        #4
        Originally posted by NinjaTrader_Dierk View Post
        Yes, commenting out by "//" should do the trick.
        That commenting method was used in the attached CS file, but it did not solve the compile-time problem.

        Comment


          #5
          I see. This is a bug which will be fixed with next update. Thanks for reporting.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          605 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          351 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          560 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          561 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X