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

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

1 Answer

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