I’d be really grateful for any assistance as to why this simple code doesn’t work. Above is a screen shot of the eur/usd showing 4 green bars followed by a very long one. All I want the code to do is detect 3 consecutive green bars – the final one of which is a large multiple of the one before – e.g. 5x then sell. Thanks all Linden