very nice coding! original. --- There is some merit in this type of thinking... I think

The last order in the line is the loser so---- The processing logic hopefully will be effective. -- not an easy task to make work properly. To a certain extent, the ea tries to profit out of random... basically take your "run and get out" before the market decides to b slap ya around..