Есть вот такой скрипт подойдёт он вам или нет не знаю. Работает следующим образом если последние 11 свечей акции имеют размер менее 10 центов каждая, то показывает «1». Подсвечивает если максимум/минимум последних 5 свечей больше или равен максимуму/минимуму за последние 200 свечей. Ставится на М1 или М5 для определения плавности акции, в которой уже была высокая активность.
plot bu = high - low < 0.1 and high[1] - low[1] < 0.1 and high[2] - low[2] < 0.1 and high[3] - low[3] < 0.1 and high[4] - low[4] < 0.1 and high[5] - low[5] < 0.1 and high[6] - low[6] < 0.1 and high[7] - low[7] < 0.1 and high[8]-low[8] < 0.1 and high[9] - low[9] < 0.1 and high[10] - low[10] < 0.1 and high[11] - low[11] < 0.1 and high[12] - low[12] < 0.1;
bu.assignValueColor (if high - low < 0.1 and high[1] - low[1] < 0.1 and high[2] - low[2] < 0.1 and high[3] - low[3] < 0.1 and high[4] - low[4] < 0.1 and high[5] - low[5] < 0.1 and high[6] - low[6] < 0.1 and high[7] - low[7] < 0.1 and high[8] - low[8] < 0.1 and high[9] - low[9] < 0.1 and high[10] - low[10] < 0.1 and high[11] - low[11] < 0.1 and high[12] - low[12] < 0.1 then color.WHITE else color.BLACK);
assignBackgroundColor (if highest(high, 5) >= highest (high,200) then color.DARK_GREEN else if lowest (low,5) <= lowest (low,200) then color.DARK_RED else color.BLACK);