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

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 ghoul, Today, 06:02 PM
      2 responses
      12 views
      0 likes
      Last Post ghoul
      by ghoul
       
      Started by jeronymite, 04-12-2024, 04:26 PM
      3 responses
      44 views
      0 likes
      Last Post jeronymite  
      Started by Barry Milan, Yesterday, 10:35 PM
      7 responses
      20 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by AttiM, 02-14-2024, 05:20 PM
      10 responses
      180 views
      0 likes
      Last Post jeronymite  
      Started by DanielSanMartin, Yesterday, 02:37 PM
      2 responses
      13 views
      0 likes
      Last Post DanielSanMartin  
      Working...
      X