How to write If current Signal is Buy

This has been covered on this forum multiple times. Really searching the forum reveals that most "problems" are already answered. So please use Search facility.
You will find answers QUICKER than when you asking the same questions again.

@twin - highly recommended reading:
http://www.amibroker.com/guide/a_mistakes.html

and

and
http://www.amibroker.com/guide/errors/6.html

and
http://www.amibroker.com/guide/h_understandafl.html

and When scalar becomes an array, aka. type coercion in AFL

1 Like