OPEN-SOURCE SCRIPT

Nikko MACD + SMA 200 MEME coin strategy

655
This is an old strategy originally developed by ChartArt in 2015, based on MACD + SMA 200 and written in Pine Script version 2.

I’ve upgraded it to version 6 and significantly improved its performance.

The strategy is actually highly profitable under certain conditions, especially when applied to meme coins. You don’t need to modify anything—just test it directly on volatile assets.

It outperforms the typical “Buy and Hold” approach on many high-volatility coins, particularly memes.

Key Notes:
It’s simple but effective when properly configured.

No need for pyramiding: just sell 100% when bearish and buy 100% when bullish—this tends to yield better results.

The 1-hour timeframe works well. Very short intervals like 2 minutes perform poorly, and overly long ones aren't effective either. Test and adjust.

The equity drawdown is relatively low, so it can be suitable for leveraged trading—though leverage is always risky, and caution is advised.

I believe this is one of the most effective free strategies with open-source code currently available on TradingView.

Example:
FFLOKI on a 30-minute timeframe delivers +683% profit
Starting with $10,000, it ends with over $68,000

It also performs well on PEPE and BBONK, but does not yield strong results with $BTC.

Below is the README:

--------------------------------------------------------------------------------------
// Original by ChartArt
// updated from v2 to v6 and improved some stuff
strategy("Nikko MACD + SMA 200 Strategy (by ChartArt)", shorttitle="Nikko - MACD + SMA 200 Strategy", overlay=true, initial_capital=10000,default_qty_value = 10, pyramiding = 10, default_qty_type = strategy.percent_of_equity, commission_value = 0.06 )

// ChartArt's MACD + SMA 200 Strategy
//
// Version 2.0
// Idea by ChartArt on November 30, 2015.
// updated June 2025 by CryptoNikkoid
//
// Here is a combination of the MACD with the
// slow moving average SMA 200 as a strategy.
//
// This strategy goes long if the MACD histogram
// and the MACD momentum are both above zero and
// the fast MACD moving average is above the
// slow MACD moving average. As additional long filter
// the recent price has to be above the SMA 200.
// If the inverse logic is true, the strategy
// goes short. For the worst case there is a
// max intraday equity loss of 50% filter.
// -------------------
// changed the strategy to close all orders when turning bearish, also fixed some design glitches
// this strategy is working better on short timeframe (5min for example)

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.