drawing Rectangle on candle body
-
good day , @fxDreema , @roar , @l-andorrà this is my project : https://fxdreema.com/shared/6p7RCwpTc
i need help drawing a rectangle , for uptrend , if candle 1 close is above candle 2 high :
rectangle coordinates :
time 1 (candle 2 close)
price 1 (candle 2 close)
time 2 (23:59 , so stretch out the rectangle foward)
price 2 (candle 1 close) -
IT DOESNT DRAW THE RECTANGLE VISUALLY, BUT WHEN I CHECK IN OBCETCTS DRAWN ON CHART (CTRL B) IT SAYS ITS PRESENT ON CHART
-
You can remove both 'Pass' blocks. They are unnecessary. You logic is correct and many recangles should be drawn. Probably the problem is that a new rectangle is drawn every single tich when, I guess, you need just one. Try to use a 'once per bar' block on top in order to limit the number of rectangles drawn per bar.
-
Thank you so much for replying .
so i did what yo said : https://fxdreema.com/shared/PW59Vflhc
but still , i dont get any rectangles appearing on my chart. but it still shows me that the EA has drawn a rectangle .
please download it and check on your side to see what i mean
-
Time is not a close (price), it is time, you can select the sae candle but look for the time.
