NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 06-02-2012, 07:43 PM   #1
zoom zoom 126
Junior Member
 
Join Date: May 2011
Posts: 13
Thanks: 0
Thanked 1 time in 1 post
Default trial expiration on my code

I have been working to try to send my custom indicator to a few friends but want to protect it by having an expiration date. I have used the following code successfully in my indicator:

protected override void OnBarUpdate()
{
DateTime endDate = new DateTime(2012, 6, 30);
if( DateTime.Now > endDate) {return;}
}

but when i try to put the same code into a bar type vs an indicator type, i can get it to compile, but it is inert. I am not using the OnBarUpdate command in my bar type code, so I need a little help from somebody, please.

Thanks.

zoom zoom
zoom zoom 126 is offline  
Reply With Quote
Old 06-04-2012, 04:20 AM   #2
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello zoom zoom 126,
Please make sure you have restarted NinjaTrader after you have compiled the BarType to make the code changes effective.

Please let me know if I can assist you any further.
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 06-04-2012, 04:37 AM   #3
zoom zoom 126
Junior Member
 
Join Date: May 2011
Posts: 13
Thanks: 0
Thanked 1 time in 1 post
Default

I did close down and relaunched the platform and it does not work. I t does appear in the available bar types in the drop down menu and that bar type does work properly; however, when i put an expiration of (2012, 5, 21) in the code snippet i posted, it continues to plot the bars all the way through to the current date.
Last edited by zoom zoom 126; 06-04-2012 at 04:50 AM. Reason: i misspoke
zoom zoom 126 is offline  
Reply With Quote
Old 06-04-2012, 06:09 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

zoom zoom, correct the custom bars type would not have an OnBarUpdate() section that would allow you to check the bars timestamp and pass or return out of it, for indicators or strategy scripts this should work normally.

Unfortunately we cannot offer support for the creation or protection of custom bars types, however this is on our list for future consideration.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 06-04-2012, 07:57 PM   #5
zoom zoom 126
Junior Member
 
Join Date: May 2011
Posts: 13
Thanks: 0
Thanked 1 time in 1 post
Default

It wudda been nice to know this back on April 24 when I first asked the question – and now – 37 email exchanges later – ooops, sorry, we don’t have that capability.

Thanks.

PS Email support – although free – is very frustrating. IMHO.

PPS -- How do other third party developers like RJay's Hybrid Renko Bars do this if it "isn't possible"?
zoom zoom 126 is offline  
Reply With Quote
Old 06-04-2012, 09:17 PM   #6
Radical
Senior Member
 
Join Date: Sep 2008
Posts: 543
Thanks: 80
Thanked 187 times in 131 posts
Default

Quote:
Originally Posted by zoom zoom 126 View Post
PPS -- How do other third party developers like RJay's Hybrid Renko Bars do this if it "isn't possible"?
Probably with their own code rather than Ninjascript.
Radical is online now  
Reply With Quote
Old 06-05-2012, 04:33 AM   #7
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

zoom zoom, sorry for the frustration - can you please PM me the ticket # you worked with us under before?

We support a powerful licensing scheme for custom indicators and strategies, unfortunately it would not cover custom bars types at this point. However development is aware of this request by our partners / 3rd party developers and we have added it to our product management feature tracking list for future consideration.
NinjaTrader_Bertrand 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
the same chart for different expiration dates akozin Charting 6 05-21-2012 09:05 AM
connection is lost after expiration BoyPlunger Installation and Licensing 1 05-10-2012 03:32 PM
Exclude expiration WhoKnows Strategy Development 2 07-23-2009 05:03 AM
Expiration time alekstraj Automated Trading 1 01-10-2008 06:58 AM
Futures Symbol - Name - Expiration... funk101 Suggestions And Feedback 1 10-12-2007 04:42 AM


All times are GMT -6. The time now is 07:43 PM.