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

Cleaning up Indicator -- Compile error CSO266

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

    Cleaning up Indicator -- Compile error CSO266

    my first attempt to clean-up an indicator (or do any type of programming)

    it would appear im only getting 2 error codes (for now) ... CS0266 & CS1501

    i have search the forums ... and the examples ive come across ... only made matter worse.

    solving these two error code issues may only trigger something else .. but gotta cross this bridge before the next error codes pop up ...

    thanks...

    attached is foto
    Attached Files

    #2
    Hello pfsmedical,
    Thanks for your post.

    What is your ultimate goal with this modification?
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      thanks for the reply ....

      well ... the original indicator has too much "fluff" .. too many parameters ...(17 to be exact)

      ultimately ... im just looking for divergence on the fast stochastics D ... the indicator works pretty well in 7 ... but not so much for me ... in 8 (im unable to get an audio alert) .. so i kinda figured trimming the "fat" ... may have some benefit
      Attached Files

      Comment


        #4
        Well the first thing I see is you are using the built in method Stochastic() which should not be used this way.

        If you simply want to remove the extra strategy parameters to fix some clutter you could add the Browsable attribute above each public property you wanted to remove.
        Code:
        [Browsable(false)]
        Help Guide - BrowsableAttribute
        Josh G.NinjaTrader Customer Service

        Comment


          #5
          thanks for the suggestion .. i was just gonna give this programming a spin around the block .. and see if it was worth me investing several solar days just to clean an indicator ....

          im still profitable using 7 the rest of this year ... and will look again at 8 next year

          thanks...

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by bortz, 11-06-2023, 08:04 AM
          47 responses
          1,610 views
          0 likes
          Last Post aligator  
          Started by jaybedreamin, Today, 05:56 PM
          0 responses
          9 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          19 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by Jon17, Today, 04:33 PM
          0 responses
          6 views
          0 likes
          Last Post Jon17
          by Jon17
           
          Started by Javierw.ok, Today, 04:12 PM
          0 responses
          16 views
          0 likes
          Last Post Javierw.ok  
          Working...
          X