I am from India. I have developed an Expert Adviser using MQL4 of Metatrader framework. I am very satisfied with the back testing result. As I have no trading background, I did not know initially that Metatrader is not allowed in India for Auto Trading.
Now I want to switch to Amobroker environment. I want to know whether I can rewrite / convert the logic of MQL4 easily to AFL. It is about 1300 lines of code in MQL4.
I request you to guide me or direct to the right person who can guide me to carry out te conversion.
Regards,
Khagendra Nath Jana
.
@knj1959 , Welcome to the forum.
If you have the ability to code the MQL4 code, then you should have the ability to convert it to AFL.
I would suggest that you take the time to understand that AFL uses array processing.
Here are a couple of links that you should review:
Programming in AmiBroker Formula Language (AFL) is not that different from programming in any other language. If you are looking for general introduction to programming any language tutorial would do because programming is not about the syntax but about general concepts such as variables, functions, loops, etc.
AmiBroker Formula Language is syntactically similar to plain old C and JScript but easier to use. It also has lots of functions that are trading related but general concepts are common i…
Continuing the discussion from How do I learn AFL? :
Many new users with zero programming experience struggle when their formula works incorrectly. Here are few hints that everyone should use to make finding errors easier.
First of all: you have to get insight into what the formula is actually doing, not what you think it does.
Typically new user has no idea what is happening inside. Pretty often you make an assumption that things work one way but in fact they work differently. Do not assume t…
Otherwise you might want to look at the 3rd party services
Please use this thread (and no other thread) to share information about third party services, blogs, courses, books, add-ons. This is intended as user-to-user recommendation, not as a place for commercial advertising.
AmiBroker.com operates on no-ads policy and we allow only genuine recommendations from actual users.
Good Luck
2 Likes