Thats weird....the forum won't let me post the code correctly????
I can't post any boolean logic symbols.....bollocks!! Ok I'll just post the rule in English.....
If market is trend up and the market trends up for 7 day to 10 days in a row, (again, trend up is making higher highs and higher lows), start following a sell stop under the 7th day up lows to liquidate or go short.