![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Aug 2008
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
|
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? |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
Sure you can. For your Variable0 set it to Low[1] and then offset it with the offset parameters. Offset it by 2.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Aug 2008
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
|
Ah!
Thanks for the help! |
|
|
|
|
|
#4 |
|
Member
Join Date: Aug 2008
Location: London
Posts: 30
Thanks: 0
Thanked 0 times in 0 posts
|
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? |
|
|
|
|
|
#5 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
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.
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |