import kaigouthro/cleanscreen/2
method Screener ( cleanscreen.panel p , string _name ) => cleanscreens.Screener ( p, _name)
method Indicator ( cleanscreen.screener s , string _tf, string name, float val ) => cleanscreens.Indicator ( s , _tf, name, val)
method display ( cleanscreen.panel p ) => cleanscreens.display ( p )
// Theme names for the theme input a botom (place here)
string GRP1 = "Settings"
// init panel with theme and location
var loc = input.int(9, ' Table loc (1-9)', 1, 9)
var _panel = init(input.string(SILK, 'Theme Choice',
options = ["SEE ANNOTATION"]),
loc)
var tfInput = input.timeframe("", "Higher timeframe", group = GRP1)
if barstate.isfirst
panel.config.theme := input.string ( 'light' , "Theme Variewnt" , options=['light' , 'dark'] , inline='ic' , group='Icons' )
panel.config.cellwidth := input.float ( 7.5 , 'cellwidth' , step=0.5 , inline = "Cellsize" , group=GRP1 )
panel.config.cellheight := input.float ( 7.5 , 'cellheight' , step=0.5 , inline = "Cellsize" , group=GRP1 )
panel.config.textsize := input.string ( size.auto , 'Textsize' , options=[size.auto, size.small, size.normal, size.large, size.huge] , inline = "set" , group=GRP1 )
panel.config.font := input.int ( 15 , 'Font' , 1 , 17 , inline = "set" , group=GRP1 )
panel.config.framewidth := input.int ( 10 , 'Framewidth' , 0 , 20 , inline = "set" , group=GRP1 )
panel.config.borders := input.int ( 1 , 'Borders' , -1 , 10 , inline = "set" , group=GRP1 )
panel.config.vert := input.bool ( true , 'vert' ) //int ( 1 , 'Borders' , -1 , 10 )
// Icons
panel.icons.strong := input.string('๐ธ', 'Strong โผ', inline='ic', group='Icons')
panel.icons.buy := input.string('๐ฐ', 'Buy โก', inline='ic', group='Icons')
panel.icons.sell := input.string('๐ฅ', 'Sell โฃ', inline='ic', group='Icons')
// Add groupd with _screener = _paneel.Screener("Group Name")
// Add indicartors to screeener groups with _screener.Indication( "Indicator Name", _source)
// Update the panel with _paneel.display(_paneel)