Good day, I would like to ask for advice. I am a complete beginner in programming and I wanted to program a simple EA for the exam, which enters stores only on the basis of SMA. I added the function of shifting SL to BE and I also defined the variable PLUS, which is used to add the gain to BE
Hi all, Just looking for some advice. I recognise that everyone loves to come on and say to totally disregard MT4s strategy tester results, which is fine. But I want to use it to make sure that I'm not at least wasting my time. I'm having an issue with results. The EA I'm testing I have tested
hi anybody has used simulator?Hello I can't use it when I hit the start button it's massage is " the terminal can't load" please turn on "Allow DLL Imports" and when I do that it's massage is " This software is only for use in MT4 visual-mode backtesting " what does it mean what am I doing wrong
Hello, I have tried contacting the mql5 support directly, but was directed to this forums. After the latest 1312 mt4 build update i now get the " 2020.12.06 15:19:06.822 2018.10.18 08:00:00 Access violation write to 0x4018E55A" error when try running the backtest . Nothing had changed from the
Hello, Here is a question maybe one of you mql5 guys can help me with. I created an EA in mql4 that reviews and creates orders for 28 different currency pairs simultaneously, in the sense that the EA runs in only one chart window and cycles through the different pairs. Now – because I have to
I am new to MQL4 and this is my first try of coding an indicator. I have just tuned some but not built one. I have coded a custom indicator based on Heiken Ashi candles and two Envelopes applied to this candles. It should draw an arrow (dot) when buying or selling conditions are trigered. I think
Hello, I'm novice about MQL4 code and trading on line. I haven't any long experience as programmer. I'm studying since many months on books and youtube webinars. I'm novice about this forum too. I hope to write my post in the right way. I wrote an expert that I report below. MT4 suite says that
I'm using a bat file to launch MT4 and then an ini file to run strategy tester. For some reason when MT4 launches it asks for me to select the server and then enter login credentials. I know that the bat file is successfully using the ini file because in the MT4 journal I get the message "Started
Hello, I've Googled for tutorials but have been unable to find one. I would like to use custom optimization to optimize by EA. Specifically, I want to maximize profit/drawdown$ ratio to minimize risk. Does anyone have an example of doing this?
Hello! Does anyone have suggestions for a plugin that can preset trades for one-click operation? I'd prefer it can be set up for Take Profit and Stop Loss by pips, and if it has trailing stops, even better. It would also be great if it had multiple profiles I could save (I.e., a 1:1 Risk Profile
Hello everyone! This is a very very strange error. I am trying to install MT4 on my Windows 10 Desktop. It seems to be installing MT5 instead of MT4. See attached screen capture
#include <CustomFunctions010.mqh> int MN = 73 ; int shortmaPeriod = 8 ; int longmaPeriod = 200 ; double maxRiskPerTrade = 0.02 ; double lots = OrderLots(); int orderid; int slippage = 5 ; int OnInit () { Alert ( "" ); Alert ( "The EA just started." ); return ( INIT_SUCCEEDED ); } void
I have developed an accounting software and am going to get the equity, balance, .... from MT4 by entering user id, Password and broker's host. I would appriciate if someone can help me on how to get the API for this
anyone can help me? I want to code an EA with martingal,and I want that the martingal will be applied for the lost pair only not for all pairs. Eg: The ea place an order buy at GBPUSD and sell at EURUSD The GBPUSD was closed at a profit first but the EURUSD was closed at a loss secondly. For the
i write a code to scan some indicators in definite time frame and i define some functions in a function i want to compare stochastic index for some shift time void twoColumn(string symbolName,int x,int y,string text,int fontSize=8,string fontName="Calibri") { double Stochastic[]; int limit;
Hello guys does any of you know any indicator that calculates the amount of pips after an entry and shows it on the screen, I know I can see them on the side but having an indicator showing me the number of pips is easier than subtracting and adding every whilee. I have this indicator but the text
extern int NumberOfTrades = 10 ; // place orders //------- if ( OrdersTotal ()<=NumberOfTrades) { for (i= 1 ;i<=NumberOfTrades;i++) //----- void count_position() { POS_n_BUY = 0 ; POS_n_SELL = 0 ; POS_n_BUYSTOP = 0 ; POS_n_SELLSTOP = 0 ; for ( int i
can somebody help me how can i average my positions after i buy a few on different price on MT4
Hello MQL5 community I hope this is an issue someone can help me with. A new build of MT4 is upon us. However, I have been having some FATAL issues with my custom indicators. The nature of the issue is as follows: Dragging a custom indicator onto an MT4 chart freezes the program. No error message
[Deleted]
Hello...am quite new to coding...please could anyone here help me add push notifications to this indicator below.it is a divergence indicator.only alerts are enabled....perhaps more experienced hands here can help with that issue..been failing serially at it
Is there a way to calculate how much time is left from current time to a specific time? Like if I have time string "09:00" and current time is 20:40, how to calculate difference between those times? That's my code for New York time: TimeToStr( TimeLocal () + ((- 4 - Timezone + dstDelta) * 3600 )
[Deleted]
Hi, Is there easier way to copy trend lines or fibs from one chart to another without doing the 'save template' function in MT4. For example I have 2 charts, one 15 min and the other 4 hour. I draw some trend, horizontals, fibs lines etc... on the H4 but I want my H4 analysis (some or all) to be...
#property indicator_chart_window #property indicator_buffers 2 extern string Start = "5:17" ; extern double Timer = 2.0 ; extern int Hystory = 2000 ; double Buf_U[], Buf_D[]; string S;
I am little confused about market sessions. I am working on market session indicator and when I googled when markets opening, for example New York, I found that it opens 09:30. But on Forex Factory website, it seems that NY opens at 08:00 and even I looked in some of MT4 indicators and their NY
So I have created a cap hedge EA (mq4). I ran it on backtest and it worked perfect the first time than I made some extra changes for limit loss, max lot etc... Then I got some well performing parameters(using optimisation) and decided to put it live on small account with microlots. I was backtesting
Hi guys, Can I somehow set scale in main chart window? (like in properties > Common > scale fix). All I found is WindowPriceMax/Min, but how to SET this value? Lets say I need to set chart scale to 1000pips - say the current price is 1.365 so min = 1.36 and max = 1.37 (...and of course dynamically...
how can i now an object is visible or not visible? ( 1 ) is this code is true? ObjectGetInteger(0,"NAME",OBJPROP_TIMEFRAMES,OBJ_PERIOD_H1);
I wander if there is a way to get a full name of any Symbol like it's shown on picture
Hi guys I have pc that have 4 threads does it means that I can run only 4 expert advisor at some time

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.