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 PeakTry, Today, 10:49 AM
      0 responses
      2 views
      0 likes
      Last Post PeakTry
      by PeakTry
       
      Started by llanqui, Today, 10:32 AM
      0 responses
      4 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by StockTrader88, 03-06-2021, 08:58 AM
      45 responses
      3,992 views
      3 likes
      Last Post johntraderuser2  
      Started by TAJTrades, Today, 09:46 AM
      0 responses
      8 views
      0 likes
      Last Post TAJTrades  
      Started by rhyminkevin, Yesterday, 04:58 PM
      5 responses
      62 views
      0 likes
      Last Post dp8282
      by dp8282
       
      Working...
      X