[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AFL question: confirming a signal



PureBytes Links

Trading Reference Links

Hello,

I want to follow a buy signal only when it's confirmed by the price 
rising above the High of the bar when the signal was originally 
given. So e.g. bar #1 my buying conditions are met, but I don't buy 
yet, during bar# 2 the price remains under #1's High, I don't buy; 
during bar #3 the price rises above #1's High: I buy at that price. 
(Effectively I never buy on bar #1)
(Aka "extreme point rule")

So I have something like:
Buy = Cond1 AND Cond2 (etc);

1. But then I don't really want to buy yet, I will wait till during 
one of the next 4 or 5 bars the price rises above the High of the 
signal's bar. So I change "Buy" into "Buysignal" or so and make a 
new "Buy". But how would I formulate this? It's probably something 
with BuyPrice and IFF I guess, but I can't figure out how.

Or would I have to rewrite the whole formula?

2. I don't want to wait too long for a confirmation either, so if 
there's no confirmation within 5 bars, I will not buy, and don't want 
a signal anymore.

Any help appreciated.

allm4m.