Importing strategy from coffeescript

Hi,

I'm new to Amibroker, currently, I have a strategy written in Coffeescript that is used for trading cryptocurrency, I'm looking to optimize its parameters by applying Walk-Forward Optimization.

What's the correct way to generate the logic of the strategy written in Coffescript so it runs in Amibroker?

Thanks for the help!

Coffeescript is essentially JavaScript afaik and most of these general purpose programming languages are scalar with support for Arrays.
AFL on the other hand is an Array Language, read here https://en.wikipedia.org/wiki/Array_programming#Array_languages
so with such little info provided by you, I think you may have to rewrite it (or the most part of it) to leverage the full power of AB.

Understanding how AFL works https://www.amibroker.com/guide/h_understandafl.html