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 NullPointStrategies, Today, 05:17 AM
      0 responses
      43 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