NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 11-07-2007, 04:30 AM   #1
ATI user
Senior Member
 
Join Date: Apr 2006
Location: , ,
Posts: 1,316
Thanks: 1
Thanked 7 times in 7 posts
Default IsValidLicense

I was reading Best Practices in 6.5 help and noticed the following.

Example License Check

protected override void OnBarUpdate()
{
// Make sure that your license check is performed once and maintains the check state
if (!IsValidLicense())
return;
}

I tried it and got a compile error "The name IsValidLicense does not exist in the current context". Am I using it incorrectly?

I currently use VendorLicense(); in my Initialize method which works fine. Should I also be using IsValidLicense in my OnBarupdate method?
ATI user is offline  
Reply With Quote
Old 11-07-2007, 06:28 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

This information only applies to registered 3rd party vendor. Please contact "sales AT ninjatrader DOT com" for hwo to be come a registered 3rd party vendor.
NinjaTrader_Dierk is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 01:45 PM.