Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
56 views1 page

High Low Level

This document is a TradingView Pine Script that calculates and plots custom trading levels based on the previous day's high and low. It computes major, mid, and minor levels using specific ratios of the price range. The levels are displayed as lines on the chart with different colors for easy identification.

Uploaded by

limoko7589
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views1 page

High Low Level

This document is a TradingView Pine Script that calculates and plots custom trading levels based on the previous day's high and low. It computes major, mid, and minor levels using specific ratios of the price range. The levels are displayed as lines on the chart with different colors for easy identification.

Uploaded by

limoko7589
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

//@version=5

indicator("Custom Levels", overlay=true)

// Calculate previous day's high, low, and range


prevHigh = request.security(syminfo.tickerid, "D", high[1])
prevLow = request.security(syminfo.tickerid, "D", low[1])
range1 = prevHigh - prevLow

// Calculate levels
major = range1 / 2.618
mid = range1 / 4.38
minor = range1 / 8.213

// Plot levels as lines


plot(prevHigh - major, color=color.red, linewidth=1, title="Major Level")
plot(prevHigh - mid, color=color.blue, linewidth=1, title="Mid Level")
plot(prevHigh - minor, color=color.green, linewidth=1, title="Minor Level")

You might also like