New extremum trend

Script for filtering out periods when market is not trending.

It defines downtrend as following:
Lowest price of last 2 days is equal or lower then lowest price of last 100 days.

Values 2 and 100 are customizable.

Uptrend analogically with highs.
Remove from Favorite Scripts Add to Favorite Scripts
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Help Center Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing TradingView Coins My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out