Forum

Detecting whether a number is divisible by 3

Hi, I am trying to get my SQL code to detect whether value x is divisible by three e.g. 6/3 == true 12/3 == true 16/3 == false 20/3 == false How do I do this in mql4 language please? I've search the documentation but can't find anything Thankyou for your help James

Please help with my ATR indicator - it's not loading up on new charts correctly.

Hi, I've written this little indicator. It takes the price Open of this day, and draws a line on the chart at 0%. It then draws other lines based on the percentage of the ATR100 (daily) value. When this indicator is 'dragged' onto a chart it works fine.... BUT.... when I then flick through other

Change background colour when ADX

Hi, I've been on this for two days now and cimply cannot find a way to do this. I've been looking into using OBJ_RECTANGLE to shade my chart grey when price is ranging (ADX<25) but simple cannot get it working. Most examples of OBJ_RECTANGLE seem to be to shade trading times (e.g. London Session)