predictions_LUKE_MACVICAR
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © civilOatmeal94139

//@version=5
indicator("predictions", overlay=true)

var string  predictionsInput = ' '
var string  separator_space  = ','
var float prediction = 12000

predictionsInput := input(" ")

array1 = str.split(predictionsInput, separator_space)   // split by space character so there will be 3 elements in the array

var string labelText = na
labelText += '\nContent of array1 = '  + (array.get(array1,0))
for i = 0 to array.size(array1) - 1
    prediction := str.tonumber(array.get(array1, i))
    line.new(time, prediction, bar_index, prediction, xloc.bar_time, color=color.red)
        
    
     
    
