TradingView
Algokid
Jul 3, 2014 3:26 PM

AK TREND ID v1.00 

S&P 500SP

Description

Hello,

"Are we at the top yet ? "........ " Is it a good time to invest ? " ......." Should I buy or sell ? " These are the many questions I hear and get on the daily basis. 1000's of investors do not know when to go in and out of the market. Most of them rely on the opinion of "experts" on television to make their investment decisions. Bad idea.Taking a systematic approach when investing, could save you a lot of time and headache. If there was only a way to know when to get in and out of the market !! hmmmm. The good news is that there many ways to do that. The bad news is , are you disciplined enough to follow it ?

I coded the AK_TREND ID specifically to identified trends in the SPX or SPY only . How does it work ? very simply , I simply plot the spread between the 3 month and 8 month moving average on the chart.

If the spread > 0 @ month end = BUY
if the spread < 0 @ month end = SELL

The AK TREND ID is a LAGGING Indicator , so it will not get you in at the very bottom or get you out at the very top. I did a backtest on the SPX from 1984 to 7/2/2014 (yesterday), The rule was to buy only when the AK TREND ID was green. let's look at the result:

14 trades : 11 W 3 L , 78.75 % winning %
Biggest winner (%) = 108 %
Biggest loser (%) = -10.7 %
Average Return = 27 %
Total Return since 1984 = 351.3 %
You can see the result in detail here : docs.google.com/spreadsheets/d/1-w9f8zlXunrV5dbTc5i3gJN-55vxPTySQv0ooCJCnu0/edit?usp=sharing

Although the backtesting results are good, the AK TREND ID is not to be used as a trading system. It is simply design to let you know when to invest and when to get out. I'm working a more accurate version of this Indicator , that will use both technical and fundamental data. In the mean time , I hope this will give some of you piece of mind, and eliminate emotions from your trading decision. Feel free to modify the code as you wish, but please share your finding with the rest of Trading View community.

All the best

Algo
Comments
ekoronin
I am a little confused as to why so much hustle - wouldn't this be a simply MACD (3,8) ? See chart...

cjohnson28
@MarxBabu, how can i set an alert to go off on color change? Thanks for the great script
Mulisha
@cjohnson28, Hey did you figure out how to set alarms for the colour change? Thanks.
Brnzz
What ? MACD 3,8 give exactly the same results...
Can i have explanations of your "algo" ?
Algokid
Good backtesting results with gold futures (GC1!) , however, this wasn't coded for that .
UnknownUnicorn2770340
@Algokid, do you have an MT4 version
Staceylux
@Algokid, I wanted to know if you coded this indicator in mql4 for mt4 as well?
DepeshMode1
hey awesome indicator bro helps me identify entry points on a 1min chart. cheers :)
Algokid
Thanks for your feedback Depesh
More