Hey everyone! I’ve tried to make an indicator but can’t do it.
I don’t think it’s a big problem for those of you who are talented.
I am looking for an indicator that draws lines from high and low 12 hours ago.
I am working with 60 minute chart, but would be great if it would work on other timeframes to.
Then the lines should disappear after 24 hours.
Here is an example.
Thx
Realized now that it doesn’t work as there will be so many lines.
It´s better to mark one area between 11-13 hours earlier like this.
There you go:
DEFPARAM DrawOnLastBarOnly = true
DrawRectangle(BarIndex[13],0,BarIndex[11],99999) coloured("Cyan",80) bordercolor("Blue",255)
RETURN
That was fast. Just what I wanted.
Thanks 🙂
Is it possible to draw a line also on the candle 12 hour back. High/low?
I´m understand that there will be new lines every hour.
Yes:
DEFPARAM DrawOnLastBarOnly = true
DrawVline(BarIndex[12]) coloured("Blue",255)
RETURN
Then I get a vertical line. Tried to switch to horizontal without success
Where does the line should start and end?
The lines should start on the candle 12 hours ago.
And ends after a new 1h candle is close. And repeat the same procedure after every hour (1 hour timeframe).
Draw new lines every hour on the high/low of the candle 12 hours ago.
Hope you understand what I mean
There it is:
DEFPARAM DrawOnLastBarOnly = true
DrawSegment(BarIndex[12],close[12],BarIndex,close[12]) coloured("Blue",255)
RETURN