Entrytime OTL
Entrytime OTL
// ------------------------
// Group
// ------------------------
g0 = '//Session Settings//'
g1_01 = '// ♯1 SESSION //'
g1_02 = '// ♯2 SESSION //'
g1_03 = '// ♯3 SESSION //'
g1_04 = '// ♯4 SESSION //'
g1_05 = '// ♯5 SESSION //'
g1_06 = '// ♯6 SESSION //'
g1_07 = '// ♯7 SESSION //'
g1_08 = '// ♯8 SESSION //'
g1_09 = '// ♯9 SESSION //'
g1_10 = '// ♯10 SESSION //'
g4 = '// EMA200 //'
option_border_style1 = '────'
option_border_style2 = '- - - - - -'
option_border_style3 = '•••••••••'
tf1 = timeframe.period=='1'
// ------------------------
// Input
// ------------------------
// ------------------------
// Type and method
// ------------------------
type Session
string sess
string tz
string name
color colour
box[] boxes
int session
// ------------------------
// Session
// ------------------------
// ------------------------
// Ema
// ------------------------
// ------------------------
// Alert
// ------------------------
alertSession(sess, string lbl, bool show) =>
if not na(time(timeframe.period, sess, tz)) and show and alertS
alert('The ' + lbl + ' trading session has opened')