Forum

#include references on a Mac

Hello, Does anybody know how to code #include folder references in eas on a Mac? I have specified the entire location with forward slashes but it won't compile because it is looking for c:\Program Files which of course doesn't exist on a Mac. Thanks Phil

Exponential notation

Hello, I am trying to find the difference between two moving averages but when I print it gives the answer in exponential notation which is completely useless to me. The answer (on GBPUSD) could be 0.00001 or 0.00005 etc. That is the information I need. I have tried using NormalizeDouble() and not

“Register a Virtual Server” not in Navigator

I would like to have the option of a VPS but when I right-click on my live account in the Navigator it doesn’t have the option “Register a Virtual Server” . Is there something I need to do please

Inaccurate results from "ObjectGetValueByTime" and "ObjectGetValueByShift"

Hello, I need to be able to extrapolate the current values of trend lines every hour on an EA which runs on the H4 time frame. A separate section of my EA runs at the beginning of each hour and most variables contained within that section update accurately and fine. However "Var1 =

Defining the colour in OrderClose()

Hello, My EA has different types of order and with some of them, if I specify a colour in OrderSend() and OrderClose(), it creates a big mess on the chart with repeated trades opening and closing. Therefore for some orders I need a colour and for others I need nothing. My code is as follows: string

Current price incorrect when using Tester

I have been testing an EA using "Daily" period for July 2016. My EA needs the current market price in order to make buy/sell decisions and it works that price out by signing Bid to a variable after using RefreshRates(). In addition, my EA takes the high and low of the last hourly bar (after working

Inaccurate Hourly Bar High/Low when running EA on Daily chart

Hello, I am running an EA on the daily chart and I need to find out whether or not the current price is above or below the last H1 high or low (depending on whether the entry will be long or short) in order to make the decision whether or not to enter. However using iHigh(NULL,PERIOD_H1,1) or

Tester Error: "tester cannot calculate prices"

Hello, can somebody please explain what this error message means and what I need to do to get rid of it because MT4 tester doesn't work at the moment. Thanks

What happens when stop loss operates

Hello, how should I make my EA aware that a stop loss has occurred please? At the moment, when this happens, a lot of errors occur because the program doesn't know the position has been closed automatically. Thank you

MT4 Tester not working properly

Hello, Could somebody please tell me why the tester ignores the dates I specify in the "Use date" line even when the box is checked and with some EAs (not with all of them) simply stops testing at the 12.15pm bar on the first date it chooses? The EA is designed to work at all times of the day and