Good Day,
I am not familiar with coding in Probuilder and hesitant to spend money on custom programming as long as I don’t have a functioning, profitable trading strategy. As such, I was hoping that a coder among you would be willing to code the following simple indicator:
– To display previous month/week/day high/low on chart as horizontal line
– To be displayed in price window, NOT in separate indicator window
– Colour/thickness of lines to be customizable
– Lines to show across all time frames, e. g. high/low on monthly chart to be shown on H1 and M15 time frames
– Only show previous month/week/day high/low, not historic ones
I am aware that it is a lot to ask for! Thanks in advance for your time.
Hello, here is a short prorealtime code for what you are requesting, but only for the previous week high and low.
I’m sure you can easily adapt or complete this one for the monthly and daily one.
//weekly high/low
IF DayOfWeek < DayOfWeek[1] THEN
weekHprevious = myH
weekLprevious = myL
myH = High
myL = Low
ELSE
myH = Max(High, myH)
myL = Min(Low, myL)
ENDIF
if Today[0] <> Date[0] then
weekH = undefined
weekL = undefined
else
weekH = weekHprevious
weekL = weekLprevious
endif
RETURN weekH,weekL