![]() |
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
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: May 2009
Posts: 283
Thanks: 6
Thanked 2 times in 2 posts
|
Hello Support,
I am wondering, 1. for Forex instrument, does EntriesPerDirection parameter need to be 10 to 100 thousands as well like the quantity? 2. If I want to limit EntriesPerDirection, can I just do it at Initialize or it needs to be processed at each OnBarUpdate? 3. Is Initialize method called twice? when user open the dialog box and when user click ok on the dialog box ? Thanks. Regards, EdwardK |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Hello Edwardk,
1) No, EntriesPerDirection is set by the entry signal names. It's not connected to order quantity. The quantity of orders is set within the Enter() methods. There is not a different convention used for FOREX compared to other markets. 2) You can only set EntriesPerDirection in Initialize(). 3) Yes, Initialize() is called more than once. If you want to check exactly when it's called, add a print statement and you can check in tools > output window each time. Note that it's called for every strategy you have, not just the one you're using. Print("Initialize Called " + DateTime.Now);
Ryan M
NinjaTrader Customer Service
Last edited by NinjaTrader_RyanM; 12-08-2010 at 11:12 AM.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| EntriesPerDirection property | pureflame | Strategy Development | 1 | 10-12-2010 05:18 AM |
| EntriesPerDirection | Mike Winfrey | Strategy Development | 2 | 10-01-2010 04:01 AM |
| 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 Error | mdrichards | Strategy Development | 10 | 02-02-2009 07:16 AM |