MQL4 and MetaTrader 4 - page 619

Hi, I know a lot of people have had this problem before and very often it is a coding problem. However for the life of me I cannot figure out my problem. I have googled and read just about everything I could find on this problem and I can't find a solution. I am using an indicator that seems to use...
  CRASH simulation  (4)
I have my EA protected for a crash by means of a file (crash.bin). While running the EA it writes the crash.bin file every 30s, and it holds important data for when having to recover. If the EA is removed on purpose then the crash.bin file is deleted as part of the OnDeInit() routine, if MT4 crashes
Hello, After using the search feature, i couldn't find any topic on this.  I am getting an error (send request failed [12169]) when i trying to send notifications to my phone. This was working fine for a few days but stopped working last friday. I am on MT4 v4.00 buld 900 Any help would be...
hello ,help me whith this code_----------------------------------------------------------------------------- #property indicator_chart_window#property indicator_buffers 1 #property indicator_color1 White extern int year=2010; extern int month=6; extern int day=1; extern int hour=0; extern int...
[Deleted]
why mt4 is often disconnected or reset server? who it could be? broker?
Hello, I add a text to indicator : ...while(pos>0)   {      if(   fc_tawa(Period(), pos)==1 && (no_gap(Period(),pos-1)) ){  //&& (pinbar(Period(),"bas",ELIOT,VG,REMPL,QTE,TIMING,FILTER,ORDER,BANDS,COEF,pos)==1)   pin_bas[pos] = iLow(Symbol(),Period(),pos-1)-100*Point*dig(Symbol());   nom_txt =...
Hi! Currently i use manual input for London Market open hour time. is this possible to detect automatically with all years. eg: Winter session London open at +8:00 GMT other session London Open at +7:00 GMT so is this possible, if yes please suggest me to do on better way. I can get Server time...
[Deleted]
Hi all,  I've googled quite a bit on this, and am really struggling to understand the iStdDev inputs while creating an EA.  Help from the brains of the forum would be most appreciated! Here's the way I expected iStdDev to work: For the function call: double StdDevCurrent = iStdDev(NULL,PERIOD_H2,30...
Hi, I tried to run latest version MT4 on XP and Win7 in VirtualBox, it crashes on startup. Can MT4 run in VirtualBox? Or it "detects" the virtual machine and kill itself for anti-debug purpose? I need to run MT4 in virtual machine to do some test. Thanks
how to request to mt4 allowing the developer to know the max simultaneous opened orders from broker without having to get the error 148?   Shouldn't they add in MQL4 language a function to know the maximum simultaneous opened orders? 
Hi! I use RSI to filter the trend to place new order. here is i added condition for RSI to filter. here is my condition to filter the trade: If RSI(14)>60 >> Buy If RSI(14)<40 >> Sell see the image below: it seems working wrong. Please suggest me to solve the issue. i use shift value as "0" my code...
When using indicators in an expert agent what is the best/most efficient way to do so? Say for example I want to see if a moving average is increasing is: ma[0] = iMA(Symbol(), 0, maPeriod, 0, 1, 0, 0); ma[1] = iMA(Symbol(), 0, maPeriod, 0, 1, 0, 1); increasing = ma[0] > ma[1]; the right /best way
Hi guys,  I`m writing to ask about the usage of the POINT variable in MQL4. What does it change when included and in this way how many points equal 1 pip or tick ?   Thanks :) 
hello, i am having an issues with printing or commenting from my own functions, i have probably just done something extremely stupid but i can figure out whats wrong. test();void test(){   Print("test");   Comment("test");  the "test();" is being run in the init function, on other EAs it will...
Hello, I am new in MetaTrader and mql4 language, I wonder to know, slippage parameter is applicable parameter for market orders (OP_SELL or OP_BUY) ? I am asking this because in my broker demo account, I set slippage as 10 (Since it is using 5 digits) and it opens the order not in the range of...
[Deleted]
I am trying to get the value (price for last bar) of a horizontal line (added manually to a graph) by the function ObjectGetValueByShift( after renaming it from object properties as "MyLine)"  ,  but the value returned is always zero. The same function works correctly with a trendline added manually...
I am using a custom indicator (supplied by third party) and the indicator sets dynamic levels for the 'indicator levels'.  Instead of - say - levels of 20, 0 & 80 the upper & lower levels would be continually changing I'd like to access these levels from an EA so that I could establish whether the...
  DLL's
I've created a C++ file and used all the right syntax required for mql4 to speak to my DLL such as #define MT4_EXPFUNC __declspec(dllexport), APIENTRY and _stdcall myfunc() etc  Now im just wondering how to actually turn this into a .DLL. I've tried using visual studios implementation of a DLL...
Hi,  i've read this and want to change the compiling with NPP from mql64.exe to metaeditor.exe because the newest available mql64.exe is of build 1162 (02 Jul 2015).  metaeditor.exe /compile:<path to source> [/inc:<path to MQL folder>] [/log] is doing fine, but i get no output to console-window now...
I can only imagine that this forum is getting a reputation for being mostly un-moderated. The amount of topics started by spammers is now exceeding legitimate threads. I don't know what is involved, but I am prepared to offer myself as a moderator with limited powers, if only to remove these topics
Hello, How can be removed the week-end tick data from hist file? All the indicators are really go wrong because of this. Thank you
-
  Market Watch VS Chart  (13   1 2)
Hi. Seems to be strange but in several platforms with several brokers I noted the price on charts (bid line) are not equal to the price in Market Watch window (bid price). IE1 USDCHF Chart 1.2215 Market Watch 1.2214 IE2 GBPUSD Chart 1.9302 Market Watch 1.9301 I´m using last version (build 202). And
Hello Everyone in the house, Please I need help concerning this issue: these errors were generated during the course of testing my EA in strategy tester: 1) The symbol is inappropriate 2) not enough money 3) not enough history 4) 4- and -5 digits symbols 5) various tick generation modes My question...
[Deleted]
How can I prevent my ea from closing a trade when I switch from one time chart to another? For example, suppose I have a trade opened on the 1 hour chart. The ea closes when one moving average crosses over another moving average. Assume in the 1 hour chart the crossover has not occured
Hi   I have tried everything, but I am still unable to get this to work.  I would like to add the following code that I found elsewhere on this forum extern double LotPerThousand=0.1;  // If you had 1000 balance what lot size would you useint start(){double...
Having problems with customer set inputs. i read: https://docs.mql4.com/basis/variables/inputvariables but i cannot get it to work. this is what i want to do: simply create long/short as part of drop down box during input... #property...
[Deleted]
any one knows how to fix this issue? I am using Windows 10
[Deleted]
Hello, First of all: please excuse my English skills, it's not my native language. I'm new here and since I started learning MQL this question might be dumb but I really don't know what else to do to solve  this problem. I try to make a For Loop which counts from 0 to 3999. The problem is that it...
[Deleted]
In the process of learning MQL4 I found out that at least my tester does not give information from other TFs. Here is the check code, it can be attached to any Expert Advisor. In my tester only the indications of the TF are changing, others stay at the same place. Comment ( "\n", "
Hi there, I don´t get any historical data, no matter what I do or configure in the options dialogue (bars in tester/chart). I. e. the tester gives me data for one week in M5, no matter what I choose. The historical database loads for maximum 1 month in M5, but the tester still does´t want to test...