Question submitted by Abraham - 19, Jan 2018

how to avoid repeat signals when the condition changes

Hi, I have a code to buy when the RSI<40 in a day chart. It generate signal when it is less that 40. But the RSI keeps going above 40 and below 40 for some time and during all the time when the RSI goes below 40 buy signal is generated. I want the signal to be generated when it goes below 40 for the first time and want that signal to be active for ever so that unwanted signals are eliminated.

regards
Abraham

Be the first person to answer the above question