Hi,
Can anyone tell me what the following easy language line is doing:
p:=Var>Ref(Var,-1); q:=Var<Ref(Var,-1);
Obviously it is setting p and q to some value...but the conditional for the value throws me. It seems that it could be either trying to set P and q to true or false, but this doesn't make sense to the rest of the code.
It seems it could also be saying set P to the greater of either Var or Var from one bar ago and q to the lesser of Var or Var one bar ago. This would kind of make sense...but I want to make sure I am correct.
Garth
Can anyone tell me what the following easy language line is doing:
p:=Var>Ref(Var,-1); q:=Var<Ref(Var,-1);
Obviously it is setting p and q to some value...but the conditional for the value throws me. It seems that it could be either trying to set P and q to true or false, but this doesn't make sense to the rest of the code.
It seems it could also be saying set P to the greater of either Var or Var from one bar ago and q to the lesser of Var or Var one bar ago. This would kind of make sense...but I want to make sure I am correct.
Garth
Comment