// // Support level calculation based on the last 14 candles // supportLevel = ta.lowest(l, 14)
// // Buy/Sell Signals // buySignal = ta.crossover(c, o) // Close crosses above Open sellSignal = ta.crossunder(c, o) // Close crosses below Open
// // Buy Signal 2 - After returning near support // buySignal2 = ta.crossover(c, o) and (l <= supportLevel or l - supportLevel < 0.005 * supportLevel)