开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

upper and lower limit


 

Hello all,
?
I would like to set an upper and lower limit for selling stocks I hold. For example, let's say that I hold 120 shares of SMCI and the current price is 32.50. I would like to SELL those 120 shares if it reaches 34.71 OR if it went down and reached 31.20:
?
SMCI-STK--0.0---SMART-Nasdaq-USD-----SELL-120-STP-34.71
SMCI-STK--0.0---SMART-Nasdaq-USD-----SELL-120-STP-31.2
?
The question is, if I only hold 120 shares, can I still do that since I sent 2 calls of 120 shares each (240 in total)? Will it be rejected with "you are trying to sell 240 SMCI shares but you only hold 120"?
?
Thank you


 

开云体育

No it won’t object to that. (But why don’t you just try it yourself with your paper-trading account?)

?

But there IS a problem here: because current price is below the trigger price of that first order, it will be executed immediately – not what you want.

?

To fix this, use a ‘market if touched’ (MIT) order for the first one.

?

By the way, few members have much knowledge of the socket protocol, so when asking this sort of question it’s best to express it in terms of API calls.

?

Richard