NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support > Historical Version 7 Beta Threads > Version 7 Beta General Questions & Bug Reports

Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports.

 
 
Thread Tools Display Modes
Old 09-10-2010, 04:43 AM   #1
mpe66
Member
 
Join Date: Jun 2009
Posts: 92
Thanks: 1
Thanked 0 times in 0 posts
Default B21 upgrade - All custom indicators gone

I followed the required steps for upgrading. Now all my custom indicators are gone and I can't try importing them again because there are ninja script errors (which weren't there before upgrading). Is this related to new ninja script methods in b21? Is there an easy fix?

Mpe
mpe66 is offline  
Old 09-10-2010, 05:25 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,573
Thanks: 262
Thanked 1,018 times in 999 posts
Default

Mpe, can you please first of all ensure you can compile all script as presently installed right now?

NinjaScript method wise those changes below were introduced with B21 release -

Code:
 
4054
NinjaScript indicators
@PriorDayOHLC/@CurrentDayOHL uses new NinjaScript method 'GetTradingDayFromLocal()' instead of 'GetSessionDate()' which is not public anymore.
 
4055
NinjaScript
GetSessionBar() was not working as expected on some session templates and is now deprecated. Please use new GetDayBar() method instead.
NinjaTrader_Bertrand is offline  
Old 09-10-2010, 06:19 AM   #3
mpe66
Member
 
Join Date: Jun 2009
Posts: 92
Thanks: 1
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_Bertrand View Post
Mpe, can you please first of all ensure you can compile all script as presently installed right now?

NinjaScript method wise those changes below were introduced with B21 release -

Code:
 
4054
NinjaScript indicators
@PriorDayOHLC/@CurrentDayOHL uses new NinjaScript method 'GetTradingDayFromLocal()' instead of 'GetSessionDate()' which is not public anymore.
 
4055
NinjaScript
GetSessionBar() was not working as expected on some session templates and is now deprecated. Please use new GetDayBar() method instead.
Ok, I removed imarketprofile7_b and now my indicators compile and work again. But now I get another problem. The same problem as mjc4118 reported here. I have a custom indicator, vwap oscillator that uses the VWAP indicator. My oscillator is plotted correctly in its own panel, but now the VWAP indicator is overlayed on the price panel for some reason.

Mpe
mpe66 is offline  
Old 09-10-2010, 06:24 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,573
Thanks: 262
Thanked 1,018 times in 999 posts
Default

Mpe, ok good to hear - are you setting the ScaleJustification from any of those indicator programmatically? Any way I could give those are run here on my B21 to check into?

Thanks
NinjaTrader_Bertrand is offline  
Old 09-10-2010, 06:42 AM   #5
mpe66
Member
 
Join Date: Jun 2009
Posts: 92
Thanks: 1
Thanked 0 times in 0 posts
Default

Ok I've attached the scripts. You need to use cvax version of VWAP for it to work. I noticed another problem too. When I try saving my workspace I get a message that nt needs to shut down, email support etc. This doesn't happen when saving a workspace that doesn't contain any of my custom indicators.
Attached Files
File Type: zip MpeVWAPOscillator.zip (9.4 KB, 9 views)
File Type: zip VWAP_cvax.zip (7.5 KB, 8 views)
mpe66 is offline  
Old 09-10-2010, 06:50 AM   #6
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,573
Thanks: 262
Thanked 1,018 times in 999 posts
Default

Thanks - will test them and get back to you.
NinjaTrader_Bertrand is offline  
Old 09-10-2010, 06:55 AM   #7
richbois
Member
 
Join Date: Jan 2009
Posts: 67
Thanks: 7
Thanked 2 times in 2 posts
Default Question on these 2 scripts

When I installed V21 I had problems with the 2 files that are mentioned here

@CurrentDayOHLC and @PriorDayOHLC

I deleted them and all my other scripts compiled fine and all is well now

I then used the old version of these 2 from the back up I had made just before the update.

They also compiled fine

I didnt try to use them

Is this the best solution or is there a better one???????????

Thanks
richbois is offline  
Old 09-10-2010, 06:50 AM   #8
YanCanCook
Member
 
Join Date: Aug 2010
Posts: 30
Thanks: 0
Thanked 0 times in 0 posts
Default

I have this exact problem with my custom indicator. It worked on b20. now it overlays on top of the price chart and hides everything. Needless to say, I was not able to find any workaround and ended up removing my custom indicator.
YanCanCook is offline  
Old 09-10-2010, 08:26 AM   #9
farshadro
Junior Member
 
Join Date: Jan 2008
Posts: 19
Thanks: 0
Thanked 0 times in 0 posts
Default

I found the problem in my case to be "Imarketprofile version 6.5 and 7" custom indicator. I deleted that and everything else is working.
farshadro is offline  
Old 09-10-2010, 10:46 AM   #10
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,573
Thanks: 262
Thanked 1,018 times in 999 posts
Default

Guys, thanks all for reporting in : unfortunately we identified a bug in this area which will be fixed with B22 - please retest your scenrios then.

Thanks for the support in this process
NinjaTrader_Bertrand is offline  
Old 10-25-2010, 02:04 PM   #11
mmtrader
Senior Member
 
Join Date: Oct 2009
Posts: 109
Thanks: 0
Thanked 0 times in 0 posts
Default

Support,

Has this problem been fixed in Beta 22? I understand Beta 21 has some code breaking changes in it which impacts custom indicators,so still using beta 20.

Any simpler way to upgrade to beta 22 or 23 when released,so that previous indicators work? Can you please outline steps needed to prevent problems. Should the @PriorDayOHLC/@CurrentDayOHL indicators be deleted? And should every place where "'GetSessionDate" has to be replaced by GetTradingDayFromLocal ? Any other methods related to session that have to be replaced from beta 21 onwards?


Thanks
mmtrader
mmtrader is offline  
Old 10-25-2010, 02:39 PM   #12
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

mmtrader,

System indicators are always handled by the installer so you don't have to worry about messing with @PriorDayOHLC or @CurrentDayOHL. Custom indicators though, there is no way around it but those will simply need to be modified by either you or the original author. There current versions simply may not work until they have been modified to accomodate the necessary changes that were made.
NinjaTrader_Josh is offline  
Old 10-25-2010, 03:13 PM   #13
mmtrader
Senior Member
 
Join Date: Oct 2009
Posts: 109
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks Josh for clarifying. Is there any possibility that beta 22 be the production release? or there could be a beta 23 in next few weeks?

Thanks
mmtrader
mmtrader is offline  
 

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
B21: GetSessionDateFromLocal zweistein Version 7 Beta General Questions & Bug Reports 1 09-10-2010 02:25 AM
Lost indicators on upgrade Bogan7 Indicator Development 6 07-05-2010 10:17 AM
Indicators are lost in today's 6.5 upgrade Flash Installation and Licensing 10 07-05-2010 12:54 AM
Custom Indicators calling other Custom Indicators DancesWithBears Indicator Development 6 08-21-2009 12:19 PM
Upgrade to newest version--now errors on indicators pkchilly NinjaScript File Sharing Discussion 2 05-15-2008 11:34 AM


All times are GMT -6. The time now is 05:07 AM.