I will provide the open source of the indicator that filters the position size in relation to your account capital and risk for Trading View
PS: Just drag the vertical line to the bar that the trader triggers, previously select if it is a long or short entry
Charasteristics
Pivot Time: What will have to drag the trigger candle
Increase Margin: Move the text to the right
Target Mode: Multiplier is the multiplier related to the trigger candle
Profit Target Price: Select the price manually by changing Target Mode to Price
Derivatives: Select if you will trade Crypto, Futures or Stocks
Direction: Long or Short
Reversal Offset: Move the number of bars to the right in relation to the trigger candle
Offset Ticks: Tolerance for Entry and Stop
Account Size: Your capital
Risk: Percentage of risk you want to take
Currency Multiplier: Leverage only for Crypto
Point Value: Only for Futures, you will have to consult your broker
Visuals: Choose color of lines and text that you want most