MQL4 and MetaTrader 4 - page 51

Hi guys!  I was looking for an automatic lot size calculator based on a horizontal line. All the stuff I have found are position size calculators, but then you have to manually enter the lot number in the Red/blue chart with the buy/sell buttons. I need something that automatically calculate the lot...
So, I want to create a EA to communicate with my Notion DB each time I close a trade. My main problem is that I cannot connect to my Notion DB; server throws me a 5203 error. Don't know if I am doing the headers wrong or what else I am doing wrong. Here is my code: #include <JAson.mqh>; extern
Hey guys, im trying to draw an arrow that will appear on top of the candle sticks and not be hidden behind them as shown. Here are the Object settings that I am using. Any help on how they can appear in front of the bars?! Many Thanks string drawArrowSell = "SellOrderArrow-" +
I have a problem to ceck the orderselection. The orderclose function (partial)close always the operation, how can i stop like for partial close only 1 time ? i have ceck the lot but don't work int digit = ( int )MarketInfo(OrderSymbol(), MODE_DIGITS); int op[ 6 ] = { 0 , 0 , 0 , 0 , 0 , 0 }; for
Hello First i'm beginner with MQL4 I would ask about Calculate Commission like pips. I want function take paramter size the lot and return how many pips I need for Cover this Commission + Spread Becuase I want cover loss Commission and spread when you open order the company take Comission and spread
Hello guys! I want to maximize quality of my backtest in meta trader 4 version But I often face with bad results. Is there any way to increase quality of data used in backtest
  Free EA creation  (247   1 2 3 4 5 ... 24 25)
Hi, If you have indies + method that trade wise works out for you, I'd be happy to mql EA it for you to have it auto-trading. No obligations, and will post the EA in this thread. I have major piece of software that will first hunt/sniff-out optimum way to use your indies In a strategy/EA, so your...
Hi, If I want to run 20+ MT4 terminals on one machine, will the number of cores help? I've read online that having many cores doesn't help to speed up your MT4, but what if there are many MT4 terminals? Will different MT4 terminal processes spread among different cores? I lack IT knowledge to answer
  Grid help  (5)
Hello I've this grid system code from my EA. When the conditions for buy order have been fulfilled the Grid will be activated. Anytime the price moves down by the grip gap points the EA will open sell grid orders and when the sell order conditions have been activated and the price moves up by the
I'm trying to copy a file on my C: drive from mql4.  I cannot use the inbuilt mql4 FileCopy command as the file I want to copy is not within the metatrader folders. Here is my test code, but it's not working.  Any help would be much appreciated?   #import "shell32.dll"  int ShellExecuteW(int hwnd...
Hi I want to Calculate commission per lot/lot size. The broker I use charges $3.5 per lot, now the problem I'm having is I'm not sure if the calculation below is correct for commission. I use the following before calculating commission: double LotSize() { double LotStep=MarketInfo( Symbol
Hi everyone, could someone please help me solve this and tell me why this happens? I tried prev_calculated, IndicatorsCounted(), fixed amount of bars, also tried this https://www.mql5.com/en/forum/159093/page2#comment_16536812 , nothing worked... Thanks in advance
Hi. I've been trading for years, but I spend a lot of time doing things that a monkey could do. My system is essentially to trade both ways on a market, close at a profit and open a new position when the market moves a certain distance from the previous unclosed position. Is that possible to
Hello, I am using the followin setup: 1 Master account 15 clients account In order to keep things tidy I was thinking to separate the clients under two different Windows User on the VPS. So on User #1 I have the master and 8 clients, so I installed 9 times the MT4 platform under different folders
Hello, I've written this partial close function but it's not working as it's supposed to. I need your help in correcting the bug so that it can work in my code and help in closing orders partially after certain % of pips has been achieved. void ClosePartial() { if ( OrdersTotal ())
  How to use || at int?  (15   1 2)
Hello I am a beginner, i just try to say: for ( int j = 1 ; j <= 900 ; j++ ) if (Close[i] > Close[ 1 +J]) It is mean that close 0 is above all closes of the last 900 candles, but i need to say that close 0 is above close 1 or above close 2 ... to the last 900 candles! when i write: int x= 1 || 2 ||
Hi, I am new in MetaTrader Help me to find original Indicator Name
Hi, I've created an EA for MT4 that scans all the Forex pairs and all timeframes looking for engulfing patterns and pinbars. The code runs on a timer, every 10 seconds. The code works fine most of the time, but I've noticed that when I use "iTime" in the following code, it returns dates from the day
Hello friends, I want to change the size and direction of the arrows in the command below what should i do Improperly formatted code removed by moderator
I tried searching for C++ Keycodes but nothing came up for C++, just different languages. I noticed the MQL4 help manual offers some examples, but I couldn't even find the ones that match up with the following example in the help manual: #define KEY_NUMPAD_5 12 #define KEY_LEFT 37
Hello everyone, Here's my problem: 1) All my terminals were running on Terminal Build 1353. After some time, the terminal could not connect to the internet and broker, and I couldn't trade. A message appeared in the terminal: "Old Version." 2) I tried everything to update my terminals, I even
Hello, I hope somebody can help me with my problem. The problem concerns to mql4, I don't know that is a good place of this topic. I have open several charts and on each of them is working EA. If EA will open or close position I'm doing screenshot. To do this I need to bring chart to top using this
I would like to make the following two changes to the EA in the attached MQL4 file. (1) In the case where this EA already has a pending Stop order or Limit order due to an EntrySignal, If the EntrySignal is raised again when the bar is newly opened, I want to cancel a pending order with the same
Hello all Right can anybody shed any light on the reason as to why MetaEditor is telling that I have unexpected tokens where correct syntaxes have been adhered to, in addition to the `'return' - semicolon expected diagnostics-data-002.mqh 203 4` message appearing when there is literally a semicolon
Hi people. I'd like to know where could I get a free or buy an API that could be used to copy trades from an MT4 platform directly to a website. I bet there is one already made? If not, could someone custom code it or give any other solution how this could be achieved? Thanks in advance!
  Update HST File  (2)
Hello, How can I update the H4 HST File via code? As you can see the file sometimes doens't get updated even for days. Even after many candles have closed in MT4 and History center reflects new candle data. Cheers, Eashan
[Deleted]
Hello, I had yet ask this question, but the answer didn't work. I'm making Money Managment for my EA and I need to know/calculate total profits for the current day only and total profits for all previous days (from the begining of the month) I need also know/calculate total balance day per day for
I have the below trailing stop loss coded, but it seems to be affecting all the open orders the same way, making all of them converge to the parameters of only one (the most recent) and it always prevents older orders from reaching take profit . How can I best change this code so that Position
[Deleted]
Hello, CopyFileA or CopyFileW not working any advice? //+------------------------------------------------------------------+//|                                                testCopyFileW.mq4 |//|                        Copyright 2013, MetaQuotes Software Corp....