NinjaTrader Support Forum  
X

Attention!

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


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 11-03-2011, 06:50 AM   #46
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
Default

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.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 11-03-2011, 09:47 AM   #47
RDPoS
Senior Member
 
Join Date: Jan 2010
Posts: 182
Thanks: 24
Thanked 1 time in 1 post
Default

What is the procedure for doing that please?
RDPoS is offline  
Reply With Quote
Old 11-03-2011, 09:53 AM   #48
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
Default

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.
NinjaTrader_Bertrand is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Bertrand for this post:
Old 11-04-2011, 09:12 AM   #49
RDPoS
Senior Member
 
Join Date: Jan 2010
Posts: 182
Thanks: 24
Thanked 1 time in 1 post
Default

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.
RDPoS is offline  
Reply With Quote
Old 11-04-2011, 09:20 AM   #50
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
Default

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.
Attached Files
File Type: cs I_Midas.cs (13.6 KB, 74 views)
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 11-14-2011, 08:53 AM   #51
RDPoS
Senior Member
 
Join Date: Jan 2010
Posts: 182
Thanks: 24
Thanked 1 time in 1 post
Default

It looks like all of our MIDAS problems have been solved by the Gentlemen at Ninjatrader.....

http://www.ninjatrader.com/support/f...ighlight=midas
RDPoS is offline  
Reply With Quote
Old 11-23-2011, 06:18 AM   #52
koganam
Senior Member
 
Join Date: Feb 2008
Location: Durham, North Carolina, USA
Posts: 3,214
Thanks: 24
Thanked 1,229 times in 1,000 posts
Send a message via Skype™ to koganam
Default

Quote:
Originally Posted by RDPoS View Post
I found a flaw in the MIDAS Explorer "MIDAS Touch" indicator when launching from a range chart.

Using a 3-range chart on ES from today, I launched 2 MIDAS curves. A red curve from the peak at 18:59:33, and a green curve from the minimum corresponding to the 8th bar of the timeframe 20:12:12.

Note that MIDAS launched the curve from the 1st bar of the 20:12:12 timeframe, and not the 8th, yielding an incorrect curve result.

The fix via NT would be to further subdivide bars to actually have a count, when there are more bars generated than 1 per second. So the first bar of 20:12:12 would be called 20:12:12:1 and the 8th bar of 20:12:12 would be called 20:12:12:8.

Not even trying to fix it to the low will work as it just sees the first bar of any one second interval.

Any way to correct this limitation?
In the meantime, why not fix it to the bar after the low bar. That would give a more reasonable anchor point than what you show.

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.
koganam is offline  
Reply With Quote
The following user says thank you to koganam for this post:
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
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


All times are GMT -6. The time now is 01:17 AM.