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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
83 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
45 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
65 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
68 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
57 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment