NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 10-22-2010, 08:14 AM   #1
cassb
Senior Member
 
Join Date: Nov 2007
Location: Victor, NY
Posts: 578
Thanks: 5
Thanked 4 times in 4 posts
Send a message via Yahoo to cassb Send a message via Skype™ to cassb
Default SetStopLoss() question

Let's say I call the SetStopLoss() method before submitting an order. The order is filled and the stoploss order is automatically submitted. What if I want to reset that stoploss order to breakeven? When I try to call SetStopLoss() again while the order is active, I get this error:

10/20/2010 9:34:17 AM Entered internal SetStopTarget() method: Type=Stop FromEntrySignal='ptt Long' Mode=Price Value=697.8 Currency=0 Simulated=False
10/20/2010 9:34:17 AM Ignored internal SetStopTarget() method: Type=Stop FromEntrySignal='ptt Long' Mode=Price Value=697.8 Currency=0 Simulated=False' Reason='Another SetStopTarget() method call has already submitted a stop/target order'

Am I not doing it right?
Price-Dynamics.com
A NinjaTrader Official Partner

Visit http://www.price-dynamics.com to learn more about the Rhythm Relay trading system. Yes, you can discretionary or auto-trade with 75%+ accuracy!

Use our Contact Us page to request free access to our daily Trader's Lounge where you can see the system in action in a live account!
cassb 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
SetStopLoss() question stefy Strategy Development 1 11-25-2008 07:50 AM
SetStopLoss question stefy Strategy Development 1 11-14-2008 07:37 AM
SetStopLoss Question... fxRichard Automated Trading 3 06-02-2008 04:50 PM
SetTrailStop & SetStopLoss question woodside Strategy Development 1 11-06-2007 03:41 PM
SetStopLoss Question aethelwulf General Programming 3 07-03-2007 04:00 PM


All times are GMT -6. The time now is 10:33 PM.