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 CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        32 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        184 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        342 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        264 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X