NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 10-01-2010, 02:18 AM   #1
Mike Winfrey
Senior Member
 
Join Date: Aug 2007
Posts: 310
Thanks: 3
Thanked 2 times in 2 posts
Default EntriesPerDirection

Can EntriesPerDirection be conditionally set in the Initialize() method but using something like this?

if (conditionA) EntriesPerDirection=1;
if (conditionB) EntriesPerDirection=2;
if (conditionC) EntriesPerDirection=3;

Just wondering because I did that last night and it was working fine. This morning I started my computer from a fresh boot and found that is was no longer working.

EntriesPerDirection stays set to 1 regardless what I do to make the other conditions true.

Mike
Mike Winfrey is offline  
Reply With Quote
Old 10-01-2010, 03:58 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

Hi Mike, unfortunately this can't be set dynamically in the OnBarUpdate().
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 10-01-2010, 04:01 AM   #3
Mike Winfrey
Senior Member
 
Join Date: Aug 2007
Posts: 310
Thanks: 3
Thanked 2 times in 2 posts
Default

thank you Bertrand
Mike Winfrey 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
EntriesPerDirection/Scaling in RickStevenson1 Strategy Development 2 03-01-2010 08:46 AM
EntriesPerDirection mballagan Strategy Development 2 11-18-2009 11:08 AM
EntriesPerDirection question.. heech Strategy Development 8 03-27-2009 10:21 AM
EntriesPerDirection Error mdrichards Strategy Development 10 02-02-2009 07:16 AM
Setting EntryHandling || EntriesPerDirection From Program Overridden by BackTest Parameters KBJ Strategy Analyzer 4 05-01-2007 07:24 AM


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