Expert Advisors and Automated Trading - page 19

Hello, i would really appreciate if i could get some help with my coding. I getting this message from my journal. I know where it is coming from in my code, but im not should what to change to have it resolve to get the coding pass along. Below is my full code, along with the exact section where the
Hi, So i'm trying to build a scalping system that watch the market in 5 minutes timeframe and execute trades based on simple algorithm, until here its all okay (I hope so), but when it comes to lot size its a bit tricky. The formula i calculate lot size is: willingToSpend = accountValue * .01 //
hello guy I hope every one is great and making profit ♥ I use : Intel(R) Core(TM) i5-4670k CPU @ 3.40GHz 3.40 GHz and when I start ST my CPU start make loud sound ! so I don't know in future if CPU is going to crashes
Hello, this probably has been asked before, but I cannot find it. My apologies. I want my EA to run between 9 and 10am on new york trading times. But I live in Europe. So how can I make sure? I have the current time on my computer, I have a different time on my VPS, and I have a different time in my
I am designing an EA that requires storing the lowest price ad time of the candlesticks in an array which would later be called and used in other logic. The problem is that these price and time are not being saved to the array and apear haphazard and incorrect when i print the array. How do I solve
Hello traders. im opening this topic in order to discuss and find the way of using HFT eas in normal brokers.. lets see if we can figure it out
Welcome! What could be the reason for the following program code to load the specified chart but not load the specified template? The template is located in the template folder. void OnTick () { // Create Object ObjectCreate ( _Symbol , "BuyButton" , OBJ_BUTTON , 0 , 0 , 0 ); ObjectSetInteger (
Calculating a Risk Percentage before opening a new trade is popular in the public domain, but getting a percentage of balance used after the trade has been opened seems difficult for me to calculate. Here's what I came up with, but got something around 3.7k(3,700+)
Hi all, I'd like to get feedbacks from advanced traders/EA developers regarding the max number of inputs steps (total number displayed in the bottom right part of the Inputs sheet when optimizing) allowing to have robust setfiles, i.e. without overfitting (aside out of sample data testing) . E.g
  EA Not Trading  (1)
Does anyone know how to get a trading robot to trade automatically? I have enabled Algo Trading and the bot is visible on the chart, but it's not trading. Sorry for the dumb question, but I'm new to the whole trading scene and I have to start somewhere. Thanks in advance
Can you help? that returns a value. & time The last two peaks in the RSI indicator
Hi everybody. I have a concern that I cannot find an answer to in the documentation. probably from incompetence and stupidity. Here, I have systematically filled arrays in a struct, so that it would theoretically be easier to deal with the data in the future. The only problem is that I can't pass
I backtested on a strategy ’ s performance in trading different symbols. If these symbols are combined as a portfolio, or start to trade these symbols at the same time, then I wish to know its maximum daily drawdown. I bought this strategy from the Market, thus I don ’ t know its mql5 file. I
//+------------------------------------------------------------------+ //| CCI.mq5 | //| Copyright 2024, MetaQuotes Ltd. | //| https://www.mql5.com |
I would like to ask everyone how you would choose backtesting performance metrics? Among the following backtesting results conducted in the same time period with slightly adjusted strategies, which one would you choose and why
// Define input parameters input int fastEMA = 12 ; input int slowEMA = 26 ; input int signalEMA = 9 ; input double lotSize = 0.1 ; input double riskPercentage = 2.0 ; // Percentage of capital risk per trade input int slippage = 3 ; // Define variables double macdCurrent, signalCurrent
Hello, I getting error: test on EURUSD,H1 strategy tester report not found I already searched the forum about this error, and many people had it. They say it is a technical problem (internal bug) on the MQL5 server. However, people spend 10 days trying to send their expert and fail. The source code
Hi everybody. Although this is little silly but I started learning OOP and unfortunately is started to like too much. Now I decided my just written fully working code rewrite. All started well, but after a while i got stuck on one thing. I don´t know how to update arrays elements inside a class
hi all, I am very new to mql5, but I have some knowledge in programming (Python). Currently I am trying to create a EA to read from a custom indicator , thus I wrote a simple code below to check if I can retrieve the information with icustom: int handle1; handle1= iCustom ( Symbol (), 0
  Mql5, get ticket  (1)
Hey dear Dev If I use the trade class to open an order How can I get the ticket of the trade I just open
Hi, I've been reading numerous threads, documentation, and resources regarding forward testing. I've also been using it for quite a while now, and I'm curious about your overall thoughts on this concept. It's understandable; we all know what this is: a popular and somewhat reliable way of avoiding
Hello, When I launch my trading algorithm on my real account, it closes my trades immediately after taking them. Whereas I had tested my robot the week before and everything was working fine, I had no problems, and since I restarted it, it immediately closes the new trades taken even though there
Hello, I would like to know if what I want to do is possible. I've made multiple tests but I am sure someone with more experience will be able to answer so thank you in advance for your help. Basically, I want to allow few people to copy my trades. I have my own VPS (Ubuntu) and would like to allow
Couldn't find a bug report contact so I'll put this here. There's a small bug in the strategy tester results that took me a while to figure out. If I do backtest + forward test, and in the backtest I filtered out some options, lets say Drawdown>50%. Then on the forward test results tab I right click
For science I decided to run the MetaTester 5 Agents Manager on my 9654 EPYC, but it will only run 32 sessions max when this chip has 96 physical cores and 192GB of memory. I did manage to get it to show 64 sessions after a reboot and when I check the program it seems half the sessions are
  Data Mismatch  (2)
Does anyone know how to explain why iOpen does not return proper values when called from another chart. For example if I use iOpen from a single chart across many pairs the data does not return proper open prices. However, if I add an EA to all charts then will get proper values. I would really like
Hi, I am currently developing an EA for MT5. The bot is running well on the EURUSD chart but the strategy tester doesn't execute any trades. Can someone help me please
Hello! I just used the profiler on historical data to see which functions take the longest and which use most of the CPU. I was suprised that the profiler only shows the total CPU and self CPU. I used the profiler quite a while ago and I thought I remembered that it also shows the functions call
i have an expert that open some trades , i need another expert that addresses those trades (by tickets or something else) and close them . thanks in advance
I wanted to try Larry Williams' Trading Day of Month strategies, but I had a hard time figuring out how to calculate the current trading day of the month accurately (basically similar in concept to business day calculations in Excel). I could not find code on this site for it ... I am SURE someone