Jim Dean![]() Sage ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3433 Joined: 3/13/2006 Location: L'ville, GA ![]() | Ah ok. Simple. That line is just at the closing price of the current bar. #system dim s as string s = cstr(c[1]) If (CAW_ZZ(2.5,14) > 0 and CAW_ZZ(2.5,14)[1] < 0 and EMA(9) > C ) then PlotText("WTChange", C-(2*ATR(14)), s) PlotPriceTrendLine( "Level", BAR, Close, BAR+20, close, blue, 3) Signal = LongSignal Else If (CAW_ZZ(2.5,14) < 0 and CAW_ZZ(2.5,14)[1] > 0 and EMA(9) < C ) then PlotText("WTChange", c+(2*ATR(14)), s) PlotPriceTrendLine( "Level", BAR, Close, BAR+20, close, blue, 3) Signal = ShortSignal End If [Edited by Jim Dean on 4/16/2022 2:53 PM] |