I've created an indicator in which there are multiple large arrays and crossovers between the values of those arrays. I want to generate alerts when such crossover takes place. I am trying to use for loop to trigger alerts for multiple crossovers of different values. There are no compilation errors but the script is not triggering alerts.
`
for i = 0 to 24
//Crossovers
cross_1 = ta.crossover(array.get(cvol_s_arr, i), array.get(ema1_arr, i))
cross_2 = ta.crossover(array.get(cvol_s_arr, i), array.get(ema2_arr, i))
cross_3 = ta.crossover(array.get(cvol_s_arr, i), array.get(ema3_arr, i))
if cross_1
alert("" + str.tostring(array.get(s_arr, i)))
if cross_2
alert("" + str.tostring(array.get(s_arr, i)))
if cross_3
alert("" + str.tostring(array.get(s_arr, i)))
` I tried generating alerts this way. It did not caused any compilation errors but it didn't trigger any alerts either. If anyone knows how to solve this issue it'll be of great help!