MQL4 and MetaTrader 4 - page 57

  Heikin Ashi (better formula)  (104   1 2 3 4 5 ... 10 11)
Can someone do this program? From an article made by BNP-Paribas it seems that we can have better representation with Heikin Ashi if we made the following modified Heikin-Ashi candlesticks as follows: a. haOpen, haHigh and haLow according to Dan Valcu formulas. b. haClose is calculated first
I have rented MQL5 VPS with my free minutes included in my account and now I can not cancel or stop it anymore. I am logged into the same IC Markets account and same MQL5 account on terminal ... but I can not do any modifications to it. Help anyone
hello i am using the start.ini file to open the mt4 with Different account details the content of the ini file is : ; common settings Login= 2102179493 Password=f5secbf EnableNews= false ; experts settings ExpertsEnable= true ExpertsDllImport= true ExpertsExpImport= true ExpertsTrades= true and then
Hi; I want to perform a number of calculations that use double variables (Open[], Close[], Ma Value, iHighest, iLowest, etc.) My problem is that no matter which conversion function I use (NormalizeDouble, MathAbs, MathRound, (int), etc.) I can not get whole numbers (integers) on a continuous basis
How many users may i create with multi terminal? And can each account run a different EA independently? Thanks
  Range Bar  (1)
Hello, could someone drop the RngeBarChart_203e_edu plugin indicator, thank you in advance and best regards
Hello; Is there a way I can determine an actual candle close as it happens? Both iClose[] and Close[] don't do that. Any suggestions are welcome. Thank you
Can an indicator such as H4 or D1 be shown on a different time such as M15 or M5 ? Since the indicators properties do not have any options for this I assume "no". I figured I would ask about this before starting to make this code. Thanks
I have a demo account and a real account with a broker. They both work fine. Now, new broker. I also have two demo accounts with this new broker. They work fine. I opened a real account with the new broker. I click "Login to Trade Account," fill it in, press Enter and nothing happens. When I click
Kaufman AMA ( adaptive moving average ) made specificaly for the new metatrader 4
Hi, I have an indicator that I have on my chart, this is a custom indicator and I don't have the code for it. (this is a custom indicator that I am not allowed to share with anyone) Can someone make me the following:- Scans all pairs that I have open in my MT4 Looks for price above or below the
Hi everyone, I want to use OnTime() with high frequency and give it a lot of operations, so I am not sure if all of them will be processed in a given timeframe. Will next OnTime() break execution of my code or it will wait untill everything in the previous OnTime() is executed
[Deleted]
How to code to get MIN and MAX openprice of all "Open Trade" Hi guys, I would like ask if anyone know how to code the function to get the MIN and MAX open price of all ongoing running trade of Symbol(), assume I got no magic number. E.g I got 4 trades of EUR USD running 4 open trades 1.3040, 1.3077,...
Here is what I am using (see below). Now keep in mind this works on metals and FX markets...? During back testing these are the parameters: 2014.06 . 11 22 : 53 : 35.016 2008.09 . 25 10 : 00 Trend Fishing XAUUSD UK100,H1: Account # 16384 -- leverage is 1 : 100 -- Account currency is USD -- Minium
Hi all, how can i count optimization passes to write them into a csv? int deinit() {     if (IsOptimization()){          // Counting passes       } } Wich approach use?  Thank you 
Hi,   I have a problem on the Data Import in the History Center.   I have downloaded historical AUDUSD M1 Data from this post.  https://www.mql5.com/en/forum/134765.   After download, I import the AUDUSD M1 Data in the history center. The Database has 3933991 records. (as shown in pic 1) and the...
Hi everyone, Can anyone help me to code this concern issue...Time is freeze when i open the EA program. Time does not run in actual.. this is the actual output of EA mq4 this is the code in .mqh #include <Controls\Dialog.mqh> #include <Controls\Label.mqh> #include <Controls\Button.mqh> #include
Hello, I'm getting the following error 6 in my code while creating a new order. What does the error mean and how can I fix it? Cheers, Eashan
Hi since I have moved from Android Kitkat 4.4.4 to Android 9 Pie, MT4 sound notifications ( Metaquotes ID messages ) are not handled correctly. This seems to be an issue of compatiblity between MT4 and the new flexible way how Android 9 manages the notifications. All the "MESSAGES" settings (...
I have recently created a custom indicator in MT4. It works fine on my charts, but when using iCustom inside an EA it will not fetch the values and returns the max int value of 2123237 or whatever the standard is for empty value. The indicator code is attached below
  Object Trendlines Properties  (16   1 2)
I've created a trendlines into a small vertical line to fill the candle body, so that I can change the body colour of some candle if they meet a particular condition. When I increased the thickness of the line to fill the body, the line ends become so rounded that it extends beyond the body of the
Hey, everybody. Hope everyone is doing good. The following is an attempt to create a simple EA that uses 2 Indicators (EMA 103 Length and a TDFI with 10 Trend Period) to do scalping. It is a work in progress but I would like any recommendations and a little bit of input help in adding risk and lot
Good day everyone, I created a program using MQL4 Expert. The program was successfully running using EA (void ontick). the rsi value and some string are shown and working properly. After that i create a panel/dialog using include program with class which i want to attach the early program that i
Hi everyone, I need an elementary script for MT4 that when I open (click) a buy operation replicate the same operation 10 times and put stop loss 10pips under purchase price for this 10 operations. I have no experience in MQL4 scripting .. Thank you for the help
double first_order_price = Ask; // store the price of previous order // Open 2st long position with smaller price if (Ask < (first_order_price - 10 * Point )) { ticket2 = OrderSend ( Symbol (), OP_BUY, lot_size, Ask, 0 , stop_loss, take_profit, "Test" , MagicNumber, 0 , Lime); }
[Deleted]
I often find that I want to go back to review a specific set of trades. Is there a technique that will allow you to go directly to a specific date/time on a chart? The manual scrolling is very tedious, and when you change something the chart flips back to the current time. Is it possible to...
I need help fixing this error in my code: "Unexpected end of program' and 'unbalanced Parentheses". When i try to fix it i get more errors. Here is the code: void OnTick () { // Check for open orders if ( OrdersTotal () > 0 ) { return ; // If there are open orders, do nothing
Hello, I am trying to upload a new version of the EA to the market but I am getting error 130, I know what it is and I test it in strategy tester however the problem does not exist here, So can someone tell me if it is mine problem or problem of validation server
I'm trying to double the previous trade lotsize if the last trade was negative in the following code : double last_lot; double lotSize = AccountBalance() * percentage / (StopLossPips * MarketInfo( Symbol (), MODE_TICKVALUE)); int total_orders = OrdersHistoryTotal(); int loss_trades_count = 0 ; for (
What does this mean and implies? I see the bot not taking trades 2023.04.21 16:58:18.083 ....... EURUSDm,H1: **array out of range in '65391-55581.mq4' (4857,29)** I got that error when I load my EA on the chart and refused to take trades and it is only happening on my VPS, everything is good on my