Here's the problem, I know what should work, but in what way, I can't formulate it. On a certain time interval, e.g. a week, I need to find ALL horizontal channels with a width of e.g. 50pp. Additional signs of beginnings and endings of fluxes: 1
Above and below from the price with a step - delta1 you set the limit orders, at a distance from each other with a step - delta2. Put the lot size into the variables. Take equals delta2, we do not set the stop loss. When closing a position by Take