Unfortunately, Know your Max Position size is unavailable
The code has been removed. However, the huge code base still remains at your disposal allowing you to find a suitable code.
Check out other MetaTrader 5 codes:
Simple Yet Effective Breakout Strategy
A simple yet effective donchian channel breakout strategy. This strategy is timeless!
Code blocks for "Counters" like Count "X" time and pass
Here are some examples of codes for set counters based on "Count"
Basic GridManager Library
This is a basic library to create and manage grids.
A Code block to detect A "New Candle/Bar" using bars history (very effective way)
If you only want to execute your code blocks "only once per bar" it's important to check if there is new bar arrived or not.
Candle Analysis Report
This script helps traders understand the distribution and range of candles in a specific period, which can be useful for making trading decisions such as determining which historical values to use for Take Profit or Stop Loss.