![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Junior Member
Join Date: Dec 2009
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
|
Hi all,
I am just beginning to construct a multi time frame strategy and am having some trouble starting off. I am just looking to set a series of doubles for certain time periods but no long position is opened. As is usual, it is probably a simple error, but would appreciate any advice as to how to obtain the required trades so they can be utilised for the strategy. The required code is written below. PHP Code:
Last edited by mfmsonic; 12-17-2009 at 06:08 AM.
|
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
mfmsonic,
Please ensure you have enough bars loaded. You need at least 20 on each bar series. 20 on weekly series would require a lot of days back to load.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Dec 2009
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
|
NinjaTrader_Josh,
Thank you for your reply. The bars are long enough from 1962 to 2009. Still no trades. Here are the snapshot from my backtesting. Please check it. |
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
You will then need to debug your code with Print() statements and TraceOrders = true.
http://www.ninjatrader-support2.com/...ead.php?t=3418 http://www.ninjatrader-support2.com/...ead.php?t=3627
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Jul 2009
Location: San Francisco Bay Area
Posts: 216
Thanks: 0
Thanked 4 times in 3 posts
|
It might be an issue with update sequence. Try using the value 2 for the lookBackPeriod in the CrossAbove, Below tests.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Multi time frame strategy? | Hanko | Strategy Analyzer | 4 | 11-09-2012 03:34 PM |
| Problem Creating EMA for Multi-Time Frame on Highs | RoyBoy | Strategy Development | 7 | 09-26-2012 11:22 AM |
| Multi-time frame strategy | laparker | Strategy Development | 4 | 05-24-2009 10:03 PM |
| Multi-time frame strategy - Longer-term real-time calculations | Shansen | Strategy Development | 1 | 04-19-2009 06:36 AM |
| Market Reply and Multi time frame Strategy problem | kekkis | Strategy Development | 3 | 12-30-2008 05:26 AM |