Is there a simple way to make and EA lanuch a moving average indicator, include it in the chart (on same chart where the EA is running) and also create an additional window runnig and RSI oscillator. So basically the EA source code should be enough to call some indicator charting (using user inputs
This EA must Open 1 Market Order upon Initialization, and the fill a grid with Pending Orders. SO now, upon Initiation, it opens multiple Market orders, and no Pendings. I get no error when I compile but it just does not do what I want. I am new to coding, if someone can just point to my mistake, I
So I've spent all day trying to figure this out, the MT4 download link from the official website gives you MT5.... Go test it out yourself and download it and check in the "about" section, it will say MT5. This is extremely problematic as I don't have MT4 on this PC and all my purchased EAs are on
Hi, I want to compile this MQL4 but have 3 error on line 143, I'm new here, would you please help me to clear this issue //+------------------------------------------------------------------+ //| VQ.mq4 | //|
In the last few days, I cannot use an Indicator Purchased or download free via the MT4 Terminal Market. The indicator(s) still show in the Navigator Market Folder, but I cannot load them, and they are "greyed out". I have review all my MT4 settings and contacted one of the main Indicator's Author
hello i use vps for run forex (Germany , Singapore , Japan) now have problem all mt4 3 broker -eightcap in japan and singapore vps -exness and xm on Germany can't connect to datacenter i no understand why??? but internet no problem i use 3 broker have problem all (in vps 3 location) but i login on
Looking for a simple way to change the time zone and print it on a chart. So rather tha having TimeCurrent() or TimeGmt() I would like to specify for example GMT-5. So something like TimeGMT-5. I wonder if there is a function built in for this already, offsetting just for the hours to adjust to any
programatically, In buy and sell orders, breakeven is sometimes used as part of order management strategy ea . Is there a possiblity that breakeven can used more than once in same strategy . Thank you
hello i see bug MT4 build 1363 it's can't connect to Broker Datacenter! price no update and chart not working (all brokers) But i try Downgrade to MT4 build 1361 it's normally I don't know where to report. So I posted in here Hope you solve the problem as soon as possible
I purchased an EA and it isn't in my MT4 Purchased tab. I am logged into my MQL5 community account in MT4, and have tried exiting and re-logging in - nothing works. Any advice
Hello, I had tried to use #import function long time ago, but it's like a bit difference now? What means by? 32-bit system here? I think this is the only thing i need to fix. //--- For the 32-bit system //In Libraries ABC.ex4: #property library #property copyright "Copyright 2022, MetaQuotes
SO I get this error, I am learning coding, nowhere can I find the CAUSE, I have looked and my parenthesis looks fine but error persists. Followed a tutorial and triple-checked my code. //+------------------------------------------------------------------+ //|
hi everybody I have some questions 1.anyone know what is latest book or any pdf document published for teaching mql4? 2.which roadmap i should to follow to being mql4/mql5 programmer
Hi I just get a problem when i have to use <stdlib.mqh> I import it in my code #include <stdlib.mqh> After compile my code its not any error about <stdlib.mqh> In strategy tester Journal i have got these errors : 2022.11.06 11:12:03.103 compilation of
I installed MT4 in a new machine. I copied one EA over from the first machine to the Experts folder in the second machine. Just the ex4 compiled code. No source. The EA ran for two days. It still does. Good. Then I decided to copy another EA. That EA won't work. I copied another. It won't work
Evening gents, I've been trying to do a calculation where it takes the values of an indicator and then creates a moving average from that. I can do this by using a horrible for-loop and use the shift function to add up and then divide by the amount I shifted it. ex: for ( int i = 2 ; i <= lookback;
Hello everybody ,I am newbie of mql4 coding, I need help please who could help, I want to code on My loggic: 1. pending order on highest and lowest speciafic time example , H1 candle highest and lowest from 4 to 10 am server time with pending distance from the highest and lowest. example 30 pip
[Deleted]
Hi everyone, the following two codes should produce the same result but only the second one works as intended. Someone can explain me why? int OnCalculate ( const int rates_total, const int prev_calculated, const datetime &time[], const double &open[]
Hi I create an EA using grid technic. the EA will open the first order according to a specific logic and then the grid technic will run after it. I have 2 problem that I faced: first one is that the EA failed to safe last open order if price is below last open order for buy order or if price is
[Deleted]
Hi everyone, I managed to build an indicator that fully fits my needs, unfortunately it makes mt4 massively lag which is quite a problem. Can someone help me identify why that's the case? Thank's. // Setup #property copyright "Eddy" #property description "Average multi-timeframe candle expected
Hi, My broker CMC Market did an update during the weekend, they add more products and update some symbol name on forex, metals and bitcoin. After the update my open orders moved automatically to the new symbol and closed any open order received from my signal subscription also no more signal update
Traders and programmers, Im looking for an EA with the specifics are below. -EMA cross (adjustable) 5ema to close being the lead and 5ema to the open -lots size (adjustable) -close trade and reverse on the cross with the completed bar. -any pair and time frame -4 different take profits with...
[Deleted]
Hello everybody, I'm a newbie on this forum. I've just started to develop my tools for trading in Meta Trader 4. I'd like to write a script that will prompt user for data, i.e. open a window to input data. For example: Script that will calculate max. lot size assuming x% risk of account for given SL...
Maybe my problem is unusual, but it's certainly complicated, and I admit I painted myself into a corner. I have an include file called AllMyFunctions.mqh. All my EAs begin by 'including' that file. Some EAs maye have ad hoc functions, but most functions and variables come from AllMyFunctions.mqh
Just wondering if this is the right place to put this or not. I'm wondering if there's a script/way to auto put a stop loss as soon as I open an order without manually putting it in (sometimes I just want to get in) but say I want a 20 pip stop loss as that's my 2% / trade max (just an example) is
[Deleted]
I am testing my EA on H1 frame, I get following errors: 2009.02.17 17:58:03 TestGenerator: unmatched data error (volume limit 1445 at 2008.12.16 09:00 exceeded) I also see Mismatched chart errors in the Strategy Tester Report. I understand the errors because I 've read other discussions on the site,...
void TrailingBuy(){ for (cnt= OrdersTotal ()- 1 ;cnt>= 0 ;cnt--){ if ( OrderSelect (cnt,SELECT_BY_POS,MODE_TRADES)) if (OrderSymbol()== Symbol ()) if (OrderMagicNumber()==Magic) if (OrderType()==OP_BUY) if (Bid-OrderOpenPrice()>TrailingStop* Point ) if
Hello. Friends, please tell me if I understand correctly this trade log and the situation that happened . Orders that from 00:57:42 to 00:58:42 were closed for a whole minute in the amount of 100 pieces. Do I understand correctly that the broker spent an average of 0.6 seconds on each trade to
Dear Programmers, I would like to send an e-mail with HTML codes. Normally, I ought to use two lines in the Header of the e-mail: MIME-Version: 1.0 Content-type: text/html; charset=iso-8859-2 But, how can we edit the Header of the e-mail? Or is there any way we can use HTML codes...
Hi everyone, I want to find the latest swing high and swing low. I used this code to find it: double swingHigh = iHigh ( Symbol (), PERIOD_CURRENT , iHighest ( Symbol (), PERIOD_CURRENT , MODE_HIGH , WHOLE_ARRAY , 5 )); double swingLow = iLow ( Symbol (), PERIOD_CURRENT , iLowest ( Symbol ()
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.