Forum

Does leverage matter if you're always trading the same size?

Hi, I know the concept of leverage, but I've always wondered if it matters in order to lower the risk of, say, an Expert Advisor. Let me give you an example: let's imagine I have an EA which always follows the same strategy, which is opening 3 positions, 0.01 lots, 0.02 and 0.03. That's the EA

AccountFreeMarginCheck returning positive value, then OrderSend failing because of money

Hello, I'm a bit puzzled by AccountFreeMarginCheck sending an OK (positive value), but then OrderSend not being able to open the order because there's not enough money. Long story short, I'm testing an EA with $1 balance, and before calling OrderSend I'm running some checks on spread, correctness of

Need help with time + GMT offset showing wrong

Hello. I have two MT4 terminals running on a VPS at the same time, on the same broker, etc. The broker GMT is +3. I have an EA where I calculate the offset in the OnInit() function, that is only once, and then I use it for my news filter is order to compare the news time (plus GMT offset) with MT4

Is not giving the user the option to set the initial lot considered "unfair" to the user?

Hello, I've created an EA and passed the auto-validation, and I'm just trying to get ahead of any potential issue with this topic with the human-validation. Let me explain: my EA works fine when the initial lot size is 0.01. Raising that by just one miniLot is risking too much. Therefore I'm

[SOLVED] Again the dreaded "No trading operations" error - something wrong with the auto-validation?

EDIT #1: I've set the max spread allowed to 0.0 in the input settings following the recommendation of @ Fernando Carreiro (thanks!). I've also added a function to close the trades I'm opening on every tick (I wasn't closing them before). Finally there was an issue in the "RunChecksBeforeOrderSend"

Where did the Blogs section go?

Sorry if I'm blind, but I can't find a link to the "Blogs" section. If I remember correclty there was a link somewhere. I can access My Blog by typing the URL or searching, but I'm sure I must be missing a link somewhere. All I can see is "Articles" on the top bar. Where did that go? Am I going

Do I need to check IsTradeAllowed() in my Expert Advisor?

Hi, So far yes, my code is full of options where I check if the trading is allowed, then do something, else do otherwise, but I was just wondering... do I really need it? I mean, isn't Metatrader "smart enough" to not allow the EA to trade if AutoTrading is not checked? In other words, what I'm

MODE_LOTSTEP versus SYMBOL_VOLUME_STEP

Hello, I've bumped into some snippets here and there for normalizing the lot size, and I've seen two different versions. I've searched the documentation, and it seems both are active, not obsolete, so I'm not sure if there's some sort of nuance in using one way or another. Can anyone clarify that

Should I close my profit or my loss first?

Hello. I don't know if it makes much of a difference, but I've always wondered... say I have a position in profit, i.e. $20, and there's another trade in loss, i.e. $-15. In all I'm gonna make $5 profit, but does it make a difference if I choose to close the profit first, so that my balance

EVENT tooltip no longer showing?

Hello, Has anyone noticed if the OBJ_EVENT tooltip has stopped working? The documentation says that the tooltip is by default the OBJPROP_TEXT and it should show up when hovering over the event. Well, I've tried everything, and played around with all the other properties, and I just can't get the