Algokid

AK_ TREND ID AS A STRATEGY : FOR EDUCATIONAL PURPOSES ONLY

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.

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?
//@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 )