Advertisement
Maurizio-Ciullo

Indicatore Adx

Jul 21st, 2023
747
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
  2. // © Maurizio-Ciullo
  3.  
  4. //@version=5
  5. indicator("Indicatore Adx")
  6.  
  7. len = input.int(14, minval=1, title="DI Length")
  8. lensig = input.int(14, title="ADX Smoothing", minval=1, maxval=50)
  9. [_, _, adx] = ta.dmi(len, lensig)
  10. plot(adx, color=color.red, title="ADX")
  11. hline(25)
  12.  
  13. cond = adx > 25
  14. bgcolor(cond ? color.silver : na)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement