Expert Advisors and Automated Trading - page 39

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
Hi, What is the fastest way to get the last quote for about 10,000 symbols and keep them updated? I want to make kind of a server to communicate to delphi. I tried MqlTick ticks_array[]; CopyTicks (symbol_name, ticks_array, COPY_TICKS_ALL , 0 , 1 ); To get the quotes, but its slow and does not
Hi everyone, I hope you're well! I've started programming a little expert advisor. When I press a button, it draws me the TP, Entry and theoretical SL lines, with the position size calculated according to the risk I've predefined, as shown in the following image. I think I've made it a bit difficult
I recently noted an EA with some amazing performance even in my own backstesting of it (a 98% accuracy, a 49 profit factor). The user interface is pretty simple and very few parameters one can modify other than the number of entries and how big they can be. It can only operate one pair. Of course
Hello everyone, good afternoon. I'm seeking guidance on the feasibility of conducting backtesting using the Strategy Tester + Strategy Optimizer, specifically for a specific month within a defined range of years. To be more specific, I would like to know if it's possible to select, for instance
Sir, I have 20 StopLevel & 19 Spread in OctaFX Broker. I am getting too many error "Invalid Stop".....(Please see this Attached Photo What am I wrong this Source code ? //+------------------------------------------------------------------+ //| Breakeven Gain & Breakeven
Hi everybody, I need small help, i have written a EA and back tested , want to test it in Live. Is there anyway to do that, don't want to do auto trade. I want to run EA with latest current data. is it possible in MT5? Every time i run, it gives data until 1 night before. Thanks and
Hello Community, i just figuring out, what expert in the market is might really suitable for me. So far, could not get the demo installation to create a single trade. Instead i get various errors, like 2024.01 . 16 17 : 34 : 12.377 Core 01 2021.08 . 01 00 : 00 : 18 CTrade:: OrderSend : market buy
hello everyone how can i find the date of previous year and use it as an anchor point
I AM NEW TO VPS. I RECENTLY BOUGHT MY FIRST VPS. THIS MORNING MY EA SOLD EURUSD AT PRICE 1.06061. TRAILING STOP WAS SET 5 POINTS IN THE EA. EVEN THOUGH PRICE WENT DOWN 2 PIPS, THE TRAILING STOP WASN'T INITIATED. DURING THIS TIME THE PRICE WAS EXTREMELY VOLATILE AND MOVED LIGHTING FAST. MY QUESTION
I use the code, got the profits = 0. Please help me correct it. thank you. #property script_show_inputs input string com= "break" ; //+------------------------------------------------------------------+ //| Script program start function |
pip install MetaTrader5 ERROR: Could not find a version that satisfies the requirement MetaTrader5 (from versions: none) ERROR: No matching distribution found for MetaTrader5 anyone knows how to deal with this
i want to create an expert that use dark bands indicator? but it is complicated. can any body helps? first problem is icustom function.when i use iCustom ( _Symbol , PERIOD_CURRENT , "Dark Bands MT5" ) it works but i need complete dark bands variable in icustom. because i want to change the
For mt5, I uploaded an ex5 file to the mql5 market several days ago and the validation was complete. But the process was terminated when I was busy. But when I try to upload the same file again the next day, it shows"Please recompile your file with new compiler", but the two files are exactly the
Hi all, I'm using the function PositionsTotal() to get the number of open positions, due to I'm using a hedge system. int num_positions=PositionsTotal(); but at each iteration it returns always 0, even if I opened two positions. What's wrong? Thanks
gidday. I have my ea that I normally only trade 1 or 2 pairs, BUT I want to use it on more pairs now. This function which determines its trail stop and stop loss depending on a bool; true or false function like so... bool margo() { if (equ< 0.85 *bal) return false ; if
I working with mql for a while and made some indicators and EAs. I notice that human made operations (press buy/sell button) are faster than EA operations (less delay between the action and the response). I always thought that it was only a mind trick, but I talked with a guy that work in a broker
Hi, I have an ideal that I can get lot size by amount of money at risk. But MQL5 doesn't have a default function to do that. So I create a function like: double GetLot( ENUM_ORDER_TYPE type, double SL, double openPrice, double moneyAmount) { if (moneyAmount == 0 || SL == 0 || openPrice == 0 )
I put an indicator on the chart and created a sub-chart and drag drop moving average on the sub-chart. I want to code a signal when moving average crossing the indicator then open or close the trade. The problem is that the moving average value difference is large (like photo attached) so that I