Stop loss and position size calculator (ATR)Calculates and plots Stop Loss and Position Size, based on desired ATR factor.
Displays Stop Loss Price, SL Distance Percent and Position Size overlayed in the chart and plots a stop loss line.
Additionally Stop Loss, ATR, SL Distance and Position Size are also displayed in the Data Window.
Available settings:
Trade - long / short
ATR timeframe - Allows to use ATR based on different timeframe than the current chart.
ATR factor - Stop Loss will be calculated by multiplying ATR with this factor.
Show last - Amount of previous stop loss lines to plot
Line Offset - Positions previous sl calculation under/above current price.
Calculation Offset - Displays calculation based on price action of previous bar(s).
Label Display Distance - Defines position of label relative to current bar.
Risk - Amount you are going to risk if stop loss is hit.
Positionsizingtool
Smart SizingSmart Sizing is a simple indicator designed for stock traders to quickly see how many shares you should ideally trade to have an equal amount of risk on all of your trades. It uses your inputted values along with the ATR to determine the right amount of shares you should trade. Since every stock has a different level of volatility just simply buying 100 shares for every trade for example or an equal $ amount like $10,000 will leave your portfolio with concentrated risk in some stocks. If the more volatile stocks turn out to be losers then the wins from the less volatile stocks may not cover the losses, however if your positions were sized according to the volatility of each stock it may have resulted in being profitable overall instead.
That's what the Smart Sizing indicator does, it tells you directly on the chart in a small table and right next to the indicator a value that is how many shares to trade according to your account value and risk objectives. You simply enter in your account value in the indicator settings (I update mine everyday), what % of your account you want to risk, and what ATR Length and Timeframe you wish to use. For example, if you entered your account value at $10,000 with risk percentage at 1% and if you used the daily ATR which was 0.50 then it would show as 200 shares (10,000 x 0.01) / 0.50 = 200 and by trading 200 shares that means if the stock went against you by 1 daily ATR it would equal 1% of your account. So if you used a ATR trailing stop or a fixed stop based on the ATR this indicator can help you determine what your correct position size should be so you can practice good risk management.
Take the example below of two stocks with an almost identical price, Citigroup $C with a last traded price of $50.03 and Exelon $EXC with a last traded price of $50.02, you can see the Smart Sizing indicator is showing to trade 59 shares on Citigroup and 130 shares on Exelon, even though both stocks have almost the same stock price the different recommended position size is because Citigroup is much more volatile than Exelon which is a electric utility.
Please note this indicator is designed for stocks but could also be used for forex but shouldn't be used for futures. It can be used on any timeframe with stocks worldwide.
Jared.
Disclaimer: All my scripts and content are for educational purposes only. I'm not a financial advisor and do not give personal finance advice. Past performance is no guarantee of future performance. Please trade at your own risk.
Position Size By Risk For Bar SizeThis simple script provides a way of calculating position size on a bar by bar basis for a fixed risk amount.
If you are trading a fixed risk amount (e.g. $100) per trade and your Entry and Stop is defined by a specific bar on the chart (any resolution e.g. 15 min, 5 min, 2 min etc) then this indicator will show you the position size you can take.
The user configures the risk amount per trade in the setting for the indicator, the default is 100 (e.g. $100).
It calculates each bar size (high - low) for the resolution of the chart that is being viewed.
The position size = (risk amount) / (bar size).
It then displays a "." (dot) for each bar and to see the position size hover your mouse over this dot .
The pane for this indicator can be set to the top of the chart by using the "Move pane up" option on the chart so that the indicator is easily accessible and discrete at the top of the chart.
Also, there is an option to use this indicator as a substitute for the built-in volume display.