EvoCrypto

Moving Average Cross

Note: This is just an idea, I did not test this for trading.

MA Cross normally uses close as source in the moving averages, this script uses highs and lows as source.

In an uptrend you will see the 20 period high EMA and 50 period low EMA , once they cross, the indicator will switch to 20 period low EMA and 50 period high EMA . This gives it way less fake crosses as you see in the image on BTC .

As i said above, this is just an idea. If you change the settings, they might not cross at all.. so do your own testing.

Hope this code can help someone.
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.

Want to use this script on a chart?

Comments

Like this indicator )
+1 Reply
Hey man nice indicator. Cool idea to use highs and lows to make the cross more definitive. I use highs and lows for moving averages but I was plotting them for the *same* period, so this is interesting for me.
Reply
EvoCrypto SimpleCryptoLife
@SimpleCryptoLife, Thanks for your comment, glad to hear that :)
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar About Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter