Hi
I am experimenting with a simple system with following rules:
1.Buy today at close if close is more than open.
2.Sell tomorrow at open if Gaps Up ELSE sell tomorrow at close.
BuyPrice = Close;
SellPrice = IIf(O>Ref(C,-1),O,C);
Buy = C>O;
Sell=Barssince(Buy)==1;
The problem is : if tomorrows close>Open (buy signal ) amibroker Do not sell at Open even if it is a Gap up.which makes it a forward looking system.
I want the system to sell tomorrow at open if Gap UP & again buy at close if Close>Open.
I experimented with exrem & flip but it didnt work for me.
Thanks in advance for any suggestions.
I am experimenting with a simple system with following rules:
1.Buy today at close if close is more than open.
2.Sell tomorrow at open if Gaps Up ELSE sell tomorrow at close.
BuyPrice = Close;
SellPrice = IIf(O>Ref(C,-1),O,C);
Buy = C>O;
Sell=Barssince(Buy)==1;
The problem is : if tomorrows close>Open (buy signal ) amibroker Do not sell at Open even if it is a Gap up.which makes it a forward looking system.
I want the system to sell tomorrow at open if Gap UP & again buy at close if Close>Open.
I experimented with exrem & flip but it didnt work for me.
Thanks in advance for any suggestions.