NinjaTrader Support Forum  
X

Attention!

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


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-06-2008, 02:49 PM   #1
amberwest
Junior Member
 
Join Date: Jul 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Question Need help with Condition Builder

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
amberwest is offline  
Reply With Quote
Old 08-06-2008, 03:48 PM   #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

Here is an image to get you started.

This is how to build the condition:

PSAR crosses below 5 period SMA
Attached Images
File Type: jpg 1A.jpg (65.5 KB, 21 views)
NinjaTrader_Ray is offline  
Reply With Quote
Old 08-06-2008, 04:01 PM   #3
amberwest
Junior Member
 
Join Date: Jul 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default thanks for the reply

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
amberwest is offline  
Reply With Quote
Old 08-06-2008, 08:43 PM   #4
amberwest
Junior Member
 
Join Date: Jul 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Question Still need some help with the Condition Builder

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
amberwest is offline  
Reply With Quote
Old 08-06-2008, 08:45 PM   #5
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

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.
NinjaTrader_Ray is offline  
Reply With Quote
Old 08-06-2008, 09:16 PM   #6
amberwest
Junior Member
 
Join Date: Jul 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default

Ok Ray, I try it again and see what happens.

Thanks for your help!

Amber
amberwest 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
'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


All times are GMT -6. The time now is 01:17 AM.