MQL4 and MetaTrader 4 - page 77

Hi Folks, I have a string which I am saving to a file. Problem is, that the string has 4 CR in it, according to notepad++, which I want to replace and take out the line breaks. CR = Carriage Return ( \r , 0x0D in hexadecimal, 13 in decimal) — moves the cursor to the beginning of the line without
Hi pals, Hope you are having a nice day When I want restart VPS, I always Remove EA from chart, restart the VPS and attach the EA again to the chart. However this time I forgot to remove(and reattach) and my data from last run which I always recover with OnInit(), corrupted :( For now, I have 2
I am consistently getting the above error message. When I do not include the '{' I get multitudes of error messages saying if expressions not allowed on a global scope Is there any solution to this
  MT4 ON M2 CHIP  (1)
Any way to install mt4 on MacBook m2 since I keep failing to operate it, or will there be an upgrade on mt4?>thanks
Suddenly I was caught by this puzzling behavior of MT4, say Use Date: from 2017.06.13 to 2017.06.14, supposed to be the span of 1 day. On M15 timeframe, it should be (of 1 day) = 4bars/hour x 24 hours = 96 bars. Yet the backtest report says "bars in test" is 1097 bars! Can anyone explain this
Hello, I would like to know if there is a way to ensure that on my four mt4 platforms linked to the same account, where I have loaded a dozen EAs on each platform, when a certain profit is reached on the account, thus averaging the profit and loss between the four platforms, all positions on all
Hello Im working on EA for MT4 and i cant figure out how to make the EA to wait before last open position is closed (finished) before looking for a signal to make a new one.Sorry for the question but Im new to Mql programing so any help will be appreciated.Regards
  Objects Destroy function  (13   1 2)
Hello! So I have this Dialog Box with other objects on it. #include <Controls\Dialog.mqh> #include <Controls\Button.mqh> CAppDialog MyDialog; CButton MyButton; int AppDialogTop= 30 ,AppDialogLeft= 50 ,AppDialogWidth= 390 ,AppDialogHeight= 680 ; // Dialog Box int MyButtonLeft= 10 ,MyButtonTop= 10
Hi Does anyone seem to know the email address for MT4/5 to report any concerns
Hello. I have a problem using mt4. The message like the picture appears and the chart doesn't open at all. No EA is available. I deleted and reinstalled the program after the problem, but the problem still hasn't been fixed. How do we solve this
Hello, I'm trying to use an object method as a callback, inside an object method. typedef int (*IntCallback)(); class Obj { public : Obj() { } public : int func() { return 1 ; } public : void print_icb(IntCallback icb) { Print (icb());
I downloaded mt4setup after installation i get MT5 my code is MQL4 and is not working on MT5 what Should i do
I have been for a while tried to find a process to export my indicator data on my charts to excel I use my charts RSI (5); MACD (5.10,5); Three Color MACD (12, 26, 9); RSI (10); why can I not find a process to export other indicator data details to excel Please HELP
Hi All, I want to use my EA on different timeframes without deleting my objects. When I change timeframes my objects don't appear, why is that? if you know the solution please help. #property strict //+------------------------------------------------------------------+ //| Expert deinitialization
Hi everybody I want to placing an order(sell/buy) in specific exact price I know these tips: 1. It is possible with pending orders but in my case i want to calculate order lot size in that specific price 2. its impossible to modify lot size of pending orders 3. It is possible order could not placing
hey I'm terrible at coding but it seems this Ai almost got something working? Can anyone help fix it please? I was trying to get it to make a Midnight Open Line programme with a function to allow me to change the start of the line to 0700 (NY midnight) int gi_144; gi_144 = iBarShift(NULL, 0
What is the simplest way to convert an EA to an indicator
It seems that OBJPROP_RAY_LEFT is unavalible?  ObjectSetInteger(0,StopLoss_Line,OBJPROP_RAY_LEFT,true); It doesn't take any affact and I can't find it in the documentation any more. Is there any thing i missed?     
my indicator alert on every dot, but i need modified it to only 1st opposite dot
[Deleted]
  global initialization failed!!!!!!!  (73   1 2 3 4 5 ... 7 8)
If anyone could help...I run an expert advisor for 4 chart pairs, and for running it for the 5th, after loading succesfully, i have global initialization failed, and then removed ... I would appreciate at least a guidance what to look for.. Thanks
[Deleted]
  Maximal drawdown  (8)
Hi. I ran an EA and got 29.59% Maximal drawdown (5315.90 $). As I know, maximal drawdown is the maximum difference between any top to any bottom. Looking at the back testing report , the maximum difference between any top to anybottom is 2701.40 (25547.80 - 22846.40) which are 10.5%. Can anybody...
I bought an EA from a certain party and dropped it onto a chart. The EA screen appears and the Journal tab showed that the EA was loaded successfully but no trading at all is happening that is supposed to happen. How can I tell if the EA is running or not? Is there any way to enable debug messages
I'm still trying to wrap my head around creating and accessing arrays... Not quite sure what I did wrong here. Thanks for any insights. :) double SwingValue[]; int sBars; sBars= Bars ; for ( int i = sBars; i>= 0 ; i--) //starts at first bar, to current bar
I have global variable that is used in function, then I use script to test the function result using the alert function Alert("Variable","Function()); Alert(" Function ()","Variable"); but when I alert the result of the function and the global variable the result differs if I mention the variable
Hi, I am trying to get the moving average value of the RSI. RSI - 14 length MA - 20 I saw a lot of different examples on here but seem a bit complicated. I created the below code which seems to be working just fine to get the current value. Can anyone confirm if this is correct or why it is wrong
Wondering if someone can shed some light on an issue I'm having in my OnCalculate() function. I'm trying to do three iterations of calculations when the function gets called, but I can't seem to get anything to happen in the third iteration. Everything works fine in the first two iterations, but if
//+------------------------------------------------------------------+ //| Close Opened Orders | //+------------------------------------------------------------------+ void OrdersClose() { for ( int i = 0 ; i < OrdersTotal (); i++) { bool
Hello, please see the two errors attached. I will paste the code below, I would greatly appreciate if you could tell me what to put exactly where. Thanks in advance #property version "1.00" #property strict input double Lots= 0.01 ; input double TrailingStopStart= 100 ; input double
hi , greetings to all , i'm not coding background person . i used the attached ea in older version mqal4. now i try to octafx new version mql4 its not working. kindly any genius help me out from this issue...... it is basically buy sell grid EA
hi devs, How can I capture the account balance on day 1 of the month? I tried the following code but it failed: If(Day() == 1 && Hour() == 0 && Minute() == 0 && Seconds() == 0 ) { Start_Balance = AccountBalance() }