anyone able to help build a indicator that creates UNSELECTABLE background rectangles based on periods and open prices on MQL4 ?
attached is what i have been wanting to achieve, primitive coding skills, thus requiring help on it. it is just to fill backgrounds based on period separators, as well as on OPEN prices of 3 different timeframe. Am using LightSteelBlue and Pink for the H4 period, and Thistle for the overlay.
Condition:
IF W1 OPENPRICE >= MN OPENPRICE,
creates pink rectangle for the week period(separator) from W1 OPENPRICE upwards to infinite(as a background fill)
IF D1 OPENPRICE >= W1 OPENPRICE,
creates purple rectangle overlay from D1 OPENPRICE upwards to infinity
ELSE
creates purple rectangle overlay from W1 OPEN PRICE upwards to infinity
creates blue rectangle for the week period from MN OPENPRICE downwards to infinite
IF D1 OPENPRICE >= MN OPENPRICE,
creates purple rectangle overlay from MN OPENPRICE downwards
ELSE
creates purple rectangle overlay from D1 OPENPRICE downwards
ELSE IF
W1 OPENPRICE <= MN OPENPRICE,
creates pink rectangle for the week period , but from MN OPENPRICE upwards to infinite
IF D1 OPENPRICE <= MN OPENPRICE
creates purple rectangle from MN OPENPRICE upwards
ELSE
creates purple rectangle from D1 OPENPRICE upwards
creates blue rectangle for the week period from W1 OPEN PRICE downwards.
IF D1 OPENPRICE <= W1 OPENPRICE
creates purple rectangle from D1 OPENPRICE downwards
ELSE
creates purple rectangle overlay from W1 OPENPRICE downwards
attached is what i have been wanting to achieve, primitive coding skills, thus requiring help on it. it is just to fill backgrounds based on period separators, as well as on OPEN prices of 3 different timeframe. Am using LightSteelBlue and Pink for the H4 period, and Thistle for the overlay.
Condition:
IF W1 OPENPRICE >= MN OPENPRICE,
creates pink rectangle for the week period(separator) from W1 OPENPRICE upwards to infinite(as a background fill)
IF D1 OPENPRICE >= W1 OPENPRICE,
creates purple rectangle overlay from D1 OPENPRICE upwards to infinity
ELSE
creates purple rectangle overlay from W1 OPEN PRICE upwards to infinity
creates blue rectangle for the week period from MN OPENPRICE downwards to infinite
IF D1 OPENPRICE >= MN OPENPRICE,
creates purple rectangle overlay from MN OPENPRICE downwards
ELSE
creates purple rectangle overlay from D1 OPENPRICE downwards
ELSE IF
W1 OPENPRICE <= MN OPENPRICE,
creates pink rectangle for the week period , but from MN OPENPRICE upwards to infinite
IF D1 OPENPRICE <= MN OPENPRICE
creates purple rectangle from MN OPENPRICE upwards
ELSE
creates purple rectangle from D1 OPENPRICE upwards
creates blue rectangle for the week period from W1 OPEN PRICE downwards.
IF D1 OPENPRICE <= W1 OPENPRICE
creates purple rectangle from D1 OPENPRICE downwards
ELSE
creates purple rectangle overlay from W1 OPENPRICE downwards