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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      46 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      22 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      33 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      50 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X