I have a bunch of Easy Language code that I want to convert to AFL. Has anyone experience of doing this? Is there for example a cross reference of built in routines? Are some of the routines already converted and the AFL code available?
There are quite a lot of these routines I have to implement or find a corresponding AFL routine for:
I have just started so I cant tell yet, thanks for asking. The EL code is from the book "Professional Stock Trading, System Design and Automation" , by Conway, Behle. They call it Acme Trading System. Its about 70 pages EL code. I can post here next routine I get stuck with ;0)
Thanks for your reply, I appreciate it. Just want to clarify, so there is no misunderstanding. I agree, always try first and then ask questions.
That is what "I'm stuck..." means. I have done that. My code so far is nothing to show because it just not make sense. I'm still working on it, for example, using sort(), percentile() but it still not make sense. One of the most basic things in entrepreneurship is to ask questions.
I did not manage to code NthLowestBar. So in the EL code where NthLowestBar is used, I use something else.
A short description:
" A TestBar is a bar that breaks previous support or resistance and then rebounds in the other direction. In a bullish TestBar, the bar breaks below a previous low (cannot be the low of one bar ago) and closes in its top half range."
// local variables
length = 20;
previous_1stLowestLow = Ref( NthLV( L, length-1, 1), -1);
previous_2ndLowestLow = Ref( NthLV( L, length-1, 2), -1);
// bar breaks below a previous lowest Low
L < previous_1stLowestLow
// the 2nd lowest Low is more than two bars away
Ref( L, -1) != previous_2ndLowestLow
Ref( L, -2) != previous_2ndLowestLow
// Close is in the top half of the range
AcmeRangePercent( C, 1) > 0.5;
AcmeRangePercent function tells where in the range (H-L) the close is.
Please comment, I appreaciate it. I haven't used AFL for a while so I'm "rusty".