HorseShoe - At Nalı
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © coinsspor

//@version=4
study("HorseShoe - At Nalı", overlay =true)
bearish_ATnali_4renk_sarti=close<close[1] and close[1]>close[2] and close[2]<close[3] and close[3]>close[4]

bullish_ATnali_4renk_sarti=close>close[1] and close[1]<close[2] and close[2]>close[3] and close[3]<close[4]

BirDortUzun_IkiUcKisa_sarti= (abs(close-open) > abs(close[1]-open[1]) and abs(close-open) > abs(close[2]-open[2])) and (abs(close[3]-open[3]) > abs(close[1]-open[1]) and abs(close[3]-open[3]) > abs(close[2]-open[2]))



barcolor( bearish_ATnali_4renk_sarti and BirDortUzun_IkiUcKisa_sarti ? color.red : na)

//plotshape( (bearish_ATnali_4renk_sarti and BirDortUzun_IkiUcKisa_sarti), style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small)

plotchar((bearish_ATnali_4renk_sarti and BirDortUzun_IkiUcKisa_sarti),location=location.abovebar, char='🐴',color=color.red, size=size.tiny)
//plotchar((bearish_ATnali_4renk_sarti and BirDortUzun_IkiUcKisa_sarti),location=location.belowbar, char='Ʊ',color=color.red, size=size.tiny)



barcolor( bullish_ATnali_4renk_sarti and BirDortUzun_IkiUcKisa_sarti ? color.green : na)

//plotchar((bullish_ATnali_4renk_sarti and BirDortUzun_IkiUcKisa_sarti),location=location.abovebar, char='Ʊ',color=color.green, size=size.tiny)
plotchar((bullish_ATnali_4renk_sarti and BirDortUzun_IkiUcKisa_sarti),location=location.belowbar, char='🦄',color=color.green, size=size.tiny)