Add to the module the ability to activate trailing at an exact price. And a visual display in the terminal (a line that will show the same data as in the SL and TP blocks). Because this is also, in fact, a trigger price. Why couldn't it be implemented right away?
This option is available in the SL and TP modules. And the deviation from the trigger price and the minimum rearrangement step already remains as a percentage.
Why do you need this:
Firstly, when buying a market from a signal, the breakeven price will differ, since in the tradingview strategy, a signal with the market buy price is generated when the bar closes. Hence, the signal output from the position, the percentage that is transferred, will differ. In one case, trailing activation will be lower if the market bought below the price sent with tradingview. Otherwise, it is higher if the market is purchased above the price sent from tradingview. This will lead to the fact that the position may not close, but then go into the red.
Secondly, the percentage adjusts the activation of trailing due to mintick, since in the strategy, for example, interest is also calculated by rounding the trading instrument with the math.round_to_mintick function. This is noticeable every time a percentage is sent to the module, for example, 2.67, and set to 2.68 or higher in the terminal.
As a result, even if a position is opened at the wrong price, higher or lower than the required price, this will eventually lead to a 100% closure of the position when the activation price is reached.
·