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 NullPointStrategies, Today, 05:17 AM
        0 responses
        44 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        124 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        65 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        42 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X