How to write in AFL "Enter long when price crosses above previous bars high (if buy conditions are fulfilled)"?

0 votes
asked Jun 13, 2017 in AFL Code Wizard by YR
How to write in AFL "Enter long when price crosses above previous bars high (if buy conditions are fulfilled)"?

1 Answer

0 votes
answered Jun 13, 2017 by anonymous
Buy = Close > Ref( High, -1 ); // buy if close is higher than previous bar high
commented Jun 13, 2017 by YR
Thank you very much
...