NinjaTrader Support Forum  

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 11-30-2009, 12:34 AM   #1
kaywai
Senior Member
 
Join Date: Sep 2009
Posts: 562
Thanks: 40
Thanked 5 times in 4 posts
Default how do i create this strategy

i would like to create a strategy that uses 1 minute data over a period of 30 minutes to determine the high and low over that period of time and initiates a long position when it breaks above the predetermined high and initiates a short position when it breaks below the predetermined low. could you show me how i would go about doing that? TIA!
kaywai is offline  
Reply With Quote
Old 11-30-2009, 05:39 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,566
Thanks: 261
Thanked 1,015 times in 996 posts
Default

kaywai, I suggest you check into this sample and code here - http://www.ninjatrader-support2.com/...ead.php?t=3223
NinjaTrader_Bertrand is online now  
Reply With Quote
Old 12-02-2009, 10:47 AM   #3
NinjaTrader_Vincent
NinjaTrader Customer Service
 
NinjaTrader_Vincent's Avatar
 
Join Date: Mar 2005
Location: Amsterdam, The Netherlands
Posts: 2,042
Thanks: 0
Thanked 3 times in 3 posts
Default

Kaywai,

Unfortunately our forum experienced technical difficulties early this morning. As a result, we were forced to restore our forum to its last back up point approximately seven (7) hours ago. Any posts created since that time have been lost. We are sorry for the inconvenience.

I have your original question here below and one of my coworkers will respond to it again shortly.

Thanks for your help Bertrand. I will download data for backtesting from Bloomberg.
BTW, if i would like to save the data as a continuous contract, how should i save/name the file?
NinjaTrader_Vincent is offline  
Reply With Quote
Old 12-02-2009, 10:53 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,566
Thanks: 261
Thanked 1,015 times in 996 posts
Default

You can use ##-## for the continuous contract file naming, general guidelines for importing acsii / txt file based data can be found here -

http://www.ninjatrader-support.com/H...V6/Import.html
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
Create a strategy analyzer for new strategy toyogo00 Strategy Analyzer 1 04-22-2008 12:06 AM
How to create bollinger band strategy cunparis Automated Trading 1 02-03-2008 09:43 AM
error when create strategy draime Strategy Development 16 12-07-2007 08:23 AM
Create New Strategy mgbloomfield ATM Strategies (Discretionary Trading) 1 09-14-2007 01:02 PM
Create Strategy Functionality SellUmHi Miscellaneous Support 1 01-04-2006 01:55 AM


All times are GMT -6. The time now is 07:21 AM.