Advertisement
cnws02

Candle midpoint

Oct 9th, 2022
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. //@version=5
  2. indicator("Midpoint", overlay=true)
  3.  
  4. // NOTE: Indicator MUST be located above the price in the object tree to be visible.
  5.  
  6. midColor = color.rgb(255, 255, 255)
  7.  
  8. midPoint = (open + close) / 2
  9.  
  10. plotcandle(midPoint, midPoint, midPoint, midPoint, title = '', color = midColor,
  11. wickcolor = na, bordercolor = midColor, editable = false,
  12. display = display.all - display.status_line - display.data_window)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement