Newbie here. Trying to write a think or swim script but having some difficulties. What I am trying to do is signal an alert when a bearish outside bar crosses the 25 ema input length = 25; input displace = 0; input showBreakoutSignals = no; #defining engulfing bars def BodyMax = Max(open, close); def BodyMin = Min(open, close); def IsEngulfing = BodyMax > BodyMax[1] and BodyMin <by vette74 - Trading Discussion