Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Capturing entry price in a variable?

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

    Capturing entry price in a variable?

    Hi all,

    How would one capture the entry price of a recently executed market long trade?

    I just finished reading IOrder in the Help Guide, but it's not specific about how to capture particular aspects of a recently executed order into variables for later calculations.

    Let me know if you need more specifics.

    Yours,
    Spider

    #2
    Instead of declaring a variable and assigning it value, consider calling one of the many Ninjascript defined properties..

    Position.AvgPrice

    Last edited by borland; 05-01-2012, 07:55 PM.

    Comment


      #3
      That works great! Thanks for the help borland!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Max238, Today, 01:28 AM
      2 responses
      26 views
      0 likes
      Last Post NinjaTrader_ChristopherJ  
      Started by Shansen, 08-30-2019, 10:18 PM
      25 responses
      949 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by JonesJoker, 04-22-2024, 12:23 PM
      8 responses
      41 views
      0 likes
      Last Post JonesJoker  
      Started by timko, Today, 06:45 AM
      0 responses
      4 views
      0 likes
      Last Post timko
      by timko
       
      Started by Waxavi, 04-19-2024, 02:10 AM
      2 responses
      39 views
      0 likes
      Last Post poeds
      by poeds
       
      Working...
      X