Expert Advisors and Automated Trading - page 142

#include<Trade\Trade.mqh> CTrade trade; int OnStart () { double g; int m,s,k; m =Time[ 0 ] + Period ()* 60 - TimeCurrent (); g=m/ 60.0 ; s=m% 60 ; m=(m-s)/ 60 ; double OPen[]; double Close[]; double High[]; double Low[]; void OnTick () { double Ask=
After my EA is connected to the VPS, there is a certain difference between the order opened in the real market and the backtest of the original strategy the next day. I use the ticks backtest. Some orders are very accurate,from one second or one point , but some orders are not opened. The VPS I use
Hello MT5 programmers. I've been putting together a multi-symbol EA and am sharing the part of the expert that may be of some interest to some of you. Please note that I am no programmer and have only started using MT5 in the last 2 weeks, so the code is by no means elegant nor probably very...
Hi: Seeing if anyone can guide me the basics of calling calculations into Metatrader. I will have mouse events be used as inputs into a spreadsheet that will do some calculations. Then the outputs will display on the chart. Does the main calculation program have to be a specific language, e.g. could
when I download any expert to my mt5 >>>dont work...even any utility ... bt when I download to mt4 it works..can any one help me...also in strategy tester .. I get ...faild
  Rsi trading bot  (2)
hi, im after a bot that trade XAUUSD for 15 min rsi below 30 to buy and if price goes 2$ low then buy again. if price is above 70 RSi then sell and if price goes more 2$ above then sell again. <Deleted> thanks
  Weekend evening  (664   1 2 3 4 5 ... 66 67)
This topic is open only on weekends and accepts requests for "quick batch MQL5 EA". I reserve the right to agree to make an EA as well as to refuse :) If an EA appears, its code MUST be published OPEN. Note: the weekend term - Late Friday Evening, All Saturday and Sunday. EA "OSYuWwJk EA.mq5 " EA
I am using my ea it works in GMT+2 (Winter Time) My EA Works Very Well And On Time ( Winter Time ) And Recently The Broker I'm Using Has Changed To Summer Time GMT +3 My EA Can't Open Trades From 0 Hour To 1 Hour (According to Broker) I Changed EA Settings To Broker Current Time But My EA Can Only
Under the MetaEditor5 Debug menu there is an option "Start on History Data", however it is disabled (greyed out). Reading through the help file indicates that I need to set Debug options to use specific settings which I have done (see attachment), however the menu item is still disabled (greyed out)
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