NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

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.

Reply
 
Thread Tools Display Modes
Old 10-30-2007, 03:20 AM   #1
kgillis23
Member
 
Join Date: May 2007
Location: West Jordan, Utah
Posts: 61
Thanks: 0
Thanked 0 times in 0 posts
Default Position stays open after a profit target met

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.


kgillis23 is offline  
Reply With Quote
Old 10-30-2007, 04:58 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

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.
NinjaTrader_Dierk 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
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


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