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