PROTECTED SOURCE SCRIPT
Updated

Auto Risk Calculator

2 675
This script takes the lowest of the last 3 bars on your current time frame and sets that as your stop loss. Then it will takes 2 inputs. Trade Amount, which is how much you're willing to spend on the trade. And Risk Amount, which is the max you're willing to lose one the trade. Then it will calculate how many shares you should buy based the stop loss previously calculated, trade amount, and risk amount.
Release Notes
Fixed a bug that would cause labels to continuously print
Release Notes
Added the functionality to change the time frame the stop is drawn from. Default is 10m.

1H
snapshot

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.