- ago
Hi all,

Two questions:

1. Attached is a screenshot of the position sizer. I want to make sure I'm understanding it correctly. The Percent of Volatility is the ATR multiplier right? Setting it to 3 means that my stop will be 3 x ATR (20 period) below the last close. The position size calculation is 10% of account equity / (Close - 3xATR)

2. Is it possible to have "minimum of" condition for position sizing? E.g. I want to evaluate two position sizes based on (a) 3xATR stop (b) stop at the lowest low of the last 20 days. Whichever results in the smaller position size is selected.

Thank you!
0
571
Solved
4 Replies

Reply

Bookmark

Sort
Cone8
 ( 4.98% )
- ago
#1
QUOTE:
1. Attached is a screenshot of the position sizer.
Didn't make it!

QUOTE:
I want to make sure I'm understanding it correctly.
The ATR number is the ATR period, not a multiplier. The calculation is simple, but not explained well. (I'll fix that.) It goes like this:

shareSize = (CurrentEquity * PercentOfVolatility) / ATR

If you checked the option at the bottom to limit to a % of equity, then the calculation above is ignored if it exceeds that limit.

Also remember that for signaling, the equity value comes from the brokerage account selected in the signals view if you enabled that Trading Preference.

QUOTE:
2. Is it possible to have "minimum of" condition for position sizing? E.g. I want to evaluate two position sizes based on (a) 3xATR stop (b) stop at the lowest low of the last 20 days. Whichever results in the smaller position size is selected.
Anything is "possible" but this sizer is not configured to perform that function. The options are to create your own Advanced PosSizer, or, perform the sizing function in the Strategy code by setting the Transaction.Quantity. However, if you do it the latter way, you lose broker integration function.
1
Best Answer
- ago
#2
Thanks for that. Ok so I definitely misunderstood that. I also forgot to attach the image, my mistake.

QUOTE:
shareSize = (CurrentEquity * PercentOfVolatility) / ATR


So the PercentOfVolatility is the percentage of equity at risk? Let's say equity is $100k, PercentOfVolatility is set to 0.5, and ATR is $10.

Share size = (100,000 * 0.005) / 10 = 50

The % equity limit then just checks if the value of those 50 shares exceeds the limit, if yes, then it passes on the trade.

Thank you!
1
Cone8
 ( 4.98% )
- ago
#3
Mostly correct.

QUOTE:
... then it passes on the trade
"passes on" is an English idiomatic expression and can be taken 2 ways. It could mean either "skips" or "give something to someone that somebody else gave to you".

In no case is the trade "skipped". If you check "Cap position at X% of account equity" the size will just be reduced to that value.
1
- ago
#4
Perfect thank you for that clarification. The position is downsized to fit the max % rather than skip the trade.
1

Reply

Bookmark

Sort