Advertisement
Maurizio-Ciullo

Indicatore Session Last Bar

Aug 20th, 2022
809
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Β© DonkeyEmporium
  2. //@version=5
  3.  
  4.                                                       //  Indicatore Session Last Bar  //
  5.                                      // Individua l'ultima barra della sessione su grafico intraday  //  
  6.                                      
  7.                                      
  8. indicator('Indicatore Session Last Bar', overlay=true)
  9. period = input.timeframe('D', title='Period')
  10. is_newbar(res) =>
  11.     t = time(res)
  12.     ta.change(t) != 0 ? 1 : 0
  13. bgcolor(is_newbar(period) == 1 ? color.gray : na, offset=-1, transp=92)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement