
Latest posts made by lvang1126
-
Issue with MT4->MT5 using the converterposted in Bug Reports
"I was able to download both the .mq4 and .ex4 files for the MT4 version. However, after using the MT4-to-MT5 converter, I received the .mq5 and .ex5 files. When I opened the .mq5 file in MetaEditor and attempted to compile it, I encountered errors."

-
RE: "No Trade" Block condition issue resulting zero divide when "first" added to the Metatrader.posted in Bug Reports
The brokers I tested that were affected by this issue include BlackBullMarket-Demo, FXPig-Demo, and Alpari-ECN Demo. These were all free demo accounts I was able to create. I'm sure there are many others, but these are the ones I've tested so far.
-
RE: "No Trade" Block condition issue resulting zero divide when "first" added to the Metatrader.posted in Bug Reports
I agree. If you replace the "No Trade" block with the "Check Trades Count" block, the trade would execute without any errors. I haven't tested this yet, but I’m wondering—what if, after adding the symbol, you immediately load the history data? Maybe then the trade would execute properly even with the "No Trade" block. Also, when you get the error using the "No Trade" block, re-attaching the EA to the same chart usually clears it. So the error typically only happens on the initial startup.
-
"No Trade" Block condition issue resulting zero divide when "first" added to the Metatrader.posted in Bug Reports
I've identified a potential issue related to the "No Trade" block that seems to cause a divide by zero error under specific conditions:
Steps to Reproduce:
Prerequisite: Ensure auto trading is enabled.-
Launch MetaTrader and add a symbol that is not part of the default startup list.
-
Copy the EA into the MetaTrader Experts folder.
-
Attach the EA to the newly added symbol.
-
Once the condition in the EA is triggered, the divide by zero error may occur.
Workaround:
I resolved the issue by removing the "No Trade" block and replacing it with the "Check Trade Count" block, which prevented the error.EA link: https://fxdreema.com/shared/Nbvs0Q39
-
-
RE: zero divide in '8320-30394.mq4' (12065,31) THIS ERROR CODE MAKES MY EA STOPposted in Bug Reports
Alternatively, you could also store the SL value into a variable and have an if condition when SL != 0, then execute orders. This way, SL will always be something other than 0 in order to execute orders.
-
RE: EA on VPS trade errors in comparison when not using the VPSposted in Questions & Answers
@l-andorrà Thanks for getting back at me. I don't believed I have any time dependent or such. Here's a snip of the layout of my code:

-
EA on VPS trade errors in comparison when not using the VPSposted in Questions & Answers
Hello folks question,
When I ran my EA without using VPS (NY) , my EA executes trades correctly according to its rule. However, when I used my EA under a VPS (London) it executes my trades differently? I don’t think it has to do with my coding. But is this rare for you folks?
Appreciates any feedback and comments,
Thanks
-
TP not get filled and entry price seems to not match based on backtesting and forward testingposted in Questions & Answers
Folks, I'm getting a different reading based on backtesting and forward testing. Any suggestion will helps.

Top is the forward testing and bottom is backtesting.
Here's the buy order conditions:
https://fxdreema.com/shared/ODsG83Wge


