karlor / Publications
Forum
Looking for consecutive up or down bars
Hi, I'm looking for something fairly simple, I believe, but can't seem to make it work. Not sure if there's a better way either. I want to check the close price of the currrent candle with the close price of previous candles. If requirement met, put an order in. This is the code to check for