Just converted the AK_ TREND ID into a strategy , to show the efficiency of this simple indicator. I used SPX in this example, to display that the indicator has been accurate for a long time.
//@version=2 // by algokid , 10/2015 strategy("AK_ TREND ID Monthtly Strategy Version:Basic", overlay=true) // inputs input1 = 3, input2 = 8 , fastmaa = ema(close,input1) fastmab = ema(close,input2) bspread = (fastmaa-fastmab)*1.001 // exeution longCondition = bspread > 0 if (longCondition) strategy.entry("Risk on", strategy.long) strategy.close_all(when = bspread < 0 )
Just be clear , the AK_ Trend ID is not a trading system , hence the warning " for educational purpose only" in big red font. This indicator simply tries identify ideal market regime to invest and stay out . works on a monthly basis.Do not apply this indicator on other securities or other time frame , it will not work.