Создать новый Pinscript. Выберите Индикатор истинной силы С небольшой модификацией скрипт будет выглядеть следующим образом:
//@version=4
study("True Strength Indicator", shorttitle="TSI", format=format.price, precision=4)
long = input(title="Long Length", type=input.integer, defval=25)
short = input(title="Short Length", type=input.integer, defval=13)
signal = input(title="Signal Length", type=input.integer, defval=13)
price = close
double_smooth(src, long, short) =>
fist_smooth = ema(src, long)
ema(fist_smooth, short)
pc = change(price)
double_smoothed_pc = double_smooth(pc, long, short)
double_smoothed_abs_pc = double_smooth(abs(pc), long, short)
tsi_value = 100 * (double_smoothed_pc / double_smoothed_abs_pc)
tsi_ema = ema(tsi_value, signal)
plot(tsi_ema, color=#FF006E)
plot(tsi_value, color=#3BB3E4)
hline(0, title="Zero")
Теперь создайте свое собственное выражение с переменными tsi_value & tsi_ema
Попробуйте с crossunder или crossover