Trendline LE Alert

I am trying to modify the default Trendline LE signal to become an alert when the price crosses above the manually drawn Trendline se code below. Although it compiles I get a message "Error in study Trying access at data to future. Bars reference valu: -1" ...Please help. Thanks

designer01 wrote:I am trying to modify the default Trendline LE signal to become an alert when the price crosses above the manually drawn Trendline se code below. Although it compiles I get a message "Error in study Trying access at data to future. Bars reference valu: -1" ...Please help. Thanks