Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Get entry and StopLoss price from log file

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

    Get entry and StopLoss price from log file

    Hi Guys!

    I'd like to get these prices from actual log file (log.20130723) because I have to use chart trader.

    Please help me!

    Thanks in advance

    w.

    #2
    Hello,

    You can always use StreamReader to read from a file.

    However due to the multi-threaded NinjaTrader of NinjaTrader, you may hit some race conditions as we try to log other events to this file.

    If you need to get the prices of previously executed orders, you can use the TradeCollection to get this information.

    You may also consider creating your own custom log file using StreamWriter.
    MatthewNinjaTrader Product Management

    Comment


      #3
      Hi Matthew!

      Thanks for your reply and links.
      Can I use these (TradeCollection) from an indicator?

      thanks on advance...
      w.

      Comment


        #4
        The TraceCollection can only be used from a Strategy. Additionally a strategy would only be able to read trades that it made and would not be aware of trades from other strategies or from manual trades.
        MatthewNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        670 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        379 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        111 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        575 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        582 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X