1
我正在复制一些我在AmiBroker(我是AFL新手)编写的代码。这段代码触发了Longs,但从未触发过短。价格数据有很多短裤(由C#代码证明)。我错过了什么? Shorts基本上与Longs相反。AmiBroker AFL code - Shorts not firing
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);
什么是AmiBroker?什么是AFL?如果你解释了这是什么,以及它与C#编程有什么关系,你可能会得到更多的答案。 – RenniePet 2014-09-11 09:46:04
这不是C#,但我没有足够的代表来创建新的标签。 AmiBroker的人会知道它是什么。 :) – 2014-09-11 11:44:08
搜索了AmiBroker,这些是通常用于有关问题的一些标签。所以你不会感到沮丧的C#程序员出现在这里。 – RenniePet 2014-09-11 11:57:39