FX:EURUSD   Euro / U.S. Dollar
//@version=2
study("The Cyzner Sauce 2.0",overlay=true)

isHigherHigh() => high>high and high>high and close>close and close>close and close>open and close>open and close>open and low>open and low>open and (open+low)<(open+close)
barcolor(isHigherHigh()? #673ab7 :na)
barcolor(isHigherHigh()?#673ab7 :na, -1)
barcolor((isHigherHigh() and close>open)? #673ab7 :na, -2)


isLowerLow() => low<low and low<low and close<close and close<close and close<open and close<open and close<open and high<open and high<open

barcolor(isLowerLow()? yellow :na)
barcolor(isLowerLow()? yellow :na, -1)
barcolor((isLowerLow() and close<open)? yellow :na
Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.