NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 12-16-2010, 02:40 PM   #1
Trankuility
Member
 
Join Date: Sep 2010
Posts: 56
Thanks: 0
Thanked 0 times in 0 posts
Default No trades during Market Replay

I'm trying to test a strategy on the Market Replay for 11/15/10 (downloaded from NT server) but it doesn't take any trades. The strategy is based on 1 tick range bars.

The strategy shows the account to use as "Replay 101". I'm connected to the Market Replay account, which shows as active in the bottom left of the Control window. I also have a chart open for the 1 tick range bars with the strategy enabled, which is verified in the "Strategies" tab.

If I use backtest or walkforward for the same day, 11/15/10, over 500 trades are placed. Yet no trades are placed during Market Replay. Market replay is at 15x speed. Why aren't trades being placed?
Trankuility is offline  
Reply With Quote
Old 12-16-2010, 02:45 PM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello Tranquility,

Do you see confirmation of your signals through either Print statements or Drawing objects? You can add these to the same block that places orders to verify the conditions are true.

If you're seeing confirmation that conditions are true, what is the result of TraceOrders output related to these orders?
NinjaTrader_RyanM is offline  
Reply With Quote
Old 12-16-2010, 05:33 PM   #3
Trankuility
Member
 
Join Date: Sep 2010
Posts: 56
Thanks: 0
Thanked 0 times in 0 posts
Default

I had a programmer create the strategy so my ability to debug is very limited. I asked him about it and he didn't know why it wasn't showing in Market Replay either.

I do have draw objects = true, so it shows on the chart when the signal is confirmed. And plenty of draw objects show on the charts during Market Replay so it does appear to recognize that a trade should take place.

I followed the TraceOrders link and tried editing the script myself and added TraceOrders = True in the initialize area of the script, then recompiled, and saved. I then opened the output window and ran the Market Replay and enabled the strategy. Again, the charts show the draw objects but no trades take place. The only thing the output window shows is the following, which is generated as soon as I enable the strategy:

**NT** Enabling NinjaScript strategy 'sSolV1/812cc2b73ee34d52a634a300698430dc' : On starting a real-time strategy - StrategySync=SubmitImmediately SyncAccountPosition=False EntryHandling=UniqueEntries EntriesPerDirection=1 StopTargetHandling=PerEntryExecution ErrorHandling=TakeNoAction ExitOnClose=False Set order quantity by=Strategy ConnectionLossHandling=KeepRunning DisconnectDelaySeconds=10 CancelEntryOrdersOnDisable=True CancelExitOrdersOnDisable=True MaxRestarts=4 in 5 minutes
12/2/2010 2:05:11 PM Entered internal SetStopTarget() method: Type=Stop FromEntrySignal='' Mode=Ticks Value=10 Currency=0 Simulated=False

Now what should I do?
Trankuility is offline  
Reply With Quote
Old 12-17-2010, 03:34 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,560
Thanks: 261
Thanked 1,015 times in 996 posts
Default

Trankuility, we could unfortunately not debug the strategy for you - you would need to work together with the programmer who created it - a few questions to help narrow it down -

1. Is it the same for another day of data?
2. Did you try different replay speeds?
3. Did you try another instrument?
4. Did you try another chart type / interval?
5. Did you try it in realtime on the same chart?
NinjaTrader_Bertrand is online now  
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
Market Replay and market depth data gregid Version 7 Beta General Questions & Bug Reports 13 02-01-2010 05:23 AM
i can only replay one instrument on my market replay saeed Charting 5 01-13-2010 03:43 PM
market replay data connecting, market replay data offer nicknamed Miscellaneous Support 1 10-29-2009 08:10 AM
Is it possible to do market replay and backtesting based on market depth? clearpicks Indicator Development 1 03-11-2009 04:07 PM
View Chart of replay trades ashish Historical NinjaTrader 6.5 Beta Threads 1 12-05-2007 04:13 AM


All times are GMT -6. The time now is 03:51 AM.