xmd79

Price Channel

Oct 15th, 2021
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
  2. // © ApopheniaPays
  3. // adapted from thinkscript for u/strandedbrewing
  4.  
  5. //@version=5
  6. indicator("Price Channel",overlay=true)
  7. displace=input(0,"Displace")
  8. length=input(75,"Length")
  9. LowerBand=ta.lowest(low[displace], length)
  10. plot(LowerBand,"LowerBand",color.red) //I have no idea what the ToS colors are, change this to whatever you want
  11. HigherBand=ta.highest(high[displace], length)
  12. plot(HigherBand,"HigherBand",color.green)
  13. plot((LowerBand+HigherBand)/2,"MiddleBand",color.yellow)
  14.  
Advertisement
Add Comment
Please, Sign In to add comment