Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cannot remove input despite it not being used in any conditions or actions

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

    Cannot remove input despite it not being used in any conditions or actions

    Hi,
    I have one input called "SLPrice", that I cannot remove from the inputs, although I am not using it anymore in the conditions or actions anywhere. All other inputs, that I removed from conditions and actions I had no trouble removing. Only this one stubborn instance cannot be remove. Are there cases know, where this happens? I have looked at the code and the input name shows up in two sections still:

    Click image for larger version

Name:	image.png
Views:	74
Size:	13.8 KB
ID:	1284125Click image for larger version

Name:	image.png
Views:	70
Size:	23.2 KB
ID:	1284126​​

    #2
    Hello philmg,

    Thank you for your post.

    Is this a strategy you created in the Strategy Builder or is it an unlocked script in the NinjaScript Editor? Please try Ctrl + F in the NinjaScript Editor to search the code for SLprice and double-check if it is coming up anywhere else in the strategy.
    If you continue to get a message when trying to remove SLprice, please provide a screenshot of the message.

    I look forward to your reply.

    Comment


      #3
      Hi Emily, yes, it is created with strategy builder and has not been unlocked. I did already search in the code and found the two occurences of the input "SLprice" as shown in my inital post. I am getting this error message:
      Click image for larger version

Name:	image.png
Views:	67
Size:	55.8 KB
ID:	1284161Click image for larger version

Name:	image.png
Views:	66
Size:	45.4 KB
ID:	1284162Click image for larger version

Name:	image.png
Views:	67
Size:	52.9 KB
ID:	1284163

      Comment


        #4
        Hello philmg,

        Thank you for your reply.

        What version of NinjaTrader are you using? This may be found at Control Center > Help > About. Please include the full version number.

        I would also like to test this strategy on my end. Please export it via Control Center > Tools > Export > NinjaScript AddOn then attach the .zip that is generated to your reply so I may import it on my end and test removing SLprice and see if I get the same message.

        I appreciate your patience and look forward to your reply.

        Comment


          #5
          Hi, I am using 8.1.2.1 64-bit . I'd rather not share my strat, thank you.

          Comment


            #6
            Originally posted by philmg View Post
            Hi, I am using 8.1.2.1 64-bit . I'd rather not share my strat, thank you.
            I understand and apologize for any inconvenience. As a test, you could try making a copy of this script in the strategy builder and attempt to remove the input from the copy:
            • From the Welcome screen, hover over this strategy from the list and select "save as" to create a copy
            • Now, in the copied version of the script, please try to remove SLprice
              • If the same message pops up, remove one of the sets from the "Conditions and Actions" page then try to remove SLprice again
              • If the message persists, continue removing one set at a time and attempting to remove SLprice until it is successful. Keep track of which set was removed, as this could be a clue as to which set is causing the message to occur
              • Once it is successful, review that set in the original version of the strategy to see why it might be affecting the removal of SLprice
            Without seeing the strategy itself, this is the best advice I can give. Working with a copy of the strategy is best to prevent any permanent to your original strategy that you spent time and effort to create, though the behavior of the copy should offer valuable information regarding the original version.

            Please let us know if we may be of further assistance.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Today, 05:17 AM
            0 responses
            50 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            126 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            69 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            42 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            46 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X