Because I’m sure you’ve all been here – I have spent all day NOT understanding why:
Buy = Ref(Buysetup,-1) AND High >= (Buystop,-1);
….. was returning an error message relating to the , in the (buystop,-1) section.
Finally figured out that if I removed the comma it comma it worked – meaning that syntax was thinking it was looking at a number, but the ,-1 bit was asking the code to look one day back.
The missing REF – ref(buystop,01) fixed the problem.
All day, friends. All day.