NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 01-29-2008, 10:50 AM   #1
arilano
Member
 
Join Date: Nov 2007
Posts: 34
Thanks: 0
Thanked 0 times in 0 posts
Default Problem compiling after installing new beta

Hi

I have recently upgraded to the latest beta because i was having some connectivity issues these seem to be fixed now

but when i try to compile my strategy I get an error in the code saying

Type\@BarsTypes.cs 'NinjaTrader.Data.Session.IsBeginOrEndSet' is a 'property' but is used like a 'method' CS0118 - click for info 200 23

i think this is because before i had a section of code to try and control daily risk parameters like so

if (Bars.FirstBarOfSession)
{
// Store the strategy's prior cumulated realized profit and number of trades
priorTradesCumProfit = Performance.AllTrades.TradesPerformance.Currency.C umProfit;

numberOfTrades=
0;
}



if (priorTradesCumProfit - Performance.AllTrades.TradesPerformance.Currency.C umProfit > 500)
return;

elseif(priorTradesCumProfit - Performance.AllTrades.TradesPerformance.Currency.C umProfit < 500)
{


some help would be greatly appreciated
Thanks in advance


arilano is offline  
Reply With Quote
Old 01-29-2008, 11:11 AM   #2
NinjaTrader_Christian
NinjaTrader Development
 
NinjaTrader_Christian's Avatar
 
Join Date: Feb 2007
Location: Bamberg, , Germany
Posts: 279
Thanks: 0
Thanked 2 times in 2 posts
Default

Hi !

Please deinstall NinjaTrader 6.5 and manually delete the content of folder '<user>\My Documents\NinjaTrader 6.5\bin\Custom\Type'.

Then reinstall the latest beta of NinjaTrader (6.5.0.8).

Kind regards,
Christian
NinjaTrader_Christian is offline  
Reply With Quote
Old 01-29-2008, 11:23 AM   #3
arilano
Member
 
Join Date: Nov 2007
Posts: 34
Thanks: 0
Thanked 0 times in 0 posts
Default

once again very swift and accurate support

Thanks and regards to all the NT team
arilano 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
Could not compile after installing beta 4 (install dir) Pete S Historical NinjaTrader 6.5 Beta Threads 4 12-01-2007 07:43 AM
NT 6 Beta Zen-Fire problem funk101 Connecting 6 03-28-2007 10:51 AM
Ninja Trader 6 beta 4 startup problem bmaltz Connecting 3 01-03-2007 04:37 PM
V 5.1.1.1 Beta Problem - hold button reverses buy/sell columns dynosaratoga Installation and Licensing 7 02-17-2006 03:29 AM
Version 5.1.1.1 Beta problem guy Installation and Licensing 4 02-02-2006 12:38 AM


All times are GMT -6. The time now is 04:46 AM.