Indicator based on marginal zones (according to Mityukov Sergey). In open source.
Formula for calculating the margin:
Margin size / cost tick * minimum price change
Example:
EURUSD = 2100 $ / 6.25 $ * 0.00005 points = 0.01680 points
....
For currency pairs where USD is in the first place it is necessary to write so that the indicator is taken away from zero
Iff...