![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Junior Member
Join Date: Jul 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
|
Hi, I'm new to NinjaTrader and need a little help with the Condition Builder on Strategy Wizard.
I read the User Help Guide, and can't find how to set a very basic strategy to run solely on the indicators and NOT the price. For instance: I'm trying to set the conditions for a strategy to Enter Long when the ParSar crosses below the 5-SMA. And to Enter Short when it crosses above the 5-SMA. I set the conditions to do that, but it seems to enter based on when the price (candle) crosses the 5-SMA and not the ParSar dot. Any suggestions out there? Thanks very much! Amber
|
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Here is an image to get you started.
This is how to build the condition: PSAR crosses below 5 period SMA
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jul 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks Ray, I appreciate your reply.
I did that when I set the conditions. The problem I seem to have is that when I set the Action to enter long and exit short, it engages the trade when the candle/price crosses the 5-SMA and not the ParSar dot. I need to know if there is a way to set the condition to only engage based on the indicator and NOT the price/candle. Can you help me with that part please? Thanks again! Amber
|
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jul 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
|
Can anyone please help me with this?
I need to know if there is a way to set the condition to only engage based on the indicator and NOT the price/candle. I set up the conditions on the Strategy Wizard, the problem I'm having is the trade engages when the price/candle crosses the 5-SMA, NOT the ParSar dot. I just need the trade to enter on the indicator alone. Any ideas out there? Thanks! Amber
|
|
|
|
|
|
#5 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
What I showed you does exaclty what you want and NOT when price crosses the SMA. It could very well be that price crosses the SMA at the same time but I assure you that this condition checks the value of PSAR as crossing below.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Jul 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
|
Ok Ray, I try it again and see what happens.
Thanks for your help! Amber |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 'Stops & Targets' missing from the Condition Builder? | Elliott Wave | Strategy Development | 3 | 06-15-2008 07:44 PM |
| Cannot seem to launch Condition Builder in NinjaScript Editor | TapeReader | Miscellaneous Support | 3 | 04-01-2008 10:38 PM |
| Condition builder - Swing HH | nico_p | Strategy Development | 2 | 03-12-2008 05:17 PM |
| Condition Builder | OUFan | Strategy Development | 6 | 12-19-2007 02:05 PM |
| Condition Builder - Time Comparison Error | davidfw1866 | Strategy Development | 4 | 10-30-2007 07:16 AM |