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 NullPointStrategies, Today, 05:17 AM
    0 responses
    52 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    43 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    47 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X