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 NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          53 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          130 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          70 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          44 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          49 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X