Hello, in the programming of my indicator i need the output data of two indicators, one of them is called X-ZZ.ex4 Use the iCustom function to call it, as follows: double valor=iCustom(NULL,0,"..\\Indicators\\X-ZZ.ex4",0,0,1); However i get an error in this line, saying not to recognize the file...
Hello everyone, I'm not making any progress with this code atm. If I attempt to modify the code "Forum_Test" = "Indenifier not declared ". My question. CForum_Test can see variables, but Forum_Test.Run() will fail. I'm still trying to understand classes....
Hi, Hello, I'm trying to introduce an equity control within code of ea to improve it. For example imagine I have an ea called EA1 ; this one will trade in min Lots with its own MagicNumber EA2 will trade with regular Lots, different MagicNumber, same conditions as EA1 plus one: only allow trade if...
I made a custom moving average alert system in MQL4 that is suppose to alert me each time my two moving averages cross each other. I am quite new to coding so for whatever reason I get an alert but it is exactly one candle late. Any help would be greatly appreciated. Here is the code for my Custom...
string sy=Symbol(); double bid=MarketInfo(Symbol(),MODE_BID); double lot=MarketInfo(Symbol(),MODE_LOTSIZE); double point=MarketInfo(Symbol(),MODE_POINT); double tickSize=MarketInfo(Symbol(),MODE_TICKSIZE); double oneLotDatum = lot * bid; double...
Hi Folks. i was looking for a similar topic and couldn't.. I have MT4 on my laptop and there is no problem with, I also tried to install at my work computer, I think it is might related to a permission, I'm not an admin but I have some of those privileges, as can install, uninstall, etc. after...
hello double tickValue = MarketInfo(NULL, MODE_TICKVALUE); EA strategy tester gives tickValue = 1 , instead of tickvalue in the deposit currecy So this instruction wont work while in strategy tester ? Thnaks
I have a system based on The RSI, two ma's (8 & 4) and the McGinley Dynamic Indicator. I have changed some of the parameters of these from the defaults. I would like to have the system able to automatically open both short and long positions and then close them based on these indicators. It's new
Hi all, I have this extern variable in my EA that is called "index". Before the EA runs in the main window, I would need the user to select one out of three pre-determined values (for example, the three values could be 0,1,2 and the user selects 1). However, to choose one of the values, the user
Would just like to ask why in the following code: void OnTick(){ double MyPoint; if(Digits==3 || Digits==5) MyPoint=Point*10; , why the Point*10? It was generated by a certain code generator. Mainly used to multiply the MyPoint to the inputted Take Profit to convert it into pips. Thank you in...
Hi there, Following a similar pattern I've used in an EA, I have the following code at the top of an Indicator .mq4 file: ... //--- #include <gwDeltaCache.mqh> //--- CDeltaCache *DeltaCache; bool isInitialLoad= true ; ... However, when I do something like change the timeframe, OnDeinit() is called
hi everone i hope you have nice day i write code in mql4 that modify take profit with + 3pip for every 5 pip up for bay or down for sell the problem is that modify order work once and give me 130 error -------""2018.04.24 23:57:30.751 2018.03.13 00:00:00 test v1.5 EURUSD,H1: OrderModify error...
Hello, I have an indicator,it is very helpfull, but if creates alerts all the time. And this is spamming my mailbox. I want only alerts on the selected timeframes. So when I have the indicator on a 4 H chart then it should create an alerts every 4 hours etc.. Can anybody help me with this? I tried...
#property copyright "Ch Le" // External variables extern double Lots = 0.01 ; extern double StopLoss = 300 ; extern double TakeProfit = 600 ; extern int Slip = 3 ; extern int MagicNumber = 123 ; // Global variables double M15Ema5, M15Ema20,H1Ema5,H1Ema20,H1Ema100; int
Hi, i have a question. I have to do this If a check shows that there are insufficient funds to perform a trade operation, it is necessary to output an error message to the log instead of calling the OrderSend() function. So i use that code from here https://www.mql5...
I have problem with drawing line in custom indicator at the calculation event. If i draw a line in only just bar[1] = 20, bar[2] = 10 and [bar[3] = 11, the result is line at bar[0] and other bar up to rates_total is set to 0.0. double bar[]; //it's indicator buffer at calculation event: bar[1] =...
I have problem with drawing line in custom indicator at the calculation event. If i draw a line in only just bar[1] = 20, bar[2] = 10 and [bar[3] = 11, the result is line at bar[0] and other bar up to rates_total is set to 0.0. double bar[]; //it's indicator buffer at calculation event: bar[1] =...
Hi everybody, I'm wondering if there is a way to convert DT oscillator (attached) to a function, such as this: double calculateDT(int timeframe, int PeriodRSI, int PeriodStoch,int PeriodSK, int PeriodSD,int MAMode,int line,int shift) { // //here is the codes // } here is the main "start" section...
Hi everybody, Please note that I have a great work coded in MT4. But I have this puzzle of the error 4108 as you can see below This error I have searched everywhere in this forum and others' forums but I found no one have totally got the final answer and was happy! all people says to don't select...
hello, I have installed mt4 on my google drive in portable mode, so I can use it on my desktop and laptop{, not at the same time}. now the problem with my mt4 is... 1} I open mt4 in desktop, enter my login details and it works fine. after this I close my mt4, give some time to update all files to
I am trying to connect MT4 to SQL Server according to the following link (https://www.mql5.com/en/articles/1533). When I try to compile a basic script to import the dll, I get 'msado15.dll' - #import was not closed. #property copyright "" #property link "" #property version "1.00" #property
I am trying to retrieve the value of the highest point and lowest point of a moving average over the last 20 bars. Simple, if this was an excel spreadsheet . This is as close as I have been able to get. No Errors, but when MaxValue> MinValue is used as a BUY or SELL condition, it prevents all
I'm having a difficult time figuring out why my iCustom lines are only using one value and drawing straight across the window. From everything I can tell it should be changing on each candle. Could someone please help me identify the problem that is causing my lines to only use one value? I dont...
There are 20 graphics. how can i go to this chart 13 Chart. (Default) example long id=ChartID(); Alert("This System is BUY Signals Chart ID: "+ID); // Show This Chart from ID= // ChartSymbol(131690754453499446)
[Deleted]
Hi, I'm hoping that someone will be able to help me. I need dax30 m1 data for back testing purposes. Is there anybody that has been trading with a mt4 IG index platform for longer than 12 months who could supply me this historical data. New accounts only have a couple of months. I may be willing to...
hello every one, I need help in fixing the buy on an EA Which is seen during compiling. I'm alos looking to add the following details to the EA. 1. an autoclick function to the EA allowing its trades to be displayed as manual at the brokers End, so that the EA will execute BUY...
Is there any way to close all buy/sell trades at once? There is a "Multiple Close By" feature in N2Trader which can close all buys/sells alternatively until all trades be closed or just one trade (which there are no pair trade for closing it) remains: At first, i thought N2Trader uses the "Close...
Hi MT4 has been updated automatically by Google Play Since new update Built 1114 (19 apr 2018), alerts messages sent via MetaQuotesID are sometimes late, sometime not received anymore. I cannot even rollback MT4 android
Is this the right way to get the oldest order's profits from too many opened orders thanks for help//+------------------------------------------------------------------+//| oldest order...

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.