Classic hedge parameters
These fields are classical. They are set separately for the long base position and the short base position. The percentage of volume from the base position, the percentage of price change and the percentage of the result of the pair are calculated from different values.
Minimum volume and levels
The Minimum position size sets the threshold for the value of the main position in the quotation currency. Before the hedge is broken down, the robot compares the amount of an asset multiplied by the current price of the marking to that threshold. If the value is equal to or less, the first hedge does not open.
In the Hedging levels block, enter levels one through eight. For each, indicate the price drop relative to the entry into the main position and the target volume of the counter position as a percentage of the number of assets in the main position.
The drop and volume of each next level should be significantly higher than the previous one. All the values are positive. When the robot reaches several thresholds, it takes the deepest level and shares the difference to its target, taking into account the existing hedge and the expected execution of the valleys.
The levels are not folding. If in the learning example, the first goal is 20% of the main position, and the next 40%, the second goal means the total hedge of 40%, not 60%. It's an illustration of the calculation, not a set of settings for trading.


Limiting the volume without stopping
Min. volume without SM and Max. volume without SM set limits in percentages of the number of assets in the main position. Turn on and check both fields together: the limit in the algorithm applies when both boundaries are set.
The upper limit limits the additional volume for which no stop has yet been taken into account. The bottom one sets the minimum allowable next-line portion: if after the limitation there is less than that value, the robot misses the opening. The first level volume should not be less than the included lower boundary form checks this before saving.
These fields do not limit the total amount of positions in the account. The resulting yield also changes the rounding of the quantity according to the instrument rules and the result of the exchange's order acceptance.
The stops for the parts of the hedge
Set SM trigger, % — a favorable price change in price in favor of a particular part of the hedge relative to its entry price. When the threshold is reached, the robot tries to put a stop-market on that part.
SM in B/U for the hedge portion, % distance from the entry price of that portion to the profit-side hedge footing price. This field sets the price of the stop; the trigger above sets the condition for its exposure. The name B/U does not guarantee zero loss after commission, funding and actual execution.
The Maximum number of active SMs is 3 to 8. When the limit is filled, the robot can cancel one of the previously displayed stops to set a stop for the other part of the hedge. The limit refers to the simultaneous active footprint, not the number of parts of the position.
Safe areas
The safe zone to the main, % and the safe zone to the hedge, % set boundaries around the price of the set stop: one in the direction of the main position, the other opposite.
As long as the price of the marking is within any existing safe-zone, including its boundaries, new levels of hedge do not open. The zone is removed when the price goes beyond its boundary in the direction of the main position. An exit to the opposite side does not remove the zone by itself.
Steam closure
The percentage of the pair closure is compared to the result of the main and the opposite positions. The robot composes their current accounting result and the accumulated result of the closed parts of the hedge, then divides the sum by the total value of the entry of both open positions.
With an equal or greater percentage, the robot sends market orders to both parties to close. It's a percentage of the value of the position, not a deposit or margin used. A calculation of the threshold does not guarantee the same result after execution: check both positions and the history of the transactions.
Management of the main position taek profit
Removing the taek-profit of the main position allows the robot to cancel its closing orders when the hedge is opened and remove new closing orders while the hedge is running. Don't expect any separate closing orders to remain intact.
When the amount of the hedge becomes zero, the robot tries to restore the profit at the retained prices to the current volume of the underlying position. The recovery depends on the exchange's response; the original distribution of the quantity between several orders should not be considered preserved.
Before you save, check both directions and the task area. Values in form and copy settings are not a recommendation; increasing the conversion volume adds requirements to the margin and does not guarantee an improvement in the result.