Maurizio-Ciullo

Indicatore Momentum

Jan 26th, 2022 (edited)
138
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=4
  5.  
  6. study(title="Indicatore Momentum Per Strategie", shorttitle = "Mom", overlay=false)
  7.      
  8.      
  9. // Start Indicatore Momentum Per Strategie /////////////////////////////
  10.  
  11. inp_len_classic = input(defval=10, minval=1, title="Length_Mom_Classic", group="Momentum")
  12. src = input(close, title="Source")
  13. mom_classic = src - src[inp_len_classic]
  14. plot(mom_classic, color=#2962FF, title="MOM_Classic")
  15.  
  16. //inp_len_long = input(defval=10, minval=1, title="Length_Mom_Long", group="Momentum")
  17. //inp_len_short = input(defval=10, minval=1, title="Length_Mom_Short", group="Momentum")
  18.  
  19.  
  20. //inp_mom_long = input(defval=25, minval=1, title="Momentum_Min_Long", group="Momentum") // USARE PER LE STRATEGIE //
  21. //inp_mom_short = input(defval=-25, minval=-250, title="Momentum_Min_Short", group="Momentum") // USARE PER LE STRATEGIE //
  22.  
  23.  
  24. //mom_long = src - src[inp_len_neutral]
  25. //mom_short = src - src[inp_len_short]
  26.  
  27.  
  28. //plot(mom_long, color=#2962FF, title="MOM_Long")
  29. //plot(mom_short, color=#2962FF, title="MOM_Short")
  30.  
  31. // End Indicatore Momentum Per Strategie /////////////////////////////
Add Comment
Please, Sign In to add comment