Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NTAvgEntryPrice useage

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

    NTAvgEntryPrice useage

    "double NTAvgEntryPrice(string acccount)
    Gets the average entry price for the selected instrument/account combination."

    How can I get the average entry price of for a symbol ES 03-09 IN account sim101. Less assume there are other instruments in the account. ie FDAX 03-09

    whats also wrong with this line
    Print("Ntorders: " + NumTostr(NTOrders(""),2));
    error is numerical expression expected here.
    It implies ntorders doesnt return a number
    Last edited by kiwibird; 01-04-2009, 04:23 PM.

    #2
    Hello,


    Someone will reply to your post on Monday. Sorry for the delay.
    DenNinjaTrader Customer Service

    Comment


      #3
      Hi kiwibird, this refers to the symbol from which you are calling this in TradeStation, just open up the 'NTAvgEntryPrice' function there...your TS code you posted looks good, I will test this on my end and let you know.
      BertrandNinjaTrader Customer Service

      Comment


        #4
        Hi, please use Print("NTOrders: " + NTOrders(""));

        No need for the NumToStr here, as NTOrders returns a string...
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by nightstalker, Today, 02:05 PM
        0 responses
        8 views
        0 likes
        Last Post nightstalker  
        Started by llanqui, Yesterday, 09:59 AM
        8 responses
        28 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Started by quicksandatl, Today, 01:39 PM
        1 response
        5 views
        0 likes
        Last Post quicksandatl  
        Started by md4866, 05-01-2024, 08:15 PM
        2 responses
        18 views
        0 likes
        Last Post md4866
        by md4866
         
        Started by samish18, Today, 12:20 PM
        0 responses
        7 views
        0 likes
        Last Post samish18  
        Working...
        X