NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 08-29-2011, 02:23 PM   #1
krakken
Junior Member
 
Join Date: Jul 2011
Posts: 19
Thanks: 0
Thanked 0 times in 0 posts
Default How to Prevent Double Exit

Hi,
I'm setting up a strategy with multiple exit conditions. On certain occasions it will give two exit signals and essentially take an extra opposite position.

For example. I go Long at $10.00. I have exit signals that kick in and I ExitLong1 at $9.00. I have an instant other signal ExitLong2 at $9.00.

I've tried to change the "IF" statements to "Else IF" and it still doesn't work.

I also have the option "Wait Until Flat" set to yes.

HELP!
krakken is offline  
Reply With Quote
 

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
Prevent multiple entries MrTicks Strategy Development 19 10-07-2010 11:44 AM
Double execution of Exit Strategies John833 General Programming 4 06-15-2009 03:16 PM
double exit strategy duck_CA Strategy Development 7 02-20-2009 02:11 PM
Exit + new signal double the size on same bar jsl12 Automated Trading 5 04-22-2008 04:47 PM
Double moving average ,double time frame Mauro60 Indicator Development 3 01-23-2007 02:11 AM


All times are GMT -6. The time now is 07:51 PM.