Forum

EA stop times

The EA automatically stops running after sometime. How do you keep it running continuosly? In my case it stopped once at 3:05 PM ET (USA), and at another time around 8:00 PM ET

Market Profile indicator

Has anyone implemented the Market Profile Indicator as discussed by James Dalton in his book Mind Over Markets in MQL4

Any possibility of 10 min bars?

Any possibility of adding 10 min bars to MetaTrader 4? Karan

10 minute bars

Hi MetaTrader4 developers, There are several trading strategies that use 10 min bars (see the ones from the Trading Instutute as an example) Granted that you have 1, 5, 15,30 min bars but you do not have 10 minute bars. I am sure it would be a trivial change for you to support this. Can you modify

Getting point spread

I am using the following to compute the spread in points for the current chart: string symbol = Symbol(); // Get chart symbol int spread = MarketInfo (symbol,MODE_SPREAD); spread is being set to 0. I have verified that symbol is valid (set to "EURUSD"). What s wrong with the above

Bug in calling a ref toinside a library?

The following code works when placed in the same module but if you place this in a library and call it even with the prototype set correctly it does not work. void median(string symbol, double& medianU, double& medianL) { if (symbol == " EURUSD ") { medianU = 0.45; medianL = 0.46; } else { medianU=

Positioning of text objects

Text objects are centered around the price. I know how to change the angle of the text object and in some situations this can help. However, how do you precisely control the postioning of the start of the text object. I want the text object to start at the price and not be centered around price

Order ticket#

In my EA I have multiple lots. After a price is reached I scale out by taking one lot off. The ticket # is i closed and goes into Account History trades and a new ticket# is created which shows up in trades screen. If I attempt to modify the stop loss on the remaining lots, I get an unknown ticket

Calling a DLL from within an EA

I am trying to call a DLL from an EA. I am getting an error message in the EA log that I am unable to call the function in the DLL. I thought it might be a parmeter passing issue so I made a dummy function with no params: int getInt(); In the DLL this is defined as __declspec(dllexport) int

Debugging EA

Anyone have effective strageies to debug Expert Advisors. Is there anyway to set a breakpoint and examine variables -- a basic debugger? Currently I am setting values in global variables and examining them. I could also write them to a log file, I guess. But is there a better way