Make changes to the tradingview strategy. Pine script.

Job ID: 36048943

Budget: $30 – $250 USD

My strategy is only LONG and the strategy opens a lot of trades (according to the terms of the strategy) and averages the price to bring the take profit closer. But often trades open at the same level and therefore do not average the entry price.

Task: add a filter to the strategy settings in which you can change the percentage from 0.1% to 10%.
This means a condition: for example, I select 1% in the settings and if the price has not fallen more than (for example, 1% from the entry point), then the new signal will not be displayed. If I select, for example, 2%, then the next signal will be displayed no earlier than 2% of the previous signal. Etc.

This is necessary for the correct averaging of trades
Related categories: Pine Script Trading