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.

Reply
 
Thread Tools Display Modes
Old 08-19-2008, 11:37 AM   #1
Czarek
Senior Member
 
Join Date: Jun 2008
Posts: 159
Thanks: 0
Thanked 0 times in 0 posts
Default Muliti enter strategy stop loss problem.

I use this method for stop loss:
{
CalculateOnBarClose = true;
SetStopLoss(CalculationMode.Ticks, stop);
SetProfitTarget("", CalculationMode.Ticks, Limit);

}
and mentod shown here Strategy: Modifying the price of stop loss and profit target orders to move stop to breakeven.

It working good for single enter per direction but if I set few entries
all stop loss orders are moved to breakeven at same time together ( in the middle of all entries level) and filled in the same time.
How to set separate stop and breakeven for each enteries??
Can I have any code sample or prompt.
Rgds
Czarek
Czarek is offline  
Reply With Quote
Old 08-19-2008, 12:11 PM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
Default

Call the SetStopLoss() each time for each unique entry signal.
NinjaTrader_Ray 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
Going from a Stop Loss to a Trailing Stop within a strategy Sidhartha Strategy Development 28 03-24-2009 03:11 PM
Profit factor of a strategy - stop loss advice? stefy Strategy Development 3 05-09-2008 12:37 PM
Stop loss strategy question alanack General Programming 5 04-25-2008 09:55 AM
Strategy Cancels Stop Loss when Exiting??? wayneFH Strategy Development 5 04-07-2008 10:03 AM
Moving Stop Loss and Enter Reverse kgillis23 Strategy Development 2 03-11-2008 10:14 PM


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