Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Example of best method for recalling an executed orders trade price

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

    Example of best method for recalling an executed orders trade price

    I've used Private Series to store values (e.g. the executed trade price) but the issue i'm having is when i've closed out the strategy (e.g. shutdown NT for efficiency maintenance) and then attempt to generate a new (but the same) strategy to return to trading. the stored values are not retained (assumably due to the fact that the strategy is starting anew).

    Should i not be "removing" the strategies upon restart of the system?
    If that's the case, i feel that to be a fragile method of retention and, if so, would there be example of a more definitive way to reference the trade value of a particular execution?

    As always, thank you.

    #2
    Hi larkmail, thanks for posting. The strategy will run through the historical data every time it is restarted, so the values in the Series should be filled during the historical state. So, is the series getting filled with the proper values during the historical state?

    Kind regards,
    -ChrisL

    Comment


      #3
      It populates but i feel it's with a "fresh" (so-to-speak) historical perspective. Best description i could give is when reviewing real-time trades for the day and comparing them to the same time period within the Strategy Analyzer". They're close but not identical.

      L

      Comment


        #4
        Hi larkmail, thanks for your reply.

        If you need to save data between strategy instances it will need to be saved to the disk in the form of a .txt file, then the data can be accessed at a later time. We have an example of file IO here:


        Kind regards,
        -ChrisL

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        47 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        23 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        33 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        51 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        42 views
        0 likes
        Last Post CarlTrading  
        Working...
        X