Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Displaying historical trades - not executed

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

    Displaying historical trades - not executed

    When enabling a strategy I would like to be able see the trades on the chart the strategy would have taken if running live.

    This was working previously but now it seems rather random if at all.

    I have "text and marker" enabled in the data series. I tried using tick replay.

    Some of the strategies have multiple time frames, not sure if that is a problem.

    I saw this question in a previous post and the person asking the question said they had to reset the db (data base).

    Any help is appreciated.

    #2
    Hello sdauteuil,

    Thanks for your post.

    Here are the requirements to see strategy historical trades:

    1) The chart must be on the same account as the strategy (you can set this in the chart trader).
    2) The strategy must be applied to the chart (it cannot be created in the strategy tab as no chart would be associated with it).
    3) In the data series of the chart, the plot executions must be enabled for text and markers or markers only.
    4) The strategy code itself must not be prevented from performing historical trades (do you have if (state == State.Historical) return; or something similar in your code?

    Comment


      #3

      In state == State.Historical

      I have some code for creating a button to enable the strategy.

      Which obviously has to be enabled for the strategy to place trades.
      I removed that from the logic and the trades appeared.

      I guess it was a little to obvious for me to figure out.

      Thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      77 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      45 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      27 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      32 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      63 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X