# Quantity = entire position?

**URL:** <https://forums.collective2.com/t/quantity-entire-position/11324>\
**Category:** Seetu\
**Created:** [January 26, 2018, 4:22pm UTC](https://forums.collective2.com/t/quantity-entire-position/11324 "2018-01-26T16:22:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jTrader](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/jtrader/32/13320_2.png) [@jTrader](https://forums.collective2.com/u/jTrader)\
**Post date:** [January 26, 2018, 4:22pm UTC](https://forums.collective2.com/t/quantity-entire-position/11324/1 "2018-01-26T16:22:29Z")

</div>

Is there a way to enter a STC order with a quantity automatically set to the entire open position? Here’s what I currently use.

C2TradingSignal(sigSTC, Amount=Ref(myQuant,-BSB));

myQuant is my formula used to determine the position size when entering the position. BSB is the number of bars since the buy signal. For some reason, however, I’ve had the STC amount off by 1 from the BTO quantity, leaving me with a stranded share. I’d prefer something like this.

C2TradingSignal(sigSTC, Amount=ALL);

Thoughts?
