MQL4 and MetaTrader 4 - page 146

Hei MQL5 Community, I've been working on two entry conditions for my EA. I am still new to coding and would appreciate your assistance in providing your expertise where my code lacks the necessary conditions. The Strategy: 1. The MA filter check is a Boolean that can be either true or false. 2. As
I am looking for a way in MT4 to programatically know how an order was closed, e.g. did the EA close it or was it a human/manually instigated operation. Is this available? I've looked at all the Order* commands, nothing seem to fit this requirement
I've been backtesting and the report says "Modelling quality: N/A." Does it mean that my data is unreliable? Mismatched chart errors: 0 Thanks
Is there a way to know that we are in the current candle or bar? Well I always do is if Open price is the same , we are in the current candle. But is there another way? Thanks
Hi All, I am trying working on an MA cross EA where the stoploss is right above the high of cluster of candles greater than the MA if i'm in a sell and right below the the low of the cluster of candles less than the MA if im in a buy but i'm having a problem figuring out the code. Here is what I
can we read from a file during backtesting in mql4
int hiddenDivergence( int BarsShift) //BarsShift is the shift in bars { double currLowRSI = iRSI ( NULL , 0 , 14 , 0 , iLowest ( NULL , 0 , 3 , 10 , 0 )); //Current RSI (Lowest in the last 10 bars) double currHighRSI = iRSI ( NULL , 0 , 14 , 0
I´m coding an EA that just sells and I code the patron i want the expert follows but i dont know how to set the stop loss where i want (VIEW IMAGE) Here is my code, please help me. //+------------------------------------------------------------------+ //|
Hi, attache dis th image showing stats to my trading, but shrap ratio is not showing. Its available for mt5 alright but with mt4? anyone any clues
Hi, I'm new to mql4. I'm learning. I would like to know if someone could help me with an indicator that I have! I would like to place a horizontal line at the 0 fibonacci level and when moving the horizontal line the fibonacci expands or recedes, thank you very much who can help me #property
So i downloaded as much data as i could on NAS100 and it shows in my history center. I also used only what was available. BUTTTT.... the modeling quality for my EA was still 50.77%. I don't understand what I am doing wrong here. I have searched for answers and i can't find any. Maybe someone could
Hi, I'd like to write a code in MQL4 to count the candles back with a certain condition. E.g. counting the candles back to the point where Moving Avg. 8 crosses Moving Avg. 20 I am not programmer, can anyone help me on this please
Hello all, I have a slight concern I am running into. There is this EA I am testing on the strategy tester . The issue: I set the strategy tester to run from 17/05/2021 until 16/05/2022 , the EA seems to work just fine but only until near the end the EA does not follow the logic. What I have done
Hi, I am US residents and searching the good database of MT4 experts which has 1:50 leverage. Can you please guide me to find based on subject line? Thanks, Raj
Hi all. I have been suffering from some VPS trouble using the built in VPS on MT4. Initially I was seeing ' 1 chart, 0 EA, 1 custom indicator, signal disabled but I seem to now be facing a different problem after the EA now appears to have migrated. After what seems to be a sucessful migration, is
I have a new Windows 11 (fully updated) Dell computer which is pretty fast (12th Gen Intel i9-12900K, 32G RAM, 2 SSD's). I like it, and with 16 cores/24 threads, I can run a lot more MT4's at once now, but there is one big drawback, which is that when I use the MT4 Order form to update the S/L or
Hi, When you click New Order in MT4, by default you have the order type for Market Execution. Is there any configuration to change the default type to Pending Order? Your help is greatly appreciated. Thank you Kelvin
Dear all... I opened my order manually and I'm looking for an Ea to close all orders(buy/sell) when a candlestick touched an Ema8 in 5minutes timeframe. Thanks in advance
Is there a built in mt4 / mql4 function that is able to show daily p/l or p/l for a custom defined time period? Appreciate I'm lazy, just trying to avoid having to code an EA to get some basic info out. Thanks all :)
Hello, When you open up MT4 and you go to Files > Open Data Folder and there should be a unique name consists of 16 characters. It should appear as per below image:- but on my Laptop, it does not show this 16 characters, please see below when I open up File > Open Data Folder (the 16 characters is
[Deleted]
Hi, I'm a newcomer to programming and MQL4, and I was wondering if some could help me with a piece of code? I've looked everywhere and the book/articles/google don't help me. I may have stumbled across the answer but because the code is so complex, and not relating to comparing arrays, I'm having...
  Closing out half lots.  (181   1 2 3 4 5 ... 18 19)
So I managed to incorporate a loop that deletes the pending order and re-applies another one on the basis that the stop is synced with the moving average. The lots would be calculated based upon the pip distance of entry to stop. Not only this, but I have managed to work out how the profit target
Hi, I am writing an expert advisor. The problem I have is that on Strategy Tester, SELL trades are positive, which is correct, but the BUY trades are all negative. That is across over 700 trades. All trades should result in at least a $5 profit. All small profits are disregarded. Can anyone help
Hello everyone, my EA and the different EA based in the Market doesn't work for me. I'll send you a picture that show the error . And yes i am connected to my broker.. Do someone know what's happening ? Thank you
Please how do I add Martingale to this ea, I don't want anti-martingale what I want is just martingale, please help this is the code #property copyright "Andrew Young" // External variables extern double LotSize = 0.1 ; extern double StopLoss = 50 ; extern double TakeProfit = 100 ; extern int
Hello everyone! For an indicator that I am doing, I need the mql4 comman or code to obtain the maximum and minimum price from a vertical line, I know how to do it from the window but not from a vertical line, can someone help me. attached code so far
Hello all My MT4 suddenly getting very slow and freeze in running the chart after adding some indicator on it, has anybody facing this kind of problem? - Backtesting EA through soft4x - 5 indicator running - 3 window chart represent timefram 1m, 5m, 1hr This quite obviously happen after i add last
Hi, I use MT4 on my internal hard drive and on two other external ones, and since it often gets confusing to switch files from one to the other, do you know if it is possible to use a single editor with multiple Mt4s? Which then in reality, I think this is already possible, the most correct question
hey guys, i need some help. new to mql4 dont know what im doing, im making a custom indicator for an ea. i wanted to get the VWAP indicator that resets daily and has the upper and lower bands using standard deviation. this is where i got to. Dont try and open it on mt4 because it will crash your pc
Hello, First post LFG! I'm pretty new to MT4. I coded a lot in python so MT4 will take some getting used to. 1) What resources do you recommend as I can't find decent ones online 2) I'm trying to make an EA that checks if the last bar printed is inside the previous one Like say we're at time, T. Is