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 CarlTrading, 03-31-2026, 09:41 PM
          1 response
          47 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          23 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          33 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          51 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          42 views
          0 likes
          Last Post CarlTrading  
          Working...
          X