Forum

Why is EA removed?

I have four EA's running in different, liv accounts. - One of them is routinely removed after a trade. I'll reattach it and it will run until the next trade. - The others are removed from time to time, I see no pattern yet. _ The app doesn't crash and charting and all else seems to continue without

How consistent is MT?

I'd like to know if anyone else has found MT to calculate incorrectly, particularly something it ordinarily calculates correctly . The following worries me and I wonder if anyone has any thoughts about it. 1 The low preceding the current bar is 5 bars back (iLowest(NULL, NULL,MODE_LOW,10,1)). 2 MT

Are the tester & demo trading both BS?

I hope I'm not offending anyone's search before posting sensibilities, as it seems to be a provacative subject here. Proceeding in the hope that this is more than just an archived site, please note that I've searched and I've posted to a relevant thread, and I've learned a bit about this subject

Question: Why do live vs demo accounts give different tester results?

I apologize if this has been discussed before, but I have not yet run across a clear explanation. If someone could simply point me to a previous thread that has actually answered the question, that'd be great. Specifying the same test period for the same pair and same EA ... 1) I get completely

Strategy Tester questions

I'm having real questions about the legitimacy of the ST. Setting aside that I can get different results simply by hitting the start button more than once, and that trades often are completely missing from the journal for days in the middle of a time frame, how about these two items ... First, why

Basic question about order execution

I'm sorry if I've missed something really obvious ... Is there an order state I've missed which indicates an order has changed from pending to active? I've been doing this by checking if highs and lows have equaled or exceeded the OrderOpenPrice(), but it seems there ought to be an easier way. Is

Need help with OrderMagicNumber()

I can retrieve everything else from prices to comments, in an order except the Magic number. Even when I enter a hard number, no variable, it comes back as 0. Can anyone tell me why? Thanks

Strategy Tester: Can anyone make sense of this?

I've worked through alot with MetaTrader, but this one I really don't get. The Tester iterates a function several times - it's not that the function fails - but then it just freezes with the Stop button remaining active. 1. int MyFunction { 2. for{i=1;i<=5;i++) { 3. if(!MyArray[i]) {do something} //

Need help with OrderModify()

- I open a multi lot order with OrderSend(). - I Ordermodify() it with no problem. - I close out 1 lot with OrderClose(). - Now when I try to modify the order which still has the remainder of the lots, I get an "unknown ticket for OrderModify() function " The ticket is open, OrderTicket() continues

How do I exit the EA?

I simply want to stop program execution like Exit or Halt in other languages. How do I do this in mql4? I've tried return(0) as suggested, but it doesn't stop the EA, at least not in the Strategy Tester