wosabi Investment assistant and Swing trading CRYPTO
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © ahmadALwosabi

//@version=5
indicator("wosabi Investment assistant and Swing trading CRYPTO","waist",overlay = false)

//خاص بمؤشرات المتوسطات




widthInput_1 = input.int(20, minval=1, title="width line horzintal", group="width line horzintal")
var vstyletype1 = plot.style_steplinebr
symbol_100 = syminfo.tickerid
Piriod_101 = input(7,title ='ema Symbol_1 1' )  //630
index_101 = request.security(symbol_100,timeframe.period, close > ta.ema(close,Piriod_101))
plot(90 ,title='1',color=index_101?color.green:color.red,linewidth = widthInput_1,style =vstyletype1)
hline(87.5, "split", color=color.new(#ffffff, 10),linewidth = 1,linestyle=hline.style_dotted)
Piriod_102 = input(21,title ='ema Symbol_1 2' )  //630
index_102 = request.security(symbol_100,timeframe.period, close > ta.ema(close,Piriod_102))
plot(85 ,title='2',color=index_102?color.green:color.red,linewidth = widthInput_1,style=vstyletype1)
hline(82.5, "split", color=color.new(#ffffff, 10),linewidth = 1,linestyle=hline.style_dotted)
Piriod_103 = input(140,title ='ema Symbol_1 3' )  //630
index_103 = request.security(symbol_100,timeframe.period, close > ta.ema(close,Piriod_103))
plot(80 ,title='3',color=index_103?color.green:color.red,linewidth = widthInput_1,style =vstyletype1)
hline(77.5, "split", color=color.new(#ffffff, 10),linewidth = 1,linestyle=hline.style_dotted)
Piriod_104 = input(360,title ='ema Symbol_1 4' )  //630
index_104 = request.security(symbol_100,timeframe.period, close > ta.ema(close,Piriod_104))
plot(75 ,title='4',color=index_104?color.green:color.red,linewidth = widthInput_1,style =vstyletype1)
hline(72.5, "split", color=color.new(#ffffff, 10),linewidth = 1,linestyle=hline.style_dotted)
Piriod_105 = input(720,title ='ema Symbol_1 5' )  //630
index_105 = request.security(symbol_100,timeframe.period, close > ta.ema(close,Piriod_105))
plot(70 ,title='5',color=index_105?color.green:color.red,linewidth = widthInput_1,style =vstyletype1)
hline(65, "split", color=color.new(#ffffff,  10),linewidth = 3,linestyle=hline.style_dotted)  


symbol_200 = input.symbol(title='Symbol_2', defval='CRYPTO:BTCUSD')
Piriod_201 = input(7,title ='ema Symbol_2 01' )  //630
index_201 = request.security(symbol_200,timeframe.period, close > ta.ema(close,Piriod_201))  
plot(60 ,title='01',color=index_201?color.green:color.red,linewidth = widthInput_1,style =vstyletype1)
hline(57.5, "split", color=color.new(#ffffff, 10),linewidth = 1,linestyle=hline.style_dotted)   
Piriod_202 = input(21,title ='ema Symbol_2 02' )  //630
index_202 = request.security(symbol_200,timeframe.period, close > ta.ema(close,Piriod_202))
plot(55,title='02',color=index_202?color.green:color.red,linewidth = widthInput_1,style =vstyletype1)
hline(52.5, "split", color=color.new(#ffffff, 10),linewidth = 1,linestyle=hline.style_dotted)   
Piriod_203 = input(140,title ='ema Symbol_2 03' )  //630
index_203 = request.security(symbol_200,timeframe.period, close > ta.ema(close,Piriod_203))
plot(50 ,title='03',color=index_203?color.green:color.red,linewidth = widthInput_1,style =vstyletype1)
hline(47.5, "split", color=color.new(#ffffff, 10),linewidth = 1,linestyle=hline.style_dotted)   
Piriod_204 = input(360,title ='ema Symbol_2 04' )  //630
index_204 = request.security(symbol_200,timeframe.period, close > ta.ema(close,Piriod_204))
plot(45 ,title='04',color=index_204?color.green:color.red,linewidth = widthInput_1,style =vstyletype1)
hline(42.5, "split", color=color.new(#ffffff, 10),linewidth = 1,linestyle=hline.style_dotted)   
Piriod_205 = input(720,title ='ema Symbol_2 05' )  //630
index_205 = request.security(symbol_200,timeframe.period, close > ta.ema(close,Piriod_205))
plot(40 ,title='05',color=index_205?color.green:color.red,linewidth = widthInput_1,style =vstyletype1)
hline(35, "split", color=color.new(#ffffff, 10),linewidth = 3,linestyle=hline.style_dotted)   


symbol_300 = input.symbol(title='Symbol_3', defval='FX:USDOLLAR')
Piriod_301 = input(7,title ='ema Symbol_3 01' )  //630
index_301 = request.security(symbol_300,timeframe.period, close > ta.ema(close,Piriod_301))      
plot(30 ,title='001',color=index_301?color.red:color.green,linewidth = widthInput_1,style =vstyletype1)
hline(27.5, "split", color=color.new(#ffffff, 10),linewidth = 1,linestyle=hline.style_dotted)   
Piriod_302 = input(21,title ='ema Symbol_3 02' )  //630
index_302 = request.security(symbol_300,timeframe.period, close > ta.ema(close,Piriod_302))
plot(25 ,title='002',color=index_302?color.red:color.green,linewidth = widthInput_1,style =vstyletype1)
hline(22.5, "split", color=color.new(#ffffff, 10),linewidth = 1,linestyle=hline.style_dotted)   
Piriod_303 = input(140,title ='ema Symbol_3 03' )  //630
index_303 = request.security(symbol_300,timeframe.period, close > ta.ema(close,Piriod_303))
plot(20 ,title='003',color=index_303?color.red:color.green,linewidth = widthInput_1,style =vstyletype1)
hline(17.5, "split", color=color.new(#ffffff, 10),linewidth = 1,linestyle=hline.style_dotted)   
Piriod_304 = input(360,title ='ema Symbol_3 04' )  //630
index_304 = request.security(symbol_300,timeframe.period, close > ta.ema(close,Piriod_304))
plot(15 ,title='004',color=index_304?color.red:color.green,linewidth = widthInput_1,style =vstyletype1)
hline(12.5, "split", color=color.new(#ffffff, 10),linewidth = 1,linestyle=hline.style_dotted)   
Piriod_305 = input(720,title ='ema Symbol_3 05' )  //630
index_305 = request.security(symbol_300,timeframe.period, close > ta.ema(close,Piriod_305))
plot(10 ,title='005',color=index_305?color.red:color.green,linewidth = widthInput_1,style =vstyletype1)


// اسماء الرموز

string sym1             = symbol_100
sym1name = syminfo.ticker
string sym2             = symbol_200
sym2name = syminfo.ticker(sym2)
string sym3             = symbol_300
sym3name = syminfo.ticker(sym3)


// Plot Table 
var RSI_table    = table.new(
     "middle" + "_" + 'left', columns=1, rows=4, bgcolor=color.rgb(255, 82, 82, 50), 
     frame_color=color.gray, frame_width = 1, border_color=color.new(color.green, 70), border_width = 1)
     
Cell = 0
table.cell       (RSI_table    , 0, Cell, text = str.tostring(sym1name)              , text_color = color.white ,bgcolor=color.new(color.blue, 70), text_size = size.auto,height=15)

Cell := 01
table.cell       (RSI_table    , 0, Cell, text = str.tostring(sym2name)              , text_color = color.white,bgcolor=color.new(color.blue, 70) , text_size = size.auto,height=15)

Cell := 02
table.cell       (RSI_table    , 0, Cell, text = str.tostring(sym3name)              , text_color = color.white,bgcolor=color.new(color.blue, 70) , text_size = size.auto,height=15)
//End