![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#46 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
|
You will then need to install the file manually and compile to see where the duplicates were found - it could also be it needs code changes to make it ready for NT7, this would be shown after a manual install / compile as well.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#47 |
|
Senior Member
Join Date: Jan 2010
Posts: 182
Thanks: 24
Thanked 1 time in 1 post
|
What is the procedure for doing that please?
|
|
|
|
|
|
#48 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
|
You would need to copy the cs file contained in the zip to the Documents > NinjaTrader7 > bin > custom > indicator folder and then compile your files by opening any script in NT's programming editor and pressing F5 then. It will list the offending code lines / section then at the bottom of the editor.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_Bertrand for this post: |
|
|
|
#49 |
|
Senior Member
Join Date: Jan 2010
Posts: 182
Thanks: 24
Thanked 1 time in 1 post
|
Here are the active ingredients that are causing the errors with I-MIDAS...
Code:
sessionend = new DateTime(Bars.SessionBegin.Year, Bars.SessionBegin.Month, Bars.SessionBegin.Day, Bars.SessionEnd.Hour, Bars.SessionEnd.Minute, Bars.SessionEnd.Second); if (startTime.TotalMinutes == 0 || ToTime(startTimeDate) < ToTime(Bars.SessionBegin)) startTimeDate = new DateTime(Bars.SessionBegin.Year, Bars.SessionBegin.Month, Bars.SessionBegin.Day, startTime.Hours, startTime.Minutes, startTime.Seconds); endTimeDate = new DateTime(Bars.SessionBegin.Year, Bars.SessionBegin.Month, Bars.SessionBegin.Day, endTime.Hours, endTime.Minutes, endTime.Seconds); if (startTime.TotalMinutes == 0 || ToTime(startTimeDate) < ToTime(Bars.SessionBegin)) Session Begin is the problem. Is that a change from NT6.5 to NT7?
Last edited by RDPoS; 11-04-2011 at 09:15 AM.
|
|
|
|
|
|
#50 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
|
There were code breaking changes going to NT7 in those methods, please give the attached version a try, just copy over your present cs file in the indicator folder again and then recompile everything. I can't give credit to the source since I don't remember where it's taken from but seems to work fine for me.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#51 |
|
Senior Member
Join Date: Jan 2010
Posts: 182
Thanks: 24
Thanked 1 time in 1 post
|
It looks like all of our MIDAS problems have been solved by the Gentlemen at Ninjatrader.....
http://www.ninjatrader.com/support/f...ighlight=midas |
|
|
|
|
|
#52 | |
|
Senior Member
|
Quote:
But, it is a flaw in the code. Why not ping the developers? They have to anchor off the last bar if bar times are the same, not the first bar; that is only reasonable. After all, the last bar in the chain IS the most recent bar with that time stamp. It should be a simple fix. Maybe we should open a separate thread for this, as it is an important issue, and really a different indicator from the one that this thread was discussing?
Last edited by koganam; 11-23-2011 at 06:26 AM.
|
|
|
|
|
|
The following user says thank you to koganam for this post: |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Are all indicators published in TASC coded for Ninjatrader | verge | Indicator Development | 9 | 03-06-2009 07:10 AM |
| first successful strategy coded | junkone | Strategy Development | 3 | 12-15-2008 06:02 AM |
| NT 7 indicator question | cirion | Indicator Development | 2 | 11-13-2008 04:48 PM |
| Can anyone turn these into a NT indicator? | Mike_32 | NinjaScript File Sharing Discussion | 26 | 06-04-2008 12:36 PM |
| Volume Bars color-coded according to Price change | Lost Trader | Indicator Development | 6 | 10-23-2007 11:15 PM |