Does that mean the filter is the highest llv(close,250) over the last 14 days? So if there were four 52 week lows within the last 14 days,the filter would reference the highest LLV?
I tested it with 2 formulas.The first one appears to work as expected
buy =filter and cross(close,sma(close,10));
The second one had results that I could not visually verify...It doesn't appear to work.
buy =close > filter and cross(close,sma(close,10));
It is not the highest llv but rather the highest (llv == close). Since (llv == close) will return either 1 or 0, the fitness will check the past 14 bars and if 1 is found (highest) then 1 is returned (This means that the stock has a 52 week low at least once in the last 14 days).
If you plot this on a chart, you can see how it works.
Plot "a" then plot" fitness".
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.