#Thinkorswim studies #Паттерн "Внешний бар" #Показывает на графике стрелочками те бары, которые переписали и хай и лоу предыдущего бара. #Thinkorswim https://RadchenkoVY.com/TOS def bSignalDown=open[1]high[1] and closeclose[1] and high>high[1] and closeclose[1] and lowhigh[1] or open[1]high[1]; plot down = if bSignalDown then high else double.NaN; plot up = if bSignalUp then high else double.NaN; up.SetPaintingStrategy(paintingStrategy.BOOLEAN_ARROW_up); down.SetPaintingStrategy(paintingStrategy.BOOLEAN_ARROW_down); up.setDefaultColor(color.LIGHT_green); down.setDefaultColor(color.LIGHT_red);