I just want to know how to recognize the rectangle object.

 

I just want to know how to recognize the rectangle object is on the current bar.

Is it possible to know the rectangle is overlapping on the current or previous bar?

This is to use buy and sell entry signal.


 
  1. Rectangles are not on any bar. It starts on one bar and ends on another.

  2. Compare the two time coordinates with the time of the “current bar.”

  3. Perhaps you should read the manual. MQL4 ReferenceObjectGetIntegerENUM_OBJECT_PROPERTY_INTEGER → OBJPROP_TIME
       How To Ask Questions The Smart Way. (2004)
          How To Interpret Answers.
             RTFM and STFW: How To Tell You've Seriously Screwed Up.

 
William Roeder #:
  1. Rectangles are not on any bar. It starts on one bar and ends on another.

  2. Compare the two time coordinates with the time of the “current bar.”

  3. Perhaps you should read the manual. MQL4 ReferenceObjectGetIntegerENUM_OBJECT_PROPERTY_INTEGER → OBJPROP_TIME
       How To Ask Questions The Smart Way. (2004)
          How To Interpret Answers.
             RTFM and STFW: How To Tell You've Seriously Screwed Up.

Hi, William

Thank you for your great tips.

I will try to read rectangle time and check current candle time to make an entry!