![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jun 2008
Posts: 159
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
|
Call the SetStopLoss() each time for each unique entry signal.
Ray
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |