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 > Strategy Development

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

Reply
 
Thread Tools Display Modes
Old 04-13-2012, 09:16 AM   #1
coolmoss
Senior Member
 
Join Date: Dec 2007
Posts: 365
Thanks: 36
Thanked 28 times in 24 posts
Default How markets orders work on sim101

I have a strategy which submits a market order to buy, once price is X ticks above the prior bar. The strategy is COBC=false, so my understanding is that once the High[0] + X Ticks is touched, a market order is submitted to Sim101.

Is NT filling this simulated order based on some sort of algorithm? Where the fills actually occur are usually several ticks worse or better than one would expect. On the sim account, I would have though the market order fills would be either exactly at the submitted price or perhaps 1 tick worse to account for a minimal bid/ask spread.

Thanks for clarifying.
coolmoss is offline  
Reply With Quote
Old 04-13-2012, 09:23 AM   #2
NinjaTrader_Matthew
NinjaTrader Customer Service
 
NinjaTrader_Matthew's Avatar
 
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,781
Thanks: 159
Thanked 565 times in 556 posts
Default

Hello,

The NinjaTrader simulation engine is designed to operate as realistically as possible.


From our Help Guide:

Quote:
http://www.ninjatrader.com/support/h...simulation.htm
NinjaTrader provides a state of the art internal simulation engine that can be used to test trading ideas and hone your skills. The simulation engine is not a simple algorithm that fills your order once the market trades at your order price. The engine uses a scientific approach to determine fill probability by including a number of variables including: ask/bid volume, trade volume, time (to simulate order queue position), and random time delays for switching between order states.
You can decrease this type of slippage by enforcing immediate fills in the Sim101 account. Please take the following steps:
  • From the Control Center, click Tools > Options to open the options menu.
  • In the Options menu, navigate to the Simulator tab.
  • In the simulator tab of the options menu, check the box labeled 'Enforce Immediate Fills'.
  • Click OK to exit the options menu for the change to be applied.
Please let me know if there is anything else I can do for you.
NinjaTrader_Matthew is offline  
Reply With Quote
Old 04-13-2012, 10:13 AM   #3
coolmoss
Senior Member
 
Join Date: Dec 2007
Posts: 365
Thanks: 36
Thanked 28 times in 24 posts
Default

Very helpful

Thanks much for such a complete answer.
coolmoss 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
automated trading strategies do not work for sim101? xyz123 Automated Trading 7 01-25-2012 01:39 AM
Sim101 Work Arounds for Gain DangerBoy Miscellaneous Support 1 09-22-2009 07:47 AM
Avoiding rapid whipsaw orders in non-trending markets Elliott Wave Strategy Development 7 04-05-2009 02:59 PM
Sim101 account and stop orders moscu Automated Trading 1 10-25-2008 08:32 AM
SUbmitting orders for closed markets Futures_Shark Connecting 3 07-17-2007 07:16 PM


All times are GMT -6. The time now is 11:35 PM.