• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Builder creates incorrect indicator signature

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

    Strategy Builder creates incorrect indicator signature

    Hi,
    in debugging an inquiry from a customer, it appears that the Strategy Builder creates an incorrect signature for an indicator it is required to use, if that indicator has properties (used for parameter inputs) that are commented out. The Strategy Builder still uses them in the signature, which is incorrect.
    Example:

    Code:
    //		[TypeConverter(typeof(SoundConverter))]
    //		[NinjaScriptProperty]
    //		[Display(Description = "Select audio alert sound.  Custom sound files must be .wav files and be added to the 'sounds' directory under the Program Files/NinjaTrader 8 install location.", ResourceType = typeof(Custom.Resource), Name = "Continuation", GroupName = "Alerts")]
    //		public string Sound_ExtremeRepeat
    //		{
    //            get { return sound_ExtremeRepeat; }
    //            set { sound_ExtremeRepeat= value; }
    //		}
    The correct signature for the indicator in this example, visible from Intellisense, is 8 parameters. The Strategy Builder has created a signature of ten parameters, the last two of which should not be there.

    Cheers,
    saltminer

    #2
    Hello saltminer,

    Thanks for writing in.

    Could you provide me with a sample indicator and sample strategy that exhibit this behavior so I may test it on my end?

    Please export the strategy and indicator and send the zip file as an attachment to platformsupport[at]ninjatrader[dot]com. Please reference the ticket number 1671518 and include the message "Attention Jim" and I will follow up with you via email.

    To export a NinjaScript from NinjaTrader 8, please do the following:
    • From the Control Center window select Tools > Export > NinjaScript Add-On...
    • Click Add > Select the indicator/strategy > OK > Export.
    • Choose a location to save the file.
    • Then attach that file you saved.


    I look forward to assisting you further.
    JimNinjaTrader Customer Service

    Comment


      #3
      Hi Jim,
      in preparing the resources to send to you I have determined the problem is a custom add-on that was adding parameters to the signature within Builder.
      So, false alarm.

      Cheers,
      saltminer

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by bouncetherubble, Yesterday, 06:56 PM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_ChristopherS  
      Started by frantic, Today, 06:37 AM
      0 responses
      2 views
      0 likes
      Last Post frantic
      by frantic
       
      Started by sergey_z, Today, 05:44 AM
      0 responses
      6 views
      0 likes
      Last Post sergey_z  
      Started by NinjaCustomer, Today, 12:29 AM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_ChrisSch  
      Started by ronaldgreene828, Yesterday, 07:50 PM
      1 response
      15 views
      0 likes
      Last Post NinjaTrader_EricB  
      Working...
      X