Could this be it?
LE:= H>ref(HHV(H,10),-1)+0.5* Stdev(c,10) ;
SE:= L<ref(LLV(L,10),-1)-0.5* Stdev(c,10);
LX:= (ADX(14)>30 and cross(mov(c,35,e),mov(c,10,e))) or (ADX(14)<20 and Simulation.CurrentPositionAge >=10) or (ADX(14)>20 and ADX(14)<30 and cross(stoch(14,3),85));
SX:= (ADX(14)>30 and...