Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Find out Previous Trade Position

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

    Find out Previous Trade Position

    Hello,

    Is there a way to find out the direction "Long or short" of the last trade made by the strategy?


    Thanks,

    Evan
    Last edited by evanp90; 12-04-2019, 09:44 AM.

    #2
    Hello evanp90,

    An easy way would be to use the trade collection, we have a sample which shows how to get the last trade and also another sample which shows how to access the trade position.



    These two samples could be combined to get just the last trade position rather than using the loop in the second example.


    I look forward to being of further assistance.

    Comment


      #3
      NinjaTrader_Jesse That's exactly what i was looking for. Thanks!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      89 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      135 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
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X