View Full Version : Strategy on Live Account
jrowenjr
05-18-2009, 08:23 AM
I've got several questions:
1. How do I get my strategy to trade on my live broker account? I've applied the strategy to my chart, but it's only trading the Sim101 account.
2. When I trade my strategy on recorded market data, this time filter works perfectly, however, when trading in realtime on my live account, it's not working. I'm on Central Time Zone. Here's the code:
//Now Check to insure we're trading between 0833 and 1100
&& (ToTime(Time[0]) >= 083400)
&& (ToTime(Time[0]) < 110000))
3. Why can't I see daily/weekly/monthly charts? No data shows up on those charts - It does show up on minute, tick, etc charts.
NinjaTrader_Josh
05-18-2009, 08:36 AM
1. You can only route orders to your brokerage if you have a full license key for NinjaTrader. If you have this already, please ensure that you do not have Global Simulation Mode checked in the File menu.
2. It should work the same as in Market Replay. Remember that checking Time[0] is not your PC clock. It is checking the timestamps of your bars.
3. If your data provider does not offer you those types of data then you will not see them. http://www.ninjatrader-support.com/HelpGuideV6/helpguide.html?HistoricalData
jrowenjr
05-18-2009, 08:44 AM
I do have a full license and Global Simulation is not checked. I can trade my account from the DOM or from Chart Trader, but my strategy seems to only trade Sim101.
The strategy is oriented to the time on the chart, but the time filter is not working (but, again, works fine on market replay).
NinjaTrader_Josh
05-18-2009, 08:49 AM
As you start your strategy you should be able to select the account you want it to run on. Once started, you cannot change this. Please load a new instance.
If your time filter works in replay it will work in real-time. The check is against the timestamps of the bars on your chart. I suggest you print text showing you the timestamp of each bar being processed so you know when it should/should not work.
jrowenjr
05-18-2009, 09:54 AM
Got the Strategy on my account worked out. - Thanks.
The time filter is still a mystery. I'll keep playing with it. The date-time stamp shows that the strategy initiated a new trade prior to the filter start time.
NinjaTrader_Josh
05-18-2009, 10:15 AM
jrowenjr,
I suggest you use TraceOrders = true to see when orders are submitted. That way you can track what is going on. If you want to know if your time filter is working you should just Print a statement inside the if-statement instead of checking orders. Orders can get filled/submitted elsewhere.