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 09-09-2010, 12:44 PM   #1
ThatManFromTexas
Senior Member
 
Join Date: Apr 2008
Posts: 146
Thanks: 8
Thanked 2 times in 2 posts
Default Error compiling v7

I am trying to convert a V6 indicator to V7. I get a compile error CS1061 on lines 570 and 571.

{
if (ChartControl != null
&& Bars != null
&& Bars.Count > 0
&& Bars.MarketData != null
&& Bars.MarketData.Connection.PriceStatus == Cbi.ConnectionStatus.Connected
Line 570 && ((ChartControl.SessionBegin.TimeOfDay == ChartControl.SessionEnd.TimeOfDay)
Line 571 || (ChartControl.SessionBegin.TimeOfDay <= Now.TimeOfDay && ChartControl.SessionEnd.TimeOfDay >= Now.TimeOfDay)))
return true;

return false;
}

Where can I find information to resolve this?
ThatManFromTexas is offline  
Reply With Quote
Old 09-09-2010, 01:07 PM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello ThatManFromTexas,

You can see code breaking changes from versoin 6.5 to version 7 here.

ChartControl is not supported NinjaScript. Unfortunately we can't tell you exactly how to fix your compile errors here. It likely has to do with the change from session times to the new session templates in NinjaTrader 7.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 09-10-2010, 08:48 AM   #3
ThatManFromTexas
Senior Member
 
Join Date: Apr 2008
Posts: 146
Thanks: 8
Thanked 2 times in 2 posts
Default

When I first started with V6 there were tutorials and videos to help understand NTv6.
Where is that type of information for V7?

Where is documentation regarding new session templates in NinjaTrader 7?

How much longer will V6 be supported?
ThatManFromTexas is offline  
Reply With Quote
Old 09-10-2010, 08:55 AM   #4
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello,

Thanks for the reply. We don't plan to stop supporting NinjaTrader 6.5 anytime soon.

Yes, we've updated documentation and videos for version 7. You can view the online version of the help guide here:
http://www.ninjatrader.com/support/h..._version_7.htm

The complete V7 video library is here:
http://www.ninjatrader.com/support/h...eo_library.htm

You can read about session tempaltes here:
http://www.ninjatrader.com/support/h...on_manager.htm
NinjaTrader_RyanM 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
MRO error in v7, but not in 6.5 snaphook Indicator Development 7 06-02-2010 09:31 AM
All Strategies Error Compiling BigAAPL Automated Trading 2 11-12-2009 05:39 AM
compiling error after update makra081 Installation and Licensing 8 08-31-2009 04:47 AM
Simple Compiling Error texasnomad General Programming 8 10-22-2008 01:31 PM
Compiling Error pjwinner Indicator Development 2 09-26-2008 10:32 AM


All times are GMT -6. The time now is 10:56 PM.