Pine script indicator trading view

via Freelancer ·

Budget / Salary$30–250
TypeFreelance project
LocationRemote
Posted1 hour ago
i need a tradingview pine script to make an indicator for the following:

1. Timeframe

Levels are calculated only from H1 (1-hour) candles.
Use RTH H1 data even if the chart is on a different timeframe (request the 1H series).

2. Session

RTH only: 9:30 AM – 4:00 PM New York time.
Ignore extended hours / overnight completely.
Start aggregation at the regular market open.

3. How a Level is created (“confirmed”)

Look at consecutive completed H1 RTH candles.
A candle is bullish if close > open, bearish if close < open.
A doji (close == open) breaks the sequence.
When the direction flips (previous bearish → current bullish, or previous bullish → current bearish):
Draw a horizontal level at the open of the current (color-changing) candle.

Only the open of the body matters. Ignore wicks entirely (“HIT THE BODY”).

4. How a Level is invalidated / deleted

A level is invalidated only when an H1 RTH candle’s body closes through it:
Candle opens on one side of the level and closes on the other side.

Wicks that pierce the level do not count.
Once invalidated, delete the level (it is no longer an institutional pivot).
Preferred timing: process new levels and invalidations at the end of the RTH session (or after the day completes) so levels don’t flicker on and off during the live day.

What to emphasize to the coder

Pure price-action color change on H1 RTH only.
Level = open of the candle that flips color.
Invalidation = body close through the level (open one side, close the other).
No volume, no indicators, no extended hours, no other timeframes.
mobile app development algorithm financial analysis data visualization pine script data analysis financial software development app development api development tradingview
Apply on Freelancer →

Project sourced from Freelancer.com. Applications happen directly on the original platform — we never collect your data.