Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Disable indicator after a certain date

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

    Disable indicator after a certain date

    Hi,

    I am wanting to ship a beta of some software, what is the best method of putting logic that will make the indicator not work after a certain date.

    I bought the code obfuscation utility already.


    Thank you in advance.

    #2
    Hello KhaosTrader,

    The best way to go about this would be to become part of NinjaTraders Vendor program in which license keys could be disabled after a certain time. If you’re interested in this please let us know and I can have someone from business development reach out with details.

    Another method would be to add a line to the top of the code such as,
    Code:
    if (Time[0].Date > new DateTime(2017, 6, 10)) return;
    Which if the current date was greater than the date of the 10th of June, the script would return. A clever user however could work around this.

    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Hi, ok when you say put that line in, do you recommend putting it in onthe "onbarupdate" area?
      Thank you.

      Comment


        #4
        KhaosTrader,

        Correct. The moment that becomes true, no further logic in the test will be ran.

        Please let us know if you need further assistance.
        Alan P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        581 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        338 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        554 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        552 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X