Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trying to load an licensed indicator in strategy.

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

    Trying to load an licensed indicator in strategy.

    Hello,

    I'm trying to load a licensed/protected indicator in my strategy.

    It's a simple indicator nothing fancy. When I compile my strategy, I get :

    "No overload for method 'myProtectedIndicator' takes 0 arguments."




    My code has just the following:

    private myProtectedIndicator v_procIndicator;


    .
    .
    .
    v_procIndicator = myProtectedIndicator().Close[0];


    All I'm trying to do is load the indicator so that I can look for crosses and other values for now.

    Do you have sample ?



    I am already able to load simple EMA's and other built in indicators.


    #2
    Hello priceisking,

    The error is letting you know you are not using the correct overload parameters.

    What are the overload parameters for this script?

    Have you reached out to the vendor or author that distributes this script for assistance on how to call their script?


    As an example, the EMA has an int Period as an overload parameter, and a second overload that accepts the input series.

    EMA(int Period)
    EMA(14)
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      There are no input parameters to specify for the indicator. Only parameters available are plot colors etc.. No period or anything.

      Comment


        #4
        Hello priceisking,

        The error message seems to imply that there are parameters.
        "No overload for method 'myProtectedIndicator' takes 0 arguments."

        This error message means it is not able to use 0 parameters..

        Are you 100% certain this script has no public properties?

        Is this a script you have written or one you have imported?

        If this was imported, did the original author tell you that this script has no public properties?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          It was something I had imported. I passed in the parameters after reaching out to the vendor.

          (System.Windows.Media.Brushes.DodgerBlue,System.Wi ndows.Media.Brushes.Firebrick );


          That did the trick. Thank you so much.

          Comment

          Latest Posts

          Collapse

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