discountry

Pivot TrendLine with type

Intro

The simplest version of the indicator automatically draws trendLine on your charts, with newest Type syntax.

Type is some thing like type or interface in typescript or Structure in Clang.

with type key word you can write more clear code in pinescript.

Usage

You can change the looking back length settings to get more proper lines you want.

There is also a switch to turn off the historical trendlines .

You can use this to build more advanced indicators or strategies.

微信 Wechat:yubolun001 (备注:TV)
------------
WOO 优惠:
x.woo.org/register?ref=TODAMOON
Bitget 优惠:
partner.bitget.fit/bg/MRSHJ6
OKX 优惠:
www.okx.com/join/86487038
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?