#TTM Scalper Audible Alert by Sergiouz Trader
#Keep CandleOpen and CandleClose Hidden, these are purposed to provide audible alert only to the TTM_Scalper_Alert by John Carter.
input minSwing = 0.0;
def HighPivot = TTM_ScalperAlert(minSwing).PivotHigh;
def LowPivot = TTM_ScalperAlert(minSwing).PivotLow;
plot CandleOpen = open;
plot CandleClose = close;
CandleOpen.SetDefaultColor(Color.UPTICK);
CandleOpen.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
CandleOpen.HideBubble();
CandleOpen.HideTitle();
CandleOpen.Hide();
CandleClose.SetDefaultColor(Color.DOWNTICK);
CandleClose.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
CandleClose.HideBubble();
CandleClose.HideTitle();
CandleClose.Hide();
def Alert1 = CandleOpen and HighPivot [2] == yes;
Alert(Alert1, "Trending Down", Alert.Bar, Sound.Ding);
def Alert2 = CandleClose and LowPivot [2] == yes;
Alert(Alert2, "Trending Up", Alert.Bar, Sound.Ding);