Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Positions[1].Quantity == 2; short

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

    Positions[1].Quantity == 2; short

    Hi,

    if I want to check to see if my position is short two shares;

    would i type

    Positions[1].Quantity == 2

    OR

    Positions[1].Quantity == -2

    according to browsing around the form; this variable always returns a positive integer. is that true?

    Thanks

    #2
    Hello calhawk01,

    Thank you for your post.

    It would be Positions[1].Quantity == 2 to check the secondary bar series quantity is two, short or long.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cre8able, Today, 01:16 PM
    2 responses
    8 views
    0 likes
    Last Post cre8able  
    Started by chbruno, 04-24-2024, 04:10 PM
    3 responses
    48 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by samish18, Today, 01:01 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by WHICKED, Today, 12:56 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by WHICKED, Today, 12:45 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X