Forum

Closing Function Using RSI

Hi Mql4 Community, I'm having some issues with this function in my EA. Sometimes, not all the time, it will close a trade if only one of the if statements has been satisfied. There are no error messages in the journal. What's the best way to troubleshoot this? Cheers, Tim void CloseOrders1() {

EA Executing Order when X Amout > 0.50

Hi MQL community, My EA from time to time executes a trade when my division1 value is greater than 0.50. Is there an obvious error in my code? FYI, I run about 30 EAs in different pairs with similar code, however, they each use a different magic number. Also, I'm getting no error messages in the

Random Numbers Below 1

Hi Community, I’m looking to generate random numbers between 0.4 and 0.5. What’s best way to use the MathRand() function to do this? Cheers, Tim

Trailing Stop

Hi MQL4 Experts, I'm trying to code a function that moves my buy order to breakeven after the price moves X amount AGAINST me. Here'a the code. Can you please point out where I'm going wrong. Cheers, Tim void MoveToBE() { for ( int b= OrdersTotal ()- 1 ; b >= 0 ; b--) {

Retrieving data from the MT5 Calendar

Hi MQL5 community, I'm trying to pull data from the MT5 calendar to use in an EA. Can one of you experts out there provide a basic example that shows how to retrieve the last value from a high impact news event? Thanks in advance! Regards, Tim

Extracting value from indicator using iCustom function

Hi MQL community, I'm trying to extract the median line color value from the PZ _MarketProfile indicator using the iCustom function . Here is a screenshot of the input parameters: Can one of you guys please put me on the right track. Thanks, Tim

Validation error

Hi MQL community, I'm trying to validate my EA for the market and am getting the following errors. Can someone please advise what I need to to to successfully pass the validation process. I have gone through the checklist, but can't find the specific area of my EA that needs fixing. Regards, Tim

Having trouble adding an image for my logo

Hi MQL community, I'm trying to add an image for my logo to sell a product, but am getting the error message "Invalid Image Format." I've gone through the requirements checklist: Image is 200 x 200 pixels. I have tried both PNG and GIF formats. Image doesn't display money. The image specs are below

NormalizeDouble in MT5 strategy tester

Hi MQL community, I'm trying to normalize the bollinger band values into 5 digits from 6. I tested using an alert and the value had been normalized correctly. However, when I run my EA in the strategy tester , it still shows 6 digits. P.S. I have included a MQL4 to MQL5 converting file in the

Retrieving data from the MT5 Economic Calander for use in EA

Hi MQL5 experts, Can you please point me in the direction of some documentation that explains how to retrieve data from the MT5 economic calendar into an indicator or EA. Regards, Tim