Hi all, I am trying to create a simple indicator, basically a MACD on the RSI. Calculating the RSI and the two moving averages is no problem, works fine. Subtracting the two moving averages also works fine. (When I change the script to plot the resulting array of the subtraction, it plots ok.) So
hello, I would like to run MT4 on a server that works continuously, how to do? I have already gone to the menu on the photo but it does not work
i tried to open an order using script but got this error "uninit reason 0". what is it? how to fix it? please help.
Warning to anyone. If you encounter the error "event handling function not found", it could be because your hard drive is full. Even after freeing 10GB of space, I was still getting the same error when trying to compile my indicator. So I restarted MetaEditor and now the source file is completely
ButtonCreate( long chart_id,CChartObjectButton &btn, int i, const string name, const int x, const int y) { if (!btn.Create(chart_id, "Sym_" +( string )i+ "_" +name, 0 ,x,y, 77 , 25 )) return ( false ); //"Button_"+name if (!btn.Description(name))
Hello; I'm new to MQL4 and am attempting to retrieve values from a web request function to be used in a separate trading logic function but I cannot seem to get the data out of the local GetRequest function. There are 12 data points downloaded and I am using two of them, labeled p06 and p11, which...
Hi there. I hope someone can help me figure out what is happening here. I have a function, inside a expert advisor, called "calculateHMA". It calculates the Hull Moving Average value for any specified candle on the current chart. It returns the Hull Moving Average double value for the specified
Hi everyone, I'm developing an indicator and as soon as I started developing it, I left the indicator running for 3 hours and the chart appears like this. How can I solve? I've had the indicator for some time and only recently has it been like this... I don't really understand the problem but I
hi, i am looking for a script which can set a buy stop and sell stop 10 pips away from the market price and should have sl at 20 pips. can anyone please help me out here? thanks a bunch. regards, james
Hi, Can anyone help me with understanding how to get the value from iFractal please? It returns type double which I assume to be the price of the fractal but I'm just getting 0? The logic seems sound, so I'm assuming it's my misunderstanding of iFractal. My current code
Hi , When entering a price in a textbox, when I use DoubleToStr and set it to 5, it correctly truncates the price if it is formatted as a number, followed by a comma, and then 7 digits. However, if a price has 4 digits before the comma and then 8 decimal places, it truncates the five decimal places
What can be the reason of this cannot refresh history, 4073, and the EA have no acsess to the Time[0] from OnTick() function? For the many years and a lot of EAs created I have never meet this error before, when array out of range at Time[0]. Also, I have read this post, about that how to catch
Hi I understand the max terminals for MT4 per user is 32. The server I run is very powerful and can easy run 100+ optimised terminals across multiple users without too much issue. The question, will running 150+ terminals of the same EA across 7 users (max theoretical 224) cause any issues like
Hey gang. I've been struggling for a couple hours to figure out why iCustom in my EA isn't pulling data from an indicator I just coded up. The indi is working properly on my charts, but within the EA it's only outputting a value of 0 no matter which buffer I try to access. I've tried different
I need to access my account using investor password, connecting directly to my broker's servers via a non-MQL4 programming language ( it will be done externally, Metatrader 4 is not involved ). Is there any kind of documentation on how to connect and read data from my account? Thank you
I am trying to compare two double numbers to try and determine where I need to draw my fib. I get a price variable from the larger timeframe and then scale down to the 30 min to find the candle I was looking at on the larger timeframe. I am determining the candle by comparing the high and or low of
I have a lot of charts on my terminal and each chart has a lot of objects like trendlines and channels. I get very tired of double clicking each object to select it, right clicking it and then selecting Object Properties to bring up the Object Properties dialog box, every time I want to change...
Hi I generated simple EA code in MQl4 to display arrows (up and down) at MA Crossover. Parameters for MAs (Fast and Slow) are set in menu as are arrow specifications (width, color, etc.). For reasons that baffle me, my code compiles without error but doesn't seem to work: Arrows are not drawn on
[Deleted]
Hello, I have written an EA that trails one bar high or low and opens 2 positions. After that, it should halt and do nothing more. I have backtested and forward tested it and it seems to do the job. This is my first coding attempt in mql4, and I'm not an experienced programmer by any means. So, I...
In mt4 I can download a lot of pairs but not all show in the symbol drop down box of the strategy tester. Is it not possible to back test these pairs?
Hello, I would like to receive a notification when any expert displays an error, example : 2023.09.05 03:14:25.344 FX Blue - TradeCopy Sender EURUSD,M15: cannot set millisecond timer (100) or : 2023.09.05 10:25:50.553 XXXX MT4 V1 GBPUSD,M5: cannot set timer (5) or 2023.09.05 10:26:42.584 'XXXX MT4
Hi I am trying to write a very simple ea(with mql4) after about 8 years and it seems that I have severe problem and I should call myself a newbie again. while testing the first part, I am facing "Unexpected Token" ERROR, I tried to find any missing ";" or parenthesis or any reserved word but I...
Hi guys i see the start profiling on real data after this when i stop i have some bar green and blue , anyone have documentation about it how can interpret this ? i saw in metatrader editor the tab profile i open and i saw what is stressed i attach a foto but iOpen is stress the platform, but how
Hi is possible in the MetaEditor run a program step by step for look where is the problem ?? thanks
Can anyone help write a mt4 script which continuously monitor the profits and when profits hit +100 or other value, it will automatically close open orders. Or I have already a good working close open order script the problem is how to integrate it with the a continously monitor the profit
Hi guy i have one array with 10 record but the first and last is empty i want remove this record how possible to do that ? i have crete this code but return array overflow therefore i think i have some mistake void _CleanArrayIFsomeEmpty( string & Arry[]) { string newSymbols[]; // Il nuovo
I wrote an EA that is running perfectly on a demo MT4 account. When I copied it to a live MT4 account, I get an error message 131 - Invalid Trade Volume. The demo account is running under Windows 11 on a Microsoft Surface and the live account is running under Windows 10 on a Dell. I have checked
Hello everyone. I have this line in my code : In my folder, i have : And i have this error : What is the problem of my file please ? Thank you. Hugo
I want know how to modify my open orders,whether buy or sell order. i have an EA that trades for me and i make use of Buy() and Sell() function to enter my trades So i want to know how to identify each order and modify it, for example if i make a buy order where price = 1.5, SL = 1.2 and TP = 2.0. i
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.