MQL4 and MetaTrader 4 - page 39

Sorry for the images, but it's easier to show. For constructor works as expected: But for the destructor it works strange
How can I get the OnChartEvent() of a non current chart
I need help to debug my coding. I cant figure out why my code ea able to execute properly. 1. i need ea to check if there is any buy position open before open new one, same check process to sell position. 2. i will only allow one buy and one sell open in the same time, but order have to reach target
Hey, this is basically a general question but it's related to EAs. I find that my EA does not work the same way with one broker, Prosperity, versus another, Hugosway. I did program the EA using a Hugosway client in MQL4. Is this a coding issue or are there actual differences between brokers? Thank
Im creating an expert advisor that calculates stats of each magic number in Orderhistory() and printing them , the EA is working well on a small account with less that 30 magic numbers in order history . however i tried this EA on an account with more than 100 magic numbers in OrderHistory() and a
Can anyone teach me how I can manage multiple mt4 account with a single account for free ? Kindly help me out with this
Hi folks, Does anyone know if I can run an EA on a custom time frame? I mean run a live EA that places real orders. If you google it, you find plenty about using a custom time frame in Strategy Tester. But I have not come across anything about using one live. I have tried to attach an EA to a custom
Could anyone could help to confirm, what is the time using in strategy tester? I checked on the reference it MT4 documentation it state "When testing, the time is simulated according to the historical data. TimeLocal() local time is always equal to TimeCurrent() server time. In turn, the server time...
Hi how is possible detect a minimum size for open a trade ?, i know depend of the broker and i suppose also of wallet balance margin e much more ?? , i suppose that this problem with this one line code minLotSize = MarketInfo(_Symbol, MODE_MINLOT); is possible resolve but unfortunately no because
  Error 130  (4)
Can anyone help with error 130? I've paid for an EA and the developer says he can't see anything wrong with the code. This happens when I activate the breakeven or stoploss, I send an image, please I'm looking for someone who can help I don't understand anything about codes, it doesn't make sense
May I know why all my signals created was deleted? What I've done anything wrong? Please explain. Can I create new signals
The MetaTrader 4 platform update will be released on Friday, January 13, 2023. It contains many fixes and improvements accumulated since the previous release a year ago. The update will be available through the Live Update system
I am trying to read a txt file and am not sure what the best way to do this in mql4 is. (I am not very familiar with mql4) In mql5 I use the following method to read the txt file and use that data as a string variable called NewsFile within my program: #resource "HighImpactNews.txt" as string
  ToR 1.02 - Trending or Ranging  (195   1 2 3 4 5 ... 19 20)
ToR 1.20 OK, the latest version of ToR now adds CCI on three timeframes, 1 min, 5 min and 15min with both Entry and Trend user adjustable. The calculation is done price typical so it will match up with woodie's CCI numbers. OK, 1.11 was broken, if anyone has it delete it and use 1.12 instead or the...
I am trying to use the result of WindowsBarsPerChart() in an MQL4 indicator attached to a chart. By using Print() I can view the result in the 'Experts' tab of the terminal window. As I navigate between other symbols' chart windows I see that the value varies despite the indicator being attached
Experts of the MT4 Forum : I have on hand a CSV file with 943690 rows of M1 EUR/USD data which I imported into MT4 via tools-history center, but after importing I found only 79124 records and then I can see quite a lot of breakpoints on the charts. What is the reason for this? How can I solve this
Do the Volume Array items have a Bullish Bearish property? Thanks
https://www.mql5.com/en/charts/17914343/gbpjpy-m30-fxtm-this-trade-still-end-in-loss-help-from-fxtm
hi guys i ahve this control in middle of script if (ij% 2 ){ if (VarOrder1 == 0 ){ VarOrder1=OrderTicket(); } } else { if (VarOrder2 == 0 ){ VarOrder2=OrderTicket(); } why return
I have two Internet connections. One of them is working fine. It's just a little slower. The primary one can log on to my brokers (two brokers) and update all the data in the charts, but I can't place or close any orders. When I try to open an order, it just hangs forever. After a very long time
[Deleted]
Hello, I have an EA that I am programming to utilize one of several different order close conditions. The conditions are: daily, weekly, and equity based (if equity gets too high or too low). These are all programmed and working successfully. I am also needing to add a monthly close feature that...
HI , I am having a bitter experience trading. I am new with only a few months experience and am unable to take full advantage of the features in MT4 simply as I am still new and secondly because of the broker as they are discouraging to use MT4. They allow to download from their website only,and not
CAN NOT search brokers and can NOT login to IC account via MT4 mobile APP
I have noticed I cannot access Market from any MT4 terminal. I am logged in but I just get blank page. I have refreshed and restarted terminal Can anyone help
the first test with gbpusd 1.7.2022 to 14.7.2023 Symbol GBPUSD (British Pound vs US Dollar) Period 1 Hour (H1) 2022.07.01 00:00 - 2023.07.13 23:00 (2022.07.01 - 2023.07.14) Model Every tick (the most precise method based on all available least timeframes) Bars in test 7461 Ticks modelled 29443782
Hello Everyone i have this function on mql4 to check if there is an opened order with specific magic number: bool CheckIfOpenOrdersByMagicNB( int magicNB) { int openOrders = OrdersTotal (); for ( int i = 0 ; i < openOrders; i++) { if ( OrderSelect (i,SELECT_BY_POS)== true ) {
hi i have create a line chart and i want fill under the line like the attach i think for have this effect i should painted rectangle under the line many rectangle , the question is how is possible find a end of screen ?? when zoom or unzoom the screen change , i never think at this problem anyone
Hi! I'm trying to call iMA in OnCalculate of a custom indicator: for (int i = start; i < rates_total; i++) { double fast_MA_prev = iMA(_Symbol, _Period, prm_MA_fast_period, 0, prm_MA_calculation_mode, i-1); // where prm_MA_fast_period=10, prm_MA_calculation_mode (ENUM_MA_METHOD) is MODE_EMA. //
Hello how are you I am new to learning the mql4 language, but I learned how to create a trading expert based on moving average crosses This is the code I use Now I want your help on how to write a trading code that commands the expert advisor to enter the deal buy, for example, when the price closes
Hi all, i'm restart to work with MT4 after many years and i have noted a big worsening in test performance. I don't understand why, it seems that the new versions of Windows works worse than the older but i really don't understand why. I already use the standard tricks (less bars, few variables