I'd like to setup a buy condition based on a count of the number of down days. For example, I'd like to say, "buy if 3 out of the last 5 days has a lower close".
I thought I could do this with the count() function, but I can't seem to get it to work. Is there an easy way to achieve what I'm trying to do?
Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.