![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Mar 2012
Posts: 63
Thanks: 0
Thanked 15 times in 1 post
|
how can i get the wizard to trigger after a green or red candle ? thats not my strategy but ita a key part .
i tried open0 < close 0 and it some what worked but it it did red candles too which i dont want , thanks guys |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,860
Thanks: 163
Thanked 580 times in 571 posts
|
Hello,
Checking Open[0] < Close[0] would give you a green bar and Open[0] > Close[0] would give you a red. If additional orders are being placed, I'd suggest simplifying your strategy to determine why those orders are being placed. For example do you have an exit condition set somewhere? I'm attaching a very simple strategy which you can use an example of one way to debug what you're seeing.
Matthew
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Mar 2012
Posts: 63
Thanks: 0
Thanked 15 times in 1 post
|
yea thats what i did but this is what i get , why does it skip these bars in between ?
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,860
Thanks: 163
Thanked 580 times in 571 posts
|
Orders may be ignored under certain conditions.
Before you get into submitting orders, I'd suggest drawing objects or text under your conditions to visual your conditions and ensure your logic is working as expected.
Matthew
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Member
Join Date: Mar 2012
Posts: 63
Thanks: 0
Thanked 15 times in 1 post
|
not sure what that means matt ,
|
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Sep 2008
Posts: 543
Thanks: 80
Thanked 187 times in 131 posts
|
http://www.ninjatrader.com/support/h...d_approach.htm
Scroll down to "Internal Order Handling Rules that Reduce Unwanted Positions" |
|
|
|
|
The following user says thank you to Radical for this post: |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Strat performance and Strat Analyzer historical data different? | joesandyego | Strategy Development | 7 | 06-15-2012 02:01 PM |
| new strat help | benrock | Strategy Development | 5 | 05-18-2012 09:23 AM |
| Strat Help | cre8it8 | Strategy Development | 2 | 07-07-2010 03:21 PM |
| RVI in strat | dsraider | Strategy Development | 14 | 02-25-2010 01:52 PM |
| strat persists | ATI user | Version 7 Beta General Questions & Bug Reports | 16 | 12-16-2009 10:15 AM |