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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    164 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    85 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    127 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    207 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    185 views
    0 likes
    Last Post CarlTrading  
    Working...
    X