I did a scan on the chart page in TradingView, but where I got stuck,
Example: I want to get the price that ema50 cuts ema 200 and the instant price of the asset in the frame.
I have the intersecting ones brought, but I could not print the prices. I can't send the samples as photos, I'm attaching them as links.
I made the translation with the translet, sorry for the mistakes
i want to do: https://www.hizliresim.com/o78v4ol
what i can do: https://www.hizliresim.com/ncd7yps
//@version=4
study("tarama")
sure='1'
ema5 =ema(close, 5)
ema10 =ema(close, 10)
long = crossover(ema5,ema10)
short = crossunder(ema5,ema10)
customFuncl() =>long
customFuncs() =>short
t1=input('BTCUSDTPERP', title='Symbol 01',type=input.symbol)
t2=input('ADAUSDTPERP', title='Symbol 02',type=input.symbol)
s1 = security(t1, timeframe.period, customFuncl())
s2 = security(t2, timeframe.period, customFuncl())
s01 = security(t1, timeframe.period, customFuncs())
s02 = security(t2, timeframe.period, customFuncs())
scr_label = 'Long Gir: \n---------\n'
scr_label := s1 ? scr_label + 'BTCUSDTPERP\n' : scr_label
scr_label := s2 ? scr_label + 'ADAUSDTPERP\n' : scr_label
scrs_label = 'Short Gir: \n---------\n'
scrs_label := s01 ? scrs_label + 'BTCUSDTPERP\n' : scrs_label
scrs_label := s02 ? scrs_label + 'ADAUSDTPERP\n' : scrs_label
lab_1 = label.new(bar_index-10, 0, scr_label, color=color.green, textcolor=color.white, style = label.style_label_down, yloc = yloc.price)
label.delete(lab_1[1])
plot(0, transp = 100)
lab_2 = label.new(bar_index, 0, scrs_label, color=color.red, textcolor=color.white, style = label.style_label_down, yloc = yloc.price)
label.delete(lab_2[1])
plot(0, transp = 100)