lundi 7 novembre 2016

Help! AFL code needed.

hello people,

I am a beginner and need help in coding a trading system in afl. I can code in easy language for multicharts but AFL is a tedhi kheer.

if somebody can code the following easy language code in afl i would be grateful :). any help is appreciable.

{Inputs:
Length (14), OverBought (80), OverSold (20);

Variables:
var0(0), var1(0);

var0 = AverageFC ((Close - lowest(l,length) / (highest(H,length) - lowest(low,length)) * 100), 3);
var1 = AverageFC ( var0, 3);

condition1 = marketposition <> 1
and var0 crosses over var1
and var0 < OverSold;
if condition1 then begin
Buy ("Long") next bar at the market;
end;


condition2 = marketposition <> -1
and var0 crosses under var1
and var0 > OverBought;
if condition2 then begin
SellShort ("Short") next bar at the market;

end;}


Help! AFL code needed.

Aucun commentaire:

Enregistrer un commentaire