I am replicating some code that I wrote in C# in AmiBroker (I'm new to AFL). This code triggers the Longs, but never fires a short. The price data has plenty of shorts (proved by C# code). What am I missing? Shorts are essentially the reverse of Longs.
Buy = EMA( Close , 60 ) > Ref( EMA( Close , 60 ) , -2 )
AND ref(Close, -2) < Ref( EMA( Close , 15 ) , -2 )
AND Ref(Close, -1) > Ref( EMA( Close , 15 ) , -1 )
AND Close > EMA( Close , 15 )
AND Close > Open;
Sell = Close < EMA( Close , 15 );
Short = EMA( Close , 60 ) < Ref( EMA( Close , 60 ) , -2 )
AND Ref( Close, -2 ) > Ref( EMA( Close , 15 ) , -2 )
AND Ref( Close, -1 ) < Ref( EMA( Close , 15 ) , -1 )
AND Close < EMA( Close , 15 )
AND Close < Open;
Cover = Close > EMA( Close , 15 );