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 08-27-2008, 07:03 PM   #1
RSTLNE
Junior Member
 
Join Date: Aug 2008
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
Default Strategy Wizard Question

I'm sure this has to be simple to do, but I cant figure it out.

I'm using the strategy wizard. I want to create a stop loss that is equal to the previous bar low plus 2 ticks.

I can create the stop loss equal to the previous bar by setting
Variable0=Low(1)
and then in the stop loss section setting the calculation mode to price and then Variable0.

Can I easily do previous bar low + 2 ticks in the wizard?
RSTLNE is offline  
Reply With Quote
Old 08-28-2008, 12:22 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Sure you can. For your Variable0 set it to Low[1] and then offset it with the offset parameters. Offset it by 2.
NinjaTrader_Josh is offline  
Reply With Quote
Old 08-28-2008, 04:57 PM   #3
RSTLNE
Junior Member
 
Join Date: Aug 2008
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
Default

Ah!

Thanks for the help!
RSTLNE is offline  
Reply With Quote
Old 09-03-2008, 01:50 AM   #4
Red Fish
Member
 
Join Date: Aug 2008
Location: London
Posts: 30
Thanks: 0
Thanked 0 times in 0 posts
Default Stop loss calculations

Hey, I am trying to do a calculation for the stop loss which will be different on long entries and different on short entries

For long entries it will be one pip below the lowest of the last 6 candle
For short entries it will be one pip below the highest of the last 6 candle highs.

I just can't figure it out! Can anyone help?
Red Fish is offline  
Reply With Quote
Old 09-03-2008, 08:12 AM   #5
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Hi Red Fish,

You will need entry signal names that are different for your long entries and your short entries. Then you can go to the stop loss place and input in that entry signal. That way the signals will be associated with the appropriate entries.
NinjaTrader_Josh 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
Help with Strategy Wizard question paco99 Strategy Development 5 07-28-2008 07:32 AM
Help with Strategy Wizard rgibson Strategy Analyzer 1 07-21-2008 10:41 AM
Strategy Wizard John833 Strategy Development 4 07-13-2008 08:42 AM
Strategy Wizard Raradek Strategy Analyzer 2 05-26-2008 01:08 AM
Strategy Wizard Brody Strategy Development 3 02-06-2007 08:53 AM


All times are GMT -6. The time now is 05:31 PM.