Here is a simple afl code which is the modified version of EMAavg afl code, which finds the near bottom most of time and can be trade for reversal with mimimal stop loss. Trading system suits EOD timeframe and delivery based buying. Exit signals are not yet coded as of now and currently the system suits only Buy Signals on EOD timeframe. One need to preplan his/her Exit manually. Code has its own advantages and Disadvantages, so try to interpret the signal manually before entering into any sort of trade.