Marco Fiocco / Publications
Forum
Failed modify position Stop Loss on real account, but never in backtests
I've activated my EA on using the MT5 VPS and it created a position on Bitcoin but it failed to set the Stop Loss which is strange because the EA never failed during all my backtests. I had to set manually a SL to the level that the EA expected, and that worked. The algorithm opens a position and
OrderCalcMargin random failures
I have an EA that uses OrderCalcMargin (...) at the beginning to print me some stats in the console. Once in a while it returns margin=0, even though the function returns true. And margin=0 is not right because I have actually plenty of margin. It can happen on any pair (for example XAGEUR or