OPEN-SOURCE SCRIPT

GainzAlgo Standard

// © GainzAlgo

//version=5
indicator('GainzAlgo Standard', overlay=true, max_labels_count=500)

stable_candle = math.abs(close - open) / ta.tr > .5
rsi = ta.rsi(close, 14)

bullish_engulfing = close[1] < open[1] and close > open and close > open[1]
rsi_below_50 = rsi < 50
decrease_over_5 = close < close[5]

bull = bullish_engulfing and stable_candle and rsi_below_50 and decrease_over_5

bearish_engulfing = close[1] > open[1] and close < open and close < open[1]
rsi_above_50 = rsi > 50
increase_over_5 = close > close[5]

bear = bearish_engulfing and stable_candle and rsi_above_50 and increase_over_5

label.new(bull ? bar_index : na, low, 'BUY', color=color.rgb(0, 255, 8), style=label.style_label_up, textcolor=color.white, size=size.large)
label.new(bear ? bar_index : na, high, 'SELL', color=color.rgb(255, 0, 0), style=label.style_label_down, textcolor=color.white, size=size.large)
Cycles

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明