PS: I was unable to find an indicator that already does this.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
can code be written to display PnL in ticks?
Collapse
X
-
can code be written to display PnL in ticks?
I daytrade ES (mainly) and would love to see my trade performance in ticks rather than the Currency or Points. Is this possible using NinjaScript? Thanks.
PS: I was unable to find an indicator that already does this.Tags: None
-
Hello JImJinNJ,
The simple answer is there is not a supported way of looping through manual trades with a NinjaScript and getting the performance.
However, with unsupported methods, it may be possible to get the trades made on the same trading day and calculate the performance and measure this in ticks.
Below I am including some unsupported code to point you in the right direction. I cannot assist with this unsupported code.
foreach (Account acct in Cbi.Globals.Accounts)
{
if (acct.Orders != null)
{
OrderCollection orders = acct.Orders;
foreach (Order ord in orders)
{
Print(ord.ToString());
}
}
}Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
164 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
318 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
246 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
350 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
179 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment