Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Unrealized and Realized in Strategy Tab
Collapse
X
-
Unrealized and Realized in Strategy Tab
in NT7 sim, don't see values of Unrealized and Realized in Strategy Tab while they are enabled and know, it has some PnL. should I have to change parameters somewhere?Tags: None
-
Hello Kumaresh11,
Can you please post a screenshot of your strategy tab?
To send a screenshot press Alt + PRINT SCREEN to take a screen shot of the selected window. Then go to Start--> Accessories--> Paint, and press CRTL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.Ryan M.NinjaTrader Customer Service
-
PnL in strat tab
Same issue here.
The PnL unrealized Does show in Positions tab, but not Strategies. Also, many NT code references to open p&l, closed p&l seem to be ignored (i expect it's same problem).
7.23
Comment
-
The strategies tab will only list PnL generated by that particular strategy instance. It does not show PnL when waiting for a flat state and the wait until flat option is set.
Can you please post a screenshot of your strategies tab so we can isolate what may be happening?Ryan M.NinjaTrader Customer Service
Comment
-
Comment
-
Hello,
Thanks for the screenshot.
The only issue here is that we cannot tell weather the positions where generated by the strategy.
I see some output window text but I dont see really anythign that corresponds.
For us to correspond this in we would also need the log file.
Please send the log file to support at ninjatrader dot com and put ATTN: Ryan and also put in the subject line a link to this forum post.
Please send the following file as an attachment.
My Documents--> NinjaTrader 7--> Log--> log.2010051108 for today. (log.yyyymmdd for any other date)
Thanks again for sending in.BrettNinjaTrader Product Management
Comment
-
Hello,
Thanks for sending that in, I'm also posting here for other to benefit from.
You are using ATM Strategies with your NinjaScript Strategy.
Essentially what occurs when you use an ATM Strategy the PnL and Position/Avg price information is stored in this secondary Sub Strategy that is running/created and is no longer maintained by the host strategy. Since the ATM Strategy is managing the position now. Since your using ATM Strategies this information will only be displayed on the chart or the DOM Unfortunately at this time since the NinjaScript strategy is not managing the position it cannot display the position information. Since it does not know what is occurring inside that ATM Strategy.
This is something that development is aware of however it is working as expected currently.
Let me know if I can be of further assistance.BrettNinjaTrader Product Management
Comment
-
Related to this:
From Ninja script 7.23, i launch a 2-contract ATM. I can see both working in the ATM. When i try to modify the stop loss level, it seems to only modify one of the orders. How do i access both the contracts? and is there a way i can check on the current stop level? i havent found anything in the 7-handbook
launching the strategy:
atmStrategyIdL = GetAtmStrategyUniqueId();
orderIdL = GetAtmStrategyUniqueId();
AtmStrategyCreate(OrderAction.Buy, OrderType.Limit, longEntry, 0,
TimeInForce.Day, orderIdL, myAtm, atmStrategyIdL); }
tightening the stop level:
private void TightenStopL(int amount, string reason)
{ drawColor = Color.White;
if (atmStrategyIdL.Length > 0)
{ if (GetAtmStrategyMarketPosition(atmStrategyIdL) == MarketPosition.Long)
{ newStop = Low[0]-amount*TickSize;
if (_debug2); Print(Time[0].ToString()+header+ " Tightening LONG stops to " + newStop + " "+reason);
drawColor = Color.Red;
//DrawDiamond("newstop"+currentBar, true, 0, newStop, Color.White);
if (takeExits) AtmStrategyChangeStopTarget(0, newStop, "STOP1", atmStrategyIdL);
PlaySound(@"C:\Program Files\NinjaTrader 7\sounds\autotrail.wav");
}
}
DrawText("tgt"+CurrentBar, "tgtn", live, newStop, drawColor);
}
Comment
-
Hi Ryan, thanks for the response. I'm changing it through code. in fact, i included the code in the original posting. But the code only changes 1 of the 2 orders.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
606 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
353 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
560 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
561 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment