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

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 CortexZenUSA, Today, 12:53 AM
          0 responses
          1 view
          0 likes
          Last Post CortexZenUSA  
          Started by CortexZenUSA, Today, 12:46 AM
          0 responses
          1 view
          0 likes
          Last Post CortexZenUSA  
          Started by usazencortex, Today, 12:43 AM
          0 responses
          5 views
          0 likes
          Last Post usazencortex  
          Started by sidlercom80, 10-28-2023, 08:49 AM
          168 responses
          2,265 views
          0 likes
          Last Post sidlercom80  
          Started by Barry Milan, Yesterday, 10:35 PM
          3 responses
          11 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Working...
          X