Forum

Wrong numerical result?

Dear All I tried to calculate the pivot of last 3 years' range, ie the highest high, the lowest low of the last 3 years, and the closing price of the last year, then sum these 3 together and divided by 3. I got the code working, but the numerical result is wrong. Using euro as example, it should be

How to build a period condition into a current function

Hi, All Please help me with a coding question. I would need to modify one of my current indi to quarterly level and yearly (the current one works well on weekly and monthly levels). For quarterly -- new levels are only calculated if it's in month of Jan/Apr/Jul/Sept (ie the beginning of the month)

My code doesn't show on chart? Please help

Hi, I recently returned to using some of my old MT4 charts and modifying an old indicator. The original works perfectly well, however, when I modified the timeframe to make it calculate and draw lines for 4H candles, it doesn't work. There is no error message when the indicator was compiled, but it

Help with a few lines of code

Hi, Coding Pros... I am a MQL4 newbie/amateur and would like to ask for some help with a few lines. I would like to know how to make the code do this (I got the rest of codes ready, but got stuck with the selections): Select only a certain period (such as a certain month at quarter end, so ignoring

Please help

I am new to programming and got stuck with this error message saying unbalanced left parenthesis at the end. I checked and couldn't find where a parenthesis is left out. Please could somebody help me out! Many thanks for your time