Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

flatten

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

    flatten

    Friends,
    I am having problems with the flatten method. I have enclosed a cut down version of the template for it, excluding entry and exit logic. It works perfect up to point where it is flatten the instrument. it ignores the flatten method all together Printing it has reached the target price, and keeps going. What am I missing?
    John
    Attached Files

    #2
    Hello JLSwin,

    It is likely that you used lowercase letters for es in Mes. Its MES as the instrument name.

    To flatten the strategy you should actually just use exit orders for whatever position you are in rather than the accounts flatten method, that would allow the strategies performance to accurately reflect what happened.

    Comment


      #3
      Thanks, That was the problem all along.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      88 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      134 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      67 views
      0 likes
      Last Post PaulMohn  
      Working...
      X