jtsas
Pine Script Rookie
Pine Script Rookie
Posts: 4
Joined: December 6th, 2020

Add ATR to lowest low for the day and draw line starting at the beginning of the day for that price?

Hi all, the other thing I just can't seem to figure out is drawing a horizontal line that starts at the beginning of the current day and goes until the end of the current day. The price for it needs to be calculated by taking the lowest low for the current day and adds the ATR to it. This line should redraw as new lows are made and there should only be one line. Thoughts?

jtsas
Pine Script Rookie
Pine Script Rookie
Posts: 4
Joined: December 6th, 2020

Re: Add ATR to lowest low for the day and draw line starting at the beginning of the day for that price?

Never mind, I've figured this one out.

User avatar
Matthew
Site Admin
Site Admin
Posts: 92
Joined: July 1st, 2020
Location: Australia
Contact: Website Facebook Twitter TradingView Profile

Re: Add ATR to lowest low for the day and draw line starting at the beginning of the day for that price?

That's great! Well done jtsas :) I like this script concept. Great work solving it on your own.

Fxxtrader
Pine Script Rookie
Pine Script Rookie
Posts: 22
Joined: September 6th, 2020
Location: Toronto
Contact: Twitter TradingView Profile

Re: Add ATR to lowest low for the day and draw line starting at the beginning of the day for that price?

jtsas wrote:
Sun Dec 06, 2020 3:59 am
Hi all, the other thing I just can't seem to figure out is drawing a horizontal line that starts at the beginning of the current day and goes until the end of the current day. The price for it needs to be calculated by taking the lowest low for the current day and adds the ATR to it. This line should redraw as new lows are made and there should only be one line. Thoughts?
Hi, this sounds interesting. Would you mind sharing the script?
I would like to draw a horizontal line from open of current day to the days close. Horizontal line value, + and - 1.X pips of previous days ATR.

Thanks.

Return to “Pine Script Q&A”