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 05-12-2008, 02:15 PM   #1
stefy
Senior Member
 
Join Date: Apr 2008
Posts: 310
Thanks: 0
Thanked 0 times in 0 posts
Default Two step execution

Hi everyone

I'm working with 1min bars and currently I'm backtesting executing at market price.
I'd like to put an order between bid/ask, and then, after 30 secs, if I didn't get filled, to execute at market price.
Can I backtest this? If I can, how?

Thank you
stefy is offline  
Reply With Quote
Old 05-12-2008, 02:44 PM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

You can not backtest this since historical bid/ask data does not exist on a bar basis, only OHLC, Volume and Time are known in a historical backtest.
NinjaTrader_Ray is offline  
Reply With Quote
Old 05-12-2008, 02:56 PM   #3
stefy
Senior Member
 
Join Date: Apr 2008
Posts: 310
Thanks: 0
Thanked 0 times in 0 posts
Default

Thank you.

When I backtest a strategy with Market execution, the strategy is supposed to use bid/ask prices though. Am I correct?
stefy is offline  
Reply With Quote
Old 05-12-2008, 03:19 PM   #4
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

No since ask/bid data is not present on a OHLC bar.
NinjaTrader_Ray 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
Avoid same bar execution MrBaffalo Strategy Development 4 10-29-2011 10:51 AM
ATM negative step monpere ATM Strategies (Discretionary Trading) 5 02-28-2010 09:27 AM
order execution HelloHello Automated Trading 2 08-29-2007 12:17 AM
Execution on the same bar MrBaffalo Strategy Development 3 01-23-2007 01:57 AM
Trailing stop 2/3 step problem cashmein Miscellaneous Support 0 01-15-2005 05:08 AM


All times are GMT -6. The time now is 02:16 PM.