Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can I call the following values in NinjaTrader Script language

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

    Can I call the following values in NinjaTrader Script language

    Hello,

    I need to ask if i can call the following values using NinjaTrader script:

    1. current marketposition
    2. current entryprice
    3. number of bars elapsed since entry

    also, can i use global variables using NinjaTrader script (like i can in tradestation Easylanguage)?

    thank you in advance.

    regards

    Rod

    #2
    1) http://www.ninjatrader-support.com/H...tPosition.html
    2) Try Position.AvgPrice
    3) http://www.ninjatrader-support.com/H...inceEntry.html

    C# (and NinjaScript) support "global variables". Please consult the MS C# docs for details.
    DierkNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SAITON, Yesterday, 06:02 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChrisSch  
    Started by coopgrafik, Yesterday, 09:23 PM
    2 responses
    11 views
    0 likes
    Last Post coopgrafik  
    Started by rtwave, Yesterday, 04:31 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Titli, Yesterday, 01:23 PM
    2 responses
    18 views
    0 likes
    Last Post Titli
    by Titli
     
    Started by ttodua, Yesterday, 01:07 PM
    2 responses
    12 views
    0 likes
    Last Post ttodua
    by ttodua
     
    Working...
    X