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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
579 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 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
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment