Expert Advisors and Automated Trading - page 142

Dear Coders I know that there is already ZigZag custom Indicator in both. However I am looking for a ZigZag Function which does the same job as ZigZag Custom Indicator. For eample, I need something like this. //This should work on MQL5 language. Code must be self sufficient without any...
Does anybody know some CSV format adjusting script to change ASK and BID in the right places for correct MT5 import ticks? Dukascopy has this format: Time (UTC), Ask , Bid ,AskVolume,BidVolume 2022.04 . 01 00 : 00 : 00.107 , 1.31462 , 1.3145 , 1.34 , 0.12 but for correct imports need change ASK and
GDI cache pen insertion error, cache size: 22, cache max: 503, Brush once per TICK, does anyone know what the problem is,Thank you!
I have a EA for MT4 , working on currencies heat-map, trending pair percentage should be met in order to EA trigger a trade. Ea sometimes trigger wrongly trades. Don’t know if I am posting correctly here, I need someone to fix it ( not for free). Thanks
  re quote in mt5  (5)
How to fix re quote problem in mt5 expert adviser
[Deleted]
Hello, I need to find some articles on how to calculate automatic GMT time or code related to automatic GMT calculation. Please help me, thank you
Hi all, I'm having a problem as to why StringGetCharacter is preventing my ea from trailing. #property copyright "Copyright 2022, MetaQuotes Ltd." #property link "https://www.mql5.com" #property version "1.00" #property strict #include <Trade\Trade.mqh> #include <Trade\SymbolInfo.mqh>
Hi there community, There's a problem on closing several positions from the pool by FIFO rule with this code. It seems to be working ok on EAs through the strategy tester, even throwing better results than LIFO close, but for some reason it's not working fine on live trading. Made the code as simple
I face this issue every once in a while, due to faulty electricity and some strange power problems in my pc the computer turns off after power up I found out that all the code on the mq5 file is completely gone Once I thought this was HDD errors which had troubles but now I have more reliable
Hi, on the MetaTrader5 terminal, when we click on HISTORY, and then right click on HISTORY we can download a REPORT file (HTML). There usefull information that get shown on this file. Such as : balance Drawdown Maximal, Short Trades (won %), Long Trades (won %) and so on... I was wondering, is there
Good night, Years ago I ordered an EA based on an indicator's signal. I have the EA and the source code, I would need to make an adjustment but I can't find the programmer anymore. I have basic knowledge in other languages ​​and would like a basic help for me to try to make the change. What happens
Hi everyone! I want to change the property "indicator_applied_price", using a parameter. I know to how create a parameter but I couldn't find how to apply the parameter to the indicator. I've tried plotindexset and indicatorset, but I've not found where to use the parameter. Can someone help me
Hello, I can't see a 'straight forward' way of creating a table on a chart, in the simplicity that Pinescript offers the table.new() and table.cell() functions - is the easiest solution to create a table using ObjectCreate() and OBJ_TREND? I'm interested in making a handy strength indicator for MT5
Hello, I like to enable the mobile notifications on my MT5 terminal so I can see when my EA is opening new trades & when they are closed etc. However I get SPAMMED when my trailing stop modifies trades or fails to modify trades. Is there a way to limit what gets sent through to the mobile push
I am not able, from Meta Editor, to open/create a CSV file to write in it. The code made in this purpose doesn't return any error or warning, filehandle=1; LastError=0; but still I don't see any CSV file being created afterward in the destination subfolder. void OnDeinit ( const int reason) {
Hi There, I'm trying to run the tester by command line but it starts the metatrader without starting the test. I run the command: "Path to \terminal64.exe" "\config:Path to\config.ini" My config.ini: ;+------------------------------------------------------------------------------+ ;| executar teste
Hello I am trying to develop an EA that uses the sell limit order. However I am facing error 10015 when the EA sends the order. Can anyone help me find my error? I changed the names of the variables to make the code easier to understand. I will attach the image with the sales order entry
I have this issue with my EA , it is working perfectly wen attached to a single chart but when attached to several charts like (EURUSD, AUDUSD, USDCAD ...) it only excute the first triggered one , and if signal came to another chart it is making it hold until the first on closed. If someone can help
I am trying to figure out a situation in which I have to forcibly close positions used in a hedging trading strategy and then reopen some other positions at a different specific price which will reflect my old positions. I believe it is possible I just need to do the right calculations. If I confuse
Hi everyone, I don't think this has been asked yet... In the documentation on ObjectsDeleteAll(), you can read: ObjectsDeleteAll "Note: The function uses a synchronous call, which means that the function waits for the execution of all commands that have been enqueued for this chart prior to its
Hello Fellow coders, I'm getting myself into a bit of a flap. I am trying to write a function so that it will return the ticket number of my highest buy trade or lowest sell trade, so they can be isolated from the basket and closed. I know I need to find the correct ticket number of the above trades
  simplest EA  (3)
I want a simple Ea to just see (in strategy tester) candles passing without doing nothing! its possible? the ea template (oninit, ondeinit, ontick) with default values, just run and quit without showing nothing. Do I need minimal code to make it work (visual mode selected in str tester->settings)
Does anybody know how to code an EA where when two EMA's cross it enters a trade and when it either hits TP or SL it won't enter another trade until another crossover? What I am running into is that it will either enter on a crossover and only exit when there is another crossover( This is when I
Hey all, I imported a couple extra agents from a vps and my own computer to my Local Network Farm. When I enable them they keep switching between 'Connecting' and 'Ready'. I connected agents from another vps before and had no troubles at all. Could someone please help me out? Thank you. Sincerely
[Deleted]
  MT5 Optimization  (2)
Hi there, As I understand it, genetic algorithm would miss certain parameters. MT5 would save the optimization in cache. Is it possible to get better result by running a second or tenth genetic algorithm optimization
[Deleted]
Hi there, As I understand it, genetic algorithm would miss certain parameters. MT5 would save the optimization in cache. Is it possible to get better result by running a second or tenth genetic algorithm optimization
  Info !!!  (1)
How can I contact the developer of the EA included in MT4 or mt5
Hello guys. Can anybody help me please create a EA which can open/close orders when spread reach a certain value? Thank you
So i want to code EA that will open 1 trade every time new candle opens, can anyone please tell me how to do it
Hi all, i'm trying to use today's profit in an EA. What i have done so far works for Deals opened today;    double TodaysProfit=0;   HistorySelect(((TimeCurrent()/86400)*86400)+28800,TimeCurrent());   int total=HistoryDealsTotal();   for(int i=1;i<total;i++)     {...