TradingView
goofoffgoose
22 maj 2022 18:16

High/Low/Open/Close Daily, Weekly, Monthly Line 

E-mini S&P 500 FuturesCME

Opis



I wrote this for the purpose of saving time while marking up charts by automating the process of drawing and labeling lines at areas of interest on larger
timeframes while still having the option to change the style and size of the lines and labels to adjust for any timeframe and avoid a messy chart.
I also used this as an exercise in menu organization giving users every imaginable option and producing clean readable code.

- This indicator draws a line on the Daily, Weekly, and Monthly bar at the High, Low, Open and Close of each bar as price
tends to react when revisiting these areas.
- Each set of bars has an optional identifying label with its own color set that can be shown with or without the lines
price value, and has drop down menus for size and style of each set of labels.
- Each set of lines has inputs for line/text color, line width and style, and can be hidden if the user doesn't have the need for any particular timeframe.
- Lines and Labels with delete when a new line is created.

- I recommend going into Chart Settings/Status Line and turning off indicator arguments OR moving the script to the top
of the indicator list to avoid an obstructed chart view with this indicators arguments. When Pine allows, I will update it to hide them.


Contains some public domain code from T.V. manuals and tutorial for creating drop down input menus for options.




/ ~For My Pal Jittery~
~ Who likes his clean chart and custom colors~

Informacje o Wersji

Update : Fixed labels to round values to min.tick
Added input for label position

Informacje o Wersji

Updated the error created by the update to TradingView compiler.

Informacje o Wersji

Formatted label values...again.

Informacje o Wersji

Updated the security call to Real High, Low, Open, Close when chart is not on regular candles. (ex. HA, Range, Renko)

Informacje o Wersji

Added options to deselect specific lines (High, Low, Open, Close) and change the color of those lines. When a line is not selected to be plotted, the associated label will also be hidden.

Informacje o Wersji

New and Improved menu with vertical and horizontal label offsets and a fancy label addition. New defaults on many things so you may need to resave your default settings. Cheers!
Komentarze
tecz0r
Hi there, this is an excellent script.

Is there anyway to make it is to that when looking at PREVIOUS WEEK HIGH/LOW, it ONLY looks back to the last week and the lines don't extend back indefinitely?
goofoffgoose
@tecz0r, Maybe... I've been on medical leave for a while and I'm hoping to make a comeback soon. I'll try to take a look but I think its possible.
tecz0r
@goofoffgoose, Thank you for your time, hope you are doing well!
goofoffgoose
@tecz0r, Thank you. I hope so too very soon.
mariusherciu89
how can I change the monthly and weekly with a timeframe of 1h and 4h. thanks
goofoffgoose
@mariusherciu89, Unfortunately that isn't an option in this indicator as it is written specifically for Daily, Weekly and Monthly. However the script is open source so you could use the code and change the security calls for the weekly and monthly from 'w' and 'M' to '60' and '240'. There are 4 security calls for each set of lines the look like this:
whigh = request.security(syminfo.tickerid, 'W', high[1])
So you would change the 'W' to '60' for minutes.
You can save this script for your own use, or publish it privately, but I do recommend that if you publish it publicly that you read the House Rules on TV as the mods can kick it back to you. DM me if you need help.
mariusherciu89
@goofoffgoose, thanks for all! <3
Jo-Pippin
Really love your scripts. Please could you make a script which includes the previous week Monday high low? I will forever be grateful!!
goofoffgoose
@Jo-Pippin, I do have daily session process on my to-do list. You may look at the High and Low of Custom Session and see if it would fit your needs. I think I would just need a selection for days of the week.
datseekingalfa
Great work sir , Thank you for this
But now not showing correct weekly OLHC on daily , 5', 15' min charts
Więcej