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 mattbsea, Today, 05:44 PM
    0 responses
    3 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    31 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    2 views
    0 likes
    Last Post tkaboris  
    Started by GussJ, 03-04-2020, 03:11 PM
    16 responses
    3,282 views
    0 likes
    Last Post Leafcutter  
    Started by WHICKED, Today, 12:45 PM
    2 responses
    20 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Working...
    X