Spécifications
I have 2 custom indicators. Each of them has some price levels indicated. I need 2 other indicators that give a logical false/true for buy or sell conditions. These conditions should be calculated by evaluating a simple logics(bounce) on the price levels given by the original indicators.
Finally I need those logical function values in the data window to see if there are bounces(2 for each indicator, one for buy one for sell).
Bounce up: Bid price shown by the actual tick is higher than level AND any of the previous 5 candle lowest is lower than level AND any of the previous 5 candle close price is higher than level.
Bounce down: Bid price shown by the actual tick is lower than level AND any of the previous 5 candle highest is higher than level AND any of the previous 5 candle close price is lower than level.
Round Number: indi 2 price levels to check, upper for bounce down, lower for bounce up.
Auto Fibo Pivot: 7 price levels to check(S3,S2,S1,P,R1,R2,R3)
Bounces to check:
R1, Piv ,S1 up and down(3 times 2= logical expressions to check)
S2,S3 only bounce up(2 expressions to check)
R2,R3 only bounce down(2 expressions to check)
Any of the 10 logical check is true for Pivot indi, then the bounce logical function is true in that direction.
Note, that at Auto Fibo Pivot Fibo indicator an additional check are needed for not bigger/smaller then R3/S3 is needed only for bounces at S1,R1, and Pivot.
No need for historical signals, evaluation my start from the candle t5.