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 kinfxhk, 07-14-2026, 09:39 AM
      0 responses
      7 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 10:18 AM
      0 responses
      59 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 09:50 AM
      0 responses
      41 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 07:21 AM
      0 responses
      47 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-11-2026, 02:11 AM
      0 responses
      38 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X