아래 코드를 해결해줘
//@version=5
indicator('1 Pivot Points High Low v3-1', overlay = true, max_labels_count = 500, max_lines_count = 500, max_bars_back = 5000)
// User Inputs
length = input.int(233, 'Pivot Length')
maxLabels = input.int(10, '최대 라벨 수', minval = 1, maxval = 500)
maxLines = input.int(10, '최대 라인 수', minval = 1, maxval = 500)
// Label Settings
show_length = input.bool(true, '라벨에 Length 표시', group = 'Label Settings')
label_offset = input.float(0, '일반 라벨 위치 조정', minval = -10.0, maxval = 10.0, step = 0.1, group = 'Label Settings')
last_label_offset = input.float(0, '마지막 라벨 위치 조정', minval = -10.0, maxval = 10.0, step = 0.1, group = 'Label Settings')
label_position = input.string('auto', '라벨 위치', options = ['auto', 'above', 'below'], group = 'Label Settings')
show_reg = input.bool(true, 'Regular Pivots', inline = 'inline1')
reg_ph_css = input.color(color.teal, 'High', inline = 'inline1')
reg_pl_css = input.color(color.red, 'Low', inline = 'inline1')
show_miss = input.bool(true, 'Missed Pivots', inline = 'inline2')
miss_ph_css = input.color(color.teal, 'High', inline = 'inline2')
miss_pl_css = input.color(color.red, 'Low', inline = 'inline2')
show_lines = input.bool(true, 'Show Lines', group = 'Line Settings')
line_width = input.int(2, 'Line Width', minval = 1, maxval = 5, group = 'Line Settings')
line_style = input.string('solid', 'Line Style', options = ['solid', 'dashed', 'dotted'], group = 'Line Settings')
style_map = line_style == 'solid' ? line.style_solid : line_style == 'dashed' ? line.style_dashed : line_style == 'dotted' ? line.style_dotted : line.style_solid
all_label_textcolor = input.color(color.rgb(245, 247, 250), 'All Labels Text Color')
label_size_normal = input.string('normal', 'Regular Label Size', options = ['tiny', 'small', 'normal', 'large'], group = 'Label Settings')
label_size_large = input.string('large', 'Last Label Size', options = ['tiny', 'small', 'normal', 'large'], group = 'Label Settings')
// Neural Network Settings
nn_lookback = input.int(10, '학습 기간', minval = 5, maxval = 50, group = 'Neural Network Settings')
nn_threshold = input.float(0.7, '예측 임계값', minval = 0.1, maxval = 1.0, step = 0.1, group = 'Neural Network Settings')
show_predictions = input.bool(true, '예측 표시', group = 'Neural Network Settings')
// 굵은 유니코드 숫자 변환 함수
toBoldUnicode(strIn) =>
string result = strIn
result := str.replace_all(result, '0', '𝟬')
result := str.replace_all(result, '1', '𝟭')
result := str.replace_all(result, '2', '𝟮')
result := str.replace_all(result, '3', '𝟯')
result := str.replace_all(result, '4', '𝟰')
result := str.replace_all(result, '5', '𝟱')
result := str.replace_all(result, '6', '𝟲')
result := str.replace_all(result, '7', '𝟳')
result := str.replace_all(result, '8', '𝟴')
result := str.replace_all(result, '9', '𝟵')
result
// 정규화 함수
normalize(value, min, max) =>
(value - min) / (math.max(max - min, 0.000001))
// 시그모이드 활성화 함수
sigmoid(x) =>
1.0 / (1.0 + math.exp(-x))
// 특징 추출 함수
extractFeatures() =>
var features = array.new_float(4)
array.clear(features)