Hi,
I'm using the TTM Scalper Alert that comes with TOS. It prints an arrow on the chart when a specific sequence of candles shows up.
How do I set an alert so it can alert when the arrow prints?
Thanks
Hi all I am new here. The TTM Scalper Alert in TOS, can we add a bubble so the arrow would change from and Red sell or Green Buy to bubble Reversal. Has anyone used this before or have one already done? Thank you
This was done awhile ago, but may help with both your requests. This uses a reference to the indicator as the actual indicator's code is hidden.
The code includes options for arrows, bubbles, alerts, scan, trend counts, and price coloring. Also, remember that this indicator repaints as it uses future bars to determine changes in trend. For example, the price color of the last 2 bars will change to red/green once 2 future bars are determined.
Ruby:#TTM_ScalperAlert #BLT input minSwing = 0.0; input tickOffset = .5; def PH = TTM_ScalperAlert(minSwing).PivotHigh; def PL = TTM_ScalperAlert(minSwing).PivotLow; #Arrows input showarrows = yes; plot ph1 = if showarrows and PH then high else Double.NaN; plot pl1 = if showarrows and PL then low else Double.NaN; ph1.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN); pl1.SetPaintingStrategy(PaintingStrategy.ARROW_UP); ph1.SetDefaultColor(Color.RED); pl1.SetDefaultColor(Color.GREEN); #Bubbles input showbubbles = yes; AddChartBubble(showbubbles and ph1, high, "Sell", Color.RED); AddChartBubble(showbubbles and pl1, low, "Buy", Color.GREEN, no); #Trend Count Label rec phc = if PH == 1 then 1 else if PL == 1 then 0 else phc[1]; rec plc = if PL == 1 then 1 else if PH == 1 then 0 else plc[1]; rec phcount = if phc[1] == 0 and phc == 1 then 1 else if phcount[1] >= 1 and phc == 1 then phcount[1] + 1 else 0; rec plcount = if plc[1] == 0 and plc == 1 then 1 else if plcount[1] >= 1 and plc == 1 then plcount[1] + 1 else 0; def phh = if phc[2] == 1 then 1 else 0; input showlabel = yes; AddLabel(showlabel, if phh == 1 then "DOWN " + (phcount[2] + 2) else "UP " + (plcount[2] + 2), if phh >= 1 then Color.RED else Color.GREEN); #Scan Code plot scan = PH[2] == 1 or PL[2] == 1; #Alerts input SoundAlerts = Yes; Alert(SoundAlerts and PH[2] == 1, "Down", Alert.BAR, Sound.Ding); Alert(SoundAlerts and PL[2] == 1, "Up", Alert.BAR, Sound.Ding); #Candle Color input colorPrice = Yes; AssignPriceColor(if colorPrice then if phc == 1 then Color.RED else Color.GREEN else Color.CURRENT);