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 07-17-2008, 08:18 AM   #1
mike8943
Junior Member
 
Join Date: Feb 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default need help with simple strategy

I want to program simple strategy,
for example Close[0]=1,

i need to have long order if the price goes below 0.75
and short order if the price go above 1.25 (for the next bar)

I would enter
EnterLongLimit(1, 0.75)
EnterShortLimit(1, 1.25)

Because NT unable to handle these orders alltogether is there another way to achieve the same functionality?
Last edited by mike8943; 07-17-2008 at 08:22 AM.
mike8943 is offline  
Reply With Quote
Old 07-17-2008, 08:21 AM   #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

Two separate strategies or simulate your own orders where if the price == 0.75 call EnterLong().
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
Problem with a simple strategy John833 Strategy Analyzer 13 06-30-2008 01:05 PM
Simple Strategy question yoramva Strategy Development 5 04-03-2008 07:25 AM
simple automated strategy fxyorky General Programming 2 01-23-2008 09:01 AM
Simple Strategy Oli Automated Trading 2 03-05-2007 11:42 PM
Simple profit/stop strategy Steveinvest Miscellaneous Support 1 12-30-2005 02:50 AM


All times are GMT -6. The time now is 11:10 PM.