Forum

Can anyone give me a ObjectCreate sample? I create one and it doesn't work. Thanks.

My code is, help me to make it work. ObjectCreate ("text_object", OBJ_TEXT, 0, Time[i], Close[i]); ObjectSetText("text_object", "Hello world!", 10, "Times New Roman", Green); ObjectSet("text_object", OBJPROP_XDISTANCE, 100); ObjectSet("text_object", OBJPROP_YDISTANCE, 200);

Test error: the version is too old. What's the reason?

When I tested my EA I got this error. My championship's EA get this kind of comment too

How to use PositionClose() to close more than one orders?

Because the SYMBOL_VOLUME_MAX is 5.0, I have to open two orders: a 5.0 lots sell order and a 4.7 lots at the same time. When I use trade.PositionClose(_Symbol,3) to close the opened orders, I get the error: failed instant buy 9.70 EURUSD at 1.16000 [Invalid volume] How can I close both of these two

Should there be 4 digits or 5 digits after decimal point of price of EURUSD?

I use Contest Account the price is something like 1.4540. But I applied for a demo account the price is like 1.45408. I ask this question because when I use Stop Loss, there will be different result. Say stop loss is 20, then 1.4540's stop loss is 1.4520 when open a buy. 1.45408's stop loss is

Does MQL4 support recursion?

When I use a recursion, the system returns "stack overflow". Is there a method to sovle it? I am using the Heiken Ashi indicator, there is a recursoin in it so I want to imbed the indicator code to my EA. Of course I can use iCustom () to call this indicator, but it is very slow when back testing -

I use Low[], but the result is Open[], why?

I use Low[], but the result is Open[], why? Anybody can help me with this

How two EAs can communicate directly?

One EA is the server and other EAs are client. I want the server EA send signals to clients EAs. I was thinking of setting up a web server to reside the signal data's file. But can anyone help me a way to let the two EAs communicate directly without using web server? Thanks