Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Expiration Date

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

    Strategy Expiration Date

    Hello,

    I need help making a check for my strategy, essentially I want to check if 2 conditions are true in order to be able to run my strategy. I want to check if today's date is later than any date I set (ex: 2/25/2022) AND check their machine id to see if it matches a string I can enter in.

    So I can give this strategy in a protected assembly, it has to be a specific machine id in order to run and it cant be later than the expiration date. This way I can distribute it to testers and only their machine id can use it for x period of days.

    How would this code look?

    Thank you!!

    #2
    Hello digo098,

    See this forum thread about comparing Time[0] to a DateTime.
    https://ninjatrader.com/support/foru...20#post1186720

    At this time we do not publicly document machine id or license checking through NinjaScript. If you are a vendor in our EcoSystem, our Business Development may be able to provide further direction for how a license type, enabled license, machineid or similar can be detected through NinjaScript at their discretion.

    If you are interested in becoming a vendor and using NinjaTrader's Vendor Licensing system, please contact our Ecosystem team at info [at] ninjatraderecosystem [dot] com.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    47 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X