MQL4 and MetaTrader 4 - page 10

Hi, I purchased a subscription to VPS for my platform MT4 brokerage account. My problem is I cannot connect to the VPS server from my platform, any help out there, thanks
[Deleted]
Hi all, A year ago or so I started with coding mql4 expert advisors. I have no programming background so I had to learn everything from the start. Currently I am at the stage where I can code most common strategies. In order to improve my coding skills and gain experience, I am offering to code...
Quick question: Why, despite telling it display the price in accordance to the appropriate number of decimal places of the chart, does it constantly fail to include the "0" when the price ends with a zero. I have the following: double CurrentBarOpenPrice = NormalizeDouble (Open[ 0 ], Digits );
I could literally scream I'm sorry but in what universe is MQL4 seeing the following : "+DoubleToString(0.56 * 100,0)+"%"+ as "56.00" and not "56%". The words "sick" and "tired" do not cut it, especially when this only happens with one currency pair, and no other. Just why
Hello.. What is the maximum value of a magic number
Predefined functions are not working. They are not turning into Pink color and so I get an error that it is an undeclared identifier. Any ideas?? //+------------------------------------------------------------------+ //| Predefined Variables.mq5 | //|
Hi all, I am programming an indicator and I wonder if it is possible to use non-standard timeframes in MQL4. Basically, I am thinking of using M10, H2, H6, H8 and H12 which are all available in MT5. Is this somehow possible to use them in MQL4? Currently, I was trying something like iHigh(_Symbol
Hello, How OnTimer work with Oninit. Every 60 seconds all four Print will be executed? bool assignVal=True; int OnInit () { Print ( "Checking Print 1 with Timer" ); if (MarketInfo( Symbol (), MODE_STOPLEVEL) > 0 ) { Print ( "Checking Print 2 with Timer" ); //--- set timer
[Deleted]
The function DayOfWeek() returns the current zero-based day of the week (0-Sunday,1,2,3,4,5,6) of the last known server time. My broker's (FXopen) server time is GMT. The server opens a new daily bar at GMT 00:00. Eastern Time (New York) is GMT-4. If the forex market officially closes at 5:00 PM on...
Hi, is the max amount of charts that can be opened in MT4 99 or 128? I saw on this forum that some people say it is 99 and some people say it is 128, so which one is it
Hello, I am trying to store one small value into file. Simple, Rule If file exist, read the value else create new file and store the value When OnTick condition executed, Rewrite the value. But i am getting an error 5011 and when i open the .txt file, it always empty and blank. How to solve this
As in topic what is the difference between them? Documentation in mql5 seems to be avoiding proper definition and examples for extern type
Hello Guy's Iam Newbie Im Getting an ERROR in Mt4 Like this Mentioned Below Need Your Help Community Thanks in Advance cannot open file 'C:\Users\Shaik\AppData\Roaming\MetaQuotes\Terminal\5D49F47D1EA1ECFC0DDC965B6D100AC5\MQL4\indicators\FFCal.ex4' [2]
Dear MT4 Forum Moderators, I almost lost my account due to the upgrade of Metatrader 4 from version 1400 to version 1408. The bots (EAs) were running there for many weeks without my supervisor. My bots are very reliable. However, I take a look sometimes on the mobile app. I noticed the account
Hey! I am trying to change features such as the color of candles and background color so they automatically load when the EA is placed on the chart, I'm not sure why this function won't load in the Mq4 file for the EA, so I'm trying to change the colors in a separate source file then #include it in
  Parenthesis  (5)
Has anyone encountered anything like this? I have extensive code, around 2500 lines. When I point the cursor at a parenthesis, it is highlighted the same as the corresponding opposite parenthesis. But when I mark one of the last brackets (last 4 right -} ), it doesn't highlight. So I find the
Hi all, Trying to find the highest amount of open orders but but this code gives the same amount for TotalOpenOrders and MaxOpenOrders. Thx a lot. Amir int TotalOpenOrders = 0 ; int MaxOpenOrders = 0 ; for ( int i = OrdersTotal ()- 1 ; i >= 0 ; i--)
Hi I have an EA that uses a higher TF to determine a moving average crossover then goes to a lower time frame to determine when to get into my trade based on my conditions. Is there a way to backtest this or optimize it ? I was told there isn’t a way in mt4 and wondering why this is ? My developer
[Deleted]
Hello, Is it possible run existing EA from a script/ea ? If so, is it possible to define the ea settings like Pair, Timeframe and parameters ? Thanks in advance, Manu
Hello, I am adding new feature in my EA, which close trade automatically when it fulfilled defined earning set by user and than it redefine with value again with new Account balance. Example : Account Balance = $1000 Target Percentage = 10% (10% of 1000$ = $100) When Account balance is above $1100
Hi, I am trying to write an indicator that puts an arrow below or above the current candle if it's Low/High is lower/higher than the Lowest/Highest value in the previous 120 candle but I can't work out why my code is putting arrows on every candle. Would appreciate some help. Here is the code
  OBJ_TEXT not showing  (11   1 2)
I just want to print a small OBJ_TEXT in the right upper corner of the main chart window showing SWAP LONG and SWAP SHORT. I can print the values and show it in a comment but OBJ_TEXT is not showing up at all Am I missing something? #property version "1.00" #property strict #property
I have heard rumours that Metaquotes will be phasing out Metatrader 4 soon. Is this true
Hello, I am changing my EA code from Pips to Point directly. Previously it was like extern double TP = 30.0 ; extern double SL = 253.0 ; int OnInit () { if ( Digits == 3 || Digits == 5 ) Pips = 10.0 * Point ; else Pips = Point ; if (Trading_Strategy == Scalping_TP) { TP = SL *
[Deleted]
  Toolbars disappear  (12   1 2)
Always when I re-start MT4 my toolbars have diappareared as well as my terminal. Whatever i try with profiles, it does not help. Anyone knows what I should do? Thanks.
Hi All, I am struggling to find either a standard or custom drawing tool in MT4 version 4.00 build 1280 that will allow me to draw a horizontal line between two chosen points on a chart, and then show the level in the price axis, or next to the drawn line. Today I am drawing the horizontal levels as
Hello everyone, Please I need somebody's help concerning this, I have tried everything i know but to no avail. After completing my EA and compiling, it displayed "Event handling function not found!" on line 1 and column 1, I checked everything about line 1 and column 1 but there is nothing to...
Hi all. I received the attached email from the broker with regards to hyperactivity on the account. Does anyone know of a way to work around this issue. The EA is a tick scalper. Is there a way to reduce messages or bypass them, or if anyone knows of a broker that allows this type of activity then
While adding an S&P500 index chart, I accidentally added the wrong one and subsequently added the correct one. Please can anybody tell me how to remove the extra index from my list. I know that I have to tick a little box and then delete, but I can't find out how to get box to appear. Thanks if you
Hello everyone I use this code to draw SL and TP lines. I have two problems: 1) I can't continue the lines until Time < Time[i]; For Example : Time[i-10] 2) Each time the indicator signals, the previous lines are not deleted to be displayed for the next signal. But this happens when the timeframe