if (close==bas and dd>dm and rsiv< rsivb) label.new(bar_index, low, "買入", style=label.style_label_up, color=color.green, textcolor=color.white) if (close==haut and dm>dd and rsiv > rsivh) label.new(bar_index, high, "賣出", style=label.style_label_down, color=color.red, textcolor=color.white)