Camilo Mora / Publications
Forum
How to code a message indicating that an EA is NOT working on VPS?
I deployed an EA in MQL5 VPS since October 2024 and it worked fine until Jan 15 2025.. I presume Metatrader migrated the EA to a different sever and in that process the EA was removed. Fortunately, all the positions open were at profit and this issue was not negative but it could have been. MQL5
How to spot fake EAs from the market place?
Recently, I watched a video of a person coding an EA that took historical data, offset it by 1 candle and loaded it into an EA that tailor positions based on whether the prior candle went up or down. The result was an EA with amazing performance and very low DD. The point it was trying to make was
Advice on how to improve function to get lastest message from Discord
I wanted to share a function I have developed to get the latest message from a Discord channel. It requires only the channel ID and the Discord Bot Token, and returns a string with the latest message in the chat. It can be combined with another function to send messages from an EA to Discord . I
WebRequest or Websocket to get latest message from Discord?
I created a simple function that sends a message do Discord from any MQL5 EA, I hope it can be useful to others. Now I want to create an EA that reads that message from Discord. While reading about this, I found that one can use the GET function as a WebRequest, which can be implemented in the
How to reset/clear a MQL5 VPS?
I have been renting MQL5 VPSs for a while; super convenient and very affordable. However, recently I came across a situation I do not know how to fix: One of my VPSs has been running for a while demos from different EAs, but recently I used this VPS to host an EA in a real account . For over a week
Be aware of number of activations/ expiration of EAs you get in the market place
I order my first EA from the Market place and just learned about this condition on the number of activations. I have some questions about this: 1) every time we install an EA, say I want to change the configuration, or update a change made by the owner, will that count as an activation? 2) once all
Feedback on logic to handle a hedge?
Image an scenario where a 1 lot long position is -$100 in profit, and it is hedged with 1 lot short position, locking the profit at -$100. Say the price moves even lower, and I want to reduce the lost to -$50 while keeping the positions balanced. How can that be done? I thought one should do a
12 month VPS offer does not show in MQL5?
Does anyone knows why, in the web-page of MQL5 there is an offer of renting VPS for 12 months, but in MQL5 VPS that offer does not appear? The largest available is 6 month
how to calculate breakeven price of open positions accounting for swaps
Would anyone know how to incorporate into a breakeven price calculation the swaps of the given positions? I am working on the function below, which calculate the BE price of positions of a given pair in a given direction, but I have not figure out a simple way to add the losses from swaps into that
What is the best suggestion for multicurrency EAs: OnTick, OnTimer, onChartevent?
While working with multi-currency EAs, most commonly one has a unique EA that is applied over to multiple currencies. In theory, there is an infinite loop, running the same operations over data from multiple currency pairs. While studying how to do this, I came across three alternative suggestions