Golgistain

Combined Pivot Points (High and Low in One Line)

367 1 18
For Gab
Remove from Favorite Scripts Add to Favorite Scripts
//@version=2
study(title="Combined Pivot Points (High and Low Line)", shorttitle="Pivots", overlay=true)
len = input(7, minval=1, title="Length")

pivot(x) => fixnan(dev((x=='l' ? lowest(len) : highest(len)), len) ? na : (x=='l' ? lowest(len) : highest(len)))

finalPlotLine = barssince(change(pivot("l")) != 0) > barssince(change(pivot("h")) != 0) ? pivot("h") : pivot("l")

plot(finalPlotLine, offset=-len+1)
Hi Golgstain, Just wondering if you can please modify this so that it works for Daily charting. The end of the chart has a new high but it doesn't plot it for some reason.. Kindest regards, Shaun
+1 Reply
United States
United Kingdom
India
Deutschland
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
Malaysia
日本
한국
简体
繁體
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing Priority Support Ideas Published Followers Following Private Messages Chat Sign Out