![]() |
|
|||||||
| Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: May 2007
Location: West Jordan, Utah
Posts: 61
Thanks: 0
Thanked 0 times in 0 posts
|
I am testing a forex currency strategy with Sim101/Gain. To go Long I do the following:
SetStopLoss(CalculationMode.Ticks, shortStopLoss); SetProfitTarget(CalculationMode.Ticks, shortTakeProfit); EnterLong(DefaultQuantity, "Long"); When running with a real data feed under Sim101 the chart indicates a Profit Target at the right value but the Control Center -> Positions tab continues to list the same currency as an open position and the PnL value continues to change. On the other hand, the Control Panel -> Strategies tab indicates that the strategy continues to be running (as expected), but no longer showing a "unrealized" profit and no new BuyToCover order has been given. I would expect the open position in the Positions tab to have been closed when the profit target was reached. Can you help me understand why that is not so? Thanks again. |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Please make sure you understand the concept of an account position vs a strategy position. They can be different: there could be multiple strategies on the same instrument - each having their own position - running on the same live/sim account resulting in only one account position.
Dierk
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Profit Target Suggestion | RicTessitore | Suggestions And Feedback | 5 | 07-23-2009 09:42 AM |
| dollar profit target | rally7 | Strategy Development | 6 | 10-31-2007 11:45 AM |
| Problems with Set Profit Target? | mazachan | Strategy Development | 12 | 09-21-2007 06:52 AM |
| profit target - no stop | Futures_Shark | Suggestions And Feedback | 1 | 08-14-2007 10:51 PM |
| Changing the Profit Target | SuzyG | Strategy Development | 2 | 01-05-2007 07:55 AM |