Hever ston-5
Andicator(*GainzAlgo v2 [Essential]', overlay-true, max_labels_count-590)
show_tp_sl_= input.bool(true, ‘Display TP & SL", grou
the exact TP & SL price levels for BUY 4 SELL signals. ')
rr = dnput.string('1:2, 'Risk to Reward Ratio’, group-"Techical', options=['2:
"2:3, "4:2', '1:4"], tooltip='set a risk to reward ratio (RRR).")
tp sl multi * input.float(a, "TP & SL Multiplier’, 1, group="Techical’,
tooLtip="multiplies both TP’ and SL by a chosen index. Higher = higher risk.
tp-slprec = input.int(2, "TP & SL Precision’, 8, group='Techical')
fechical', tooltip="Display
candle_stability_index_paran = 6.5
rsi_index_paran = 78
candle_delta length param = 4
disable repeating signals_param = input.bool(true, ‘Disable Repeating Signals’
Group-'Techical", tooltip="Renaves repeating signals. Useful for renoving clusters
of signals and general clarity.')
GREEN = color.rgb(29, 255, 40)
RED = color.rgb(255, 8, 8)
TRANSPARENT = color-rgb(®, ®, @, 198)
label_size = input.string( ‘huge’, ‘Label Size", options=['huge', ‘Large’,
‘normal’,
“smaLl', ‘tiny'], group~' Cosmetic")
label_style ~ input.string(' text bubble", ‘Label Style’, [‘text bubble’,
“triangle", ‘arrow'], group='Cosmetic" )
buy_label_color ="input(GREEN, ‘BUY Label Color’ ‘HighLight*,
group "Cosmetic )
SeLl labeLcolor = input(RED, ‘SELL Label color ‘HighLight*,
group "Cosietic’ )
label_text color = input(color.white, ‘Label Text Color’, inLine="HighLight',
group= "Cosmetic" )
stable_candle = math.abs(close - open) / ta.tr > candle stability index param
rsi = ta.rsi(close, i8)
atr = talatr(14)
bullish engulfing = close[4] < open{1] and close > open and close > open{)
si below = rsi< rsi_index param
decrease over = close < close[candle_delta_length_paran]
var last_signal
var tp = 8.
var sl = 8.
bull_state = bulLish_engulfing and stablecandle and rsi_below and decrease_over
and barstate. iscontirmed
bull = bull_state and (disable_repeating signals paran ? (last_signal
true : na) ? true)
“buy! 2
bearish engulfing = close[1] > open[1] and close < open and close < open{)
fsiabove = rsi'> 100 - rsi_index param
increase over = close > close[candle_delta_tength_param]
bear_state = bearish_engulfing and stablecandle and rsi_above and increase_over
and barstate. iscontirmed
vi
i
|
Te
i
i
i
i
!