![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Aug 2007
Posts: 310
Thanks: 3
Thanked 2 times in 2 posts
|
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 |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
|
Hi Mike, unfortunately this can't be set dynamically in the OnBarUpdate().
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Aug 2007
Posts: 310
Thanks: 3
Thanked 2 times in 2 posts
|
thank you Bertrand
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |