Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

int quantity problem

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

  • John833
    replied
    That's great, thanks for your help

    Leave a comment:


  • NinjaTrader_Bertrand
    replied
    John, in this case you could either amend the order by resubmitting with the updated qty or just refer to the strategies current Position.Quantity.

    Leave a comment:


  • John833
    started a topic int quantity problem

    int quantity problem

    Hello
    I'm using the following exit in my strategy...

    ExitShortLimit(int barsInProgressIndex, bool liveUntilCancelled, int quantity, double limitPrice, string signalName, string fromEntrySignal)


    However, in my strategy occasionally 2 entries are triggered at the same time resulting in twice the intended position size.

    So, if I have double the intended position size, what can I can use to put into 'int quantity' so that the whole position is exited?
    (I need to use the above exit as the order needs to remain live until its executed or cancelled).

Latest Posts

Collapse

Topics Statistics Last Post
Started by iradielt, Today, 10:06 PM
0 responses
2 views
0 likes
Last Post iradielt  
Started by gbajaj, Today, 03:35 PM
2 responses
11 views
0 likes
Last Post gbajaj
by gbajaj
 
Started by space_trader, Today, 03:19 PM
2 responses
8 views
0 likes
Last Post space_trader  
Started by max1ci6, Today, 02:02 AM
4 responses
28 views
0 likes
Last Post joromero  
Started by Johnny, Today, 02:38 PM
1 response
11 views
0 likes
Last Post NinjaTrader_Tyler  
Working...
X