Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

can code be written to display PnL in ticks?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    #2
    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

    Comment


      #3
      thanks very much. this will get me started.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      83 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      45 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      65 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      68 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      57 views
      0 likes
      Last Post CarlTrading  
      Working...
      X