@ali_5527 ,
As a "NEW" member of the forum, have you done your homework yet?
Search the forum
It is good idea to search the forum before asking same questions over and over. To search the forum just use magnifying glass icon in the upper right corner
[image]
Also it is good idea to use Google and add +site:amibroker.com to your search term to limit the output to content of amibroker.com web site. Doing so will include results from Knowledge Base and Users' Guide
Enter the AFL code properly
It is of utmost importance as improperly formatted code results in syntax err…
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…
Like most things, you will learn more if you try it yourself first. So, show us YOUR code, or code that you are using (with reference to original coder), how you have modified it, and where it is not giving you what you are looking for. Then you might get some more specific help.
5 Likes