Buy = Cross(H, Ref(PHighPrice,1)) AND Ref(CI,-1) < Ref(EMA(CI,5),-1);
Short = Cross (Ref(PLowPrice, 1), L) AND Ref(CI,-1) < Ref(EMA(CI,5),-1);
CI is a customer indicator defined in the code. When I change the code to this, simply changing > to <:
Buy = Cross(H, Ref(PHighPrice,1)) AND Ref(CI,-1) > Ref(EMA(CI,5),-1);
Short = Cross (Ref(PLowPrice, 1), L) AND Ref(CI,-1) > Ref(EMA(CI,5),-1);
I get no trades in the Automatic Analysis window. I get trade arrows in a chart pane and they are right, but for some reason changing those arrows
causes 0 trades in AA. Any idea what could be causing this.
TIA,
James