NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM 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.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 02-26-2011, 01:28 PM   #1
ScottB
Senior Member
 
Join Date: Jan 2009
Posts: 414
Thanks: 0
Thanked 20 times in 20 posts
Default SetStopLoss

Is it possible to enter a negative number for the value in SetStopLoss and CalculationMode.Ticks? Alternatively, is it possible to switch CalculationMode from ticks to price while holding a position (that would actually be preferable)?

When a position is first entered, a fixed number of ticks is used then it jumps to a number of ticks based on some other criteria and then once a certain profit level is reached, it starts trailing.

Because you can't mix SetStopLoss with a trailing stop, once I get to the trailing stop level I still have to use SetStopLoss.

However, now I want a stop that is above (for a long) my entry so it would appear the stop loss in ticks is actually a negative number.

Yes, I know I can use price all along but because initally the price is going to be so close to the market, I have to jump through hoops to make certain I don't place a stop at the market which will give me an error and shut the strategy down.

Best Regards,
Scott
ScottB 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 gg80108 General Programming 3 10-11-2010 10:38 AM
SetStopLoss() Lost Trader Strategy Development 4 08-03-2010 02:14 PM
An example for SetStopLoss crunchy General Programming 3 05-09-2010 09:11 AM
SetStopLoss toyogo00 Strategy Development 1 07-22-2008 09:02 AM
SetStopLoss thepcmd Strategy Development 2 12-01-2007 01:14 PM


All times are GMT -6. The time now is 09:16 PM.