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 caacapital, Today, 10:10 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by DiverG20, Today, 10:23 AM
    0 responses
    17 views
    0 likes
    Last Post DiverG20  
    Started by SuneSorgenfrei, Today, 09:29 AM
    0 responses
    15 views
    0 likes
    Last Post SuneSorgenfrei  
    Started by dodoei, Today, 07:24 AM
    0 responses
    14 views
    0 likes
    Last Post dodoei
    by dodoei
     
    Started by thecashguys, Today, 06:13 AM
    0 responses
    12 views
    0 likes
    Last Post thecashguys  
    Working...
    X