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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      56 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      132 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      73 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      49 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X