daily pastebin goal
75%
SHARE
TWEET

pivots-simpler

memer9161998 Sep 14th, 2018 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. study("PivotHigh", overlay=true)
  2. leftBars = input(10)
  3. rightBars=input(10)
  4. ph = pivothigh(leftBars, rightBars)
  5. pl = pivotlow(leftBars, rightBars)
  6.  
  7. plot(ph, style=cross, linewidth=3, color= red, offset=-rightBars)
  8. plot(pl, style=cross, linewidth=3, color= red, offset=-leftBars)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top