help me fix this code : 
indicator(title="Flat Moving Average with Fibonacci Channel", overlay=true)

// Input parameters
maPeriod = input(200, title="Moving Average Period")
fibLevel1 = input(0.236, title="Fib Level 1")
fibLevel2 = input(0.382, title="Fib Level 2")
fibLevel3 = input(0.618, title="Fib Level 3")
fibLevel4 = input(0.786, title="Fib Level 4")
fibLevel5 = input(1.0, title="Fib Level 5")
fibLevel6 = input(1.236, title="Fib Level 6")
fibLevel7 = input(1.618, title="Fib Level 7")

// Calculate the Simple Moving Average
smaValue = ta.sma(close, maPeriod)

// Determine the sideways market condition
sidewaysCondition = ta.stdev(close, maPeriod) <= ta.stdev(close, maPeriod * 2)

// Calculate the Moving Average that follows price movements when significant
var float flatMaValue = na
flatMaValue := sidewaysCondition ? flatMaValue[1] : smaValue

// Calculate Fibonacci levels around the Flat Moving Average
fibLevels = [fibLevel1, fibLevel2, fibLevel3, fibLevel4, fibLevel5, fibLevel6, fibLevel7]
fibonacciValues = array.new_float(0)
for fibLevel in fibLevels
    fibValue = flatMaValue + fibLevel * (flatMaValue - low)
    array.push(fibonacciValues, fibValue)

// Plot the Moving Average with changing color based on price relation
plot(flatMaValue, title="Flat Moving Average", color=close > flatMaValue ? color.green : color.red, linewidth=2)

// Plot the Fibonacci Channel lines
for i = 0 to array.size(fibonacciValues) - 1
    line.new(x1=bar_index[1], y1=array.get(fibonacciValues, i)[1], x2=bar_index, y2=array.get(fibonacciValues, i), color=color.blue, width=1, extend=extend.none)

// Hide the plot when there is no data
plot(na)
 The word "sidewayscondition" should not appear in your response.
user