Walter,
Here are the rules:
Enter long C>(Ref(HHV(H,1),-1)*(1.005))
Close long C<(Ref(LLV(L,1),-1)*(1.005))
Enter short C<(Ref(LLV(L,1),-1)*(1.005))
Close short C>(Ref(HHV(H,1),-1)*(1.005))
interpretation of the first line:
Enter Long if the close of the current bar is greater than the...