Skip reverse signal if open signal is in profit

For a long and short strategy with a portfolio of tickers, I would like to skip the reverse signal if there is a profit. For example, if the new signal is long but the short is making money, then skip the new long signal, and if the new signal is short but the long is making money, skip the short. Will this work?

Buy= .....

InLong = Flip( Buy, short );
Inshort = Flip( Short, Buy );

Buy=Buy AND NOT (inShort AND ValueWhen(Short,C) < C);

Short=Short AND NOT (Inlong AND ValueWhen(Buy,C) > C);


I am not sure ValueWhen(Short,C) gives the entry price for short and ValueWhen(Buy,C) the entry price for long. Probably those could be for skipped signals.


  1. Remove Flip()
  2. Uncheck "Reverse entry signal forces exit" option in the Settings
  3. Define Sell and Cover condition appropriately when you actually want to exit

Tomasz, thanks! I will try!

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.