I'm a newbie in Amibroker, in fact this is my second post in this forum. I'm trying to learn, but that's not easy if you are not computer scientist or something like that...
So, now I'm triying to place myself into little tasks. For instance right now I looking for a system that looks for gaps down, with more or equal to 30%, and then past five days of that gap, buy.
Then hold for one year, or when you have a profit around 20%, just sell.
In "easy" coding will be:
If gap >= 30% AND day=5 BUY If day= 365 or price >= 20% SELL
Somebody could help me to place this into AFL language?
And if I would like to change the second condition (price>=20%) for a trailing take profit, how it will be?
Thanks a lot, and sorry for such an easy question. I promise I will improve.