NinjaTrader Support Forum  

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

General Programming General NinjaScript programming questions.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

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 07:44 AM.