TradingView
bennef
2 Okt 2019 pukul 09.39

Golden/Death X BF 🚀 

BNC1/BLXQUANDL

Deskripsi

A golden cross occurs when the 50 MA crosses above the 200 MA.
A death cross occurs when the 50 MA crosses below the 200 MA.

You can adjust the following settings for each Moving Average:

  • Source - open, high, low, close, hl2, hlc3, ohlc4
  • Type - sma, ema, swma, wma
  • Period - integers greater than 0


The chart background turns green or red upon a cross.

Catatan Rilis

Added alerts, long for a golden cross, short for a death cross.

Catatan Rilis

Added Buy/Sell shapes instead of bg lines. Updated Timeframe

Catatan Rilis

Small comments added
Komentar
cao151216
你好,指标很好,能不能在这个指标上多增加一条均线,可以设置这均线上的两条均线交叉时只做多信号,反之,均线下交叉只做空信号,谢谢
blissfulStar
This script is bad ass and you are a bad ass programmer. This was the same idea I was trying to write, but when I discovered how clean your code was, I was like DAMMMN son! I got a new BF son.
bennef
@blissfulStar, I'm happy you found it useful. Obviously feel free to modify it for your own purposes; all my open-source scripts are on TradingView. This script could do with bringing up to date to be honest.
infamouscrypto
great script! how would alerts be set up for it? Can't figure out a way. Thanks!
bennef
Lebih lanjut