![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: May 2011
Posts: 13
Thanks: 0
Thanked 1 time in 1 post
|
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 |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
|
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.
Joydeep M.
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2011
Posts: 13
Thanks: 0
Thanked 1 time in 1 post
|
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
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
|
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.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: May 2011
Posts: 13
Thanks: 0
Thanked 1 time in 1 post
|
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 dont 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"? |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Sep 2008
Posts: 543
Thanks: 80
Thanked 187 times in 131 posts
|
|
|
|
|
|
|
#7 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
|
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.
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |