MQL4 and MetaTrader 4 - page 122

It looks like a call to MessageBox() breaks something in the ability of MetaTrader to detect key presses correctly. Consider for example this sample EA code: void OnChartEvent ( const int id, const long &lparam, const double &dparam, const string
How can I compare and close first and last order when they in profit? Meaning when EA opens 5 buy orders, compare 1st and 5th orders, close when they are in profit, likewise compare 4th and 2nd order, close when they are profit. Instead of closing all together, how can i close in this way? Can you
I need help adding 2 moving average filter to the buy and sell entries of this EA. The EA will place a buy order when the fast MA is above the slow MA and a sell order when the fast MA is below the slow MA. The source code is attached below
  MT4/Ubuntu/WINE/Soft4FX  (12   1 2)
I'm pretty new to all of these things (been running Ubuntu for only a few months) I've recently installed MT4 on Ubuntu using the most recent version of WINE. Seems to be running okay.  Today, I just started trying to use Soft4FX (a backtesting EA plug in for MT4) with it and whenever it starts up,...
  MT4 Stats Wiped  (2)
Hi, Following the recent MT4 update, all my historical statistics have been wiped and all I see is the past 1 week statistics. Are you able to restore all the historical stats? My MT5 stats are still intact and work fine. Regards, Carlo
Hello together I tried to search through google for my problem but didnt find any solution. Im running a bot on a demo account and receicve the error message cannot order spread is too high. Max spread is 50 pipettes and the actual spread when received the error was never higher than 50 pipettes i
Please Help. Please Guide. I am running windows 10. I am posting here because I am stuck Running MT4 on 43 inch 4K Monitor and need Help as I can't return this Monitor. I do not face this issue on 32 inch Full HD Monitor anytime. I bought a 43 inch 4K Monitor. But the Candles appear VERY THIN with...
I have an EA to ride trends on Nasdaq. Let's say that EA opens 6 trades. Trades will be closed by the EA all at the same time. My question is: Once the 6 trades are closed, can the EA be coded to know if one of that trade reached for example 500 pips profit? Because once 500 pips are reached, the EA
  news filter  (1)
Please, I want to add a news filter for the attached trader Greetings and appreciation to you all
There is no CurTime() function on https://docs.mql4.com/function_indices aaand I spent 1 hour looking for what was wrong with my CurTime(var something) function :( it's obsolete https://docs.mql4.com/obsolete but still override custom function MT4 Version: 4.00 build 1355 16 Mar 2022
Hi everyone I have been reading the topics on this forum for years and I love the great feedback here. I open my first topic, to share and ask for your opinion. I am trying to make an indicator that automatically gives the fibonacci time of the current candle (not future candles), I insist it is the
[Deleted]
  Take profit MQL 4  (12   1 2)
Hi, If i want to modify a take profit, I've tried this but it doesn't work. res=OrderModify(OrderTicket(), OrderOpenPrice(), OrderStopLoss(), TP-OrderOpenPrice(), 0 , CLR_NONE); //where a Value is - from the open price
[Deleted]
Hi, i wanted to confirm all my reversal patterns for small bar. Also has anyone come up with a algo to tune oscillators like stochastic to bottoms on a trend, i've looked around but haven't found anything. // AN INSIDE BAR if ((High[ 2 ]-Low[ 2 ])/point >= 70 && Low[ 1 ] > Low[ 2 ] &&
I am trying to understand regarding input price as a double values against the actual market price in pips. For example I am working on a simple indicators where a user specify how close the price is relative to the 8 day EMA and then it will alert to buy or sell as an example. Per the scenario
Hi, I´m creating my strategy EA, and I can´t configure fine, error 131 and 4107 jumps and I don´t know what I did wrong. Please help me, this is my first EA... The code is the next: //+------------------------------------------------------------------+ //| PRIMERO.mq4 | //|
[Deleted]
Does MQL let you program volume as a perimeter? if (Volume[ 0 ] > Volume[ 1 ]) { res= OrderSend ( Symbol (),OP_SELL,SetLotSize(),Bid, 1 ,Bid+StopLoss* _Point ,Bid-TakeProfit* Point , NULL , 0 , 0 ,Green); } or if (Volume[ 0 ] > 300 )
Dear educated friends... I am new to EAs. One EA I got from a friend and I am running well in TIKKMILL broker MT4 platform which is installed on my laptop (Windows 10) But same EA with same settings, I attached to FBS broker, MT4 platform and It does not open orders. In the EXPERTS tab n MT4
Hi guys i wanna buy a chromebook, But i want understand  if i can install  the desktop version like windows ( i need to code custom mt4 indicator and expert advisor)... If yes what i need?  Developer mode on install linux and wine is correct? Or you have other solution?  Thanks you 
so I'm tired f having to load all my fonts in separate program to pick one for an indicator, i managed to add them in a dropdown list on my indicator, but they dont display as what i picked rather juist the generic default font. how do i make them relate to fonts i have installed on my computer
  Unspecified Error  (32   1 2 3 4)
Guys Im getting an error when , logging in to the MQL5 platform through the MT4 terminal. But its strange, that this only happens when i try to log in to FTMO account. When i try to log in with ICMarket , all works fine. Please see the screenshot of the error. Any solution
  Digital Martingale EA  (111   1 2 3 4 5 ... 11 12)
This is the first of hopefully many different versions of Ea's using Mladen's digital indicators plan on making martingale Ea's and regular Ea's using these indicators. The indicator is the same as Digital filters smooth -separate, but removed the mtf because to me makes it easier to code the mtf
Hello MQL5 Community I discovered an EA with two MA conditions and would like to use the conditions from the EA. The only problem I'm having right now is finding the condition in the long strings of code. The author of the EA gave permission to modify the code. I would appreciate your assistance
when trying to trade anything and starting with 40$ on mt4
hello, I have an indicator that sends me alerts for taking a trade, however, these are only alerts, I would like to automate the alerts when taking a trade. example I have my indicator that sends me a buy alert, instantly I would like there to be a buy order placed on my mt4 account. if you have
Good afternoon Does anyone use C***** MT4 accounts? .. Login and run EAs work fine . just won't let me place orders from script Any clues? Thanks
[Deleted]
Hi everyone, I would like to plot a label on the same price value of an horizontal line and on the extreme right of the chart (that's the point where I need help), ideally the result would look like this: As you can see, the yellow line represent prev. High and Low of H1 while white ones H4. If the
[Deleted]
Hi I am currently using MT4 with time zone GMT+2, but I want my charts to reflect New Yorks close, Is there anyway I can change this? thanks
How to make MT4 can be used as it was when it was newly installed. What files need to be removed so as not to overload MT4
Hello to all. I try to change the LOT value in a source code and I can't. It is currently 1.0 and I want to change it to 0.01. I tried to change the source code, and when I saved and entered the EA on the platform, I only get the value 0. I can't change the value, that is, I have a dot (0.01). Can
[Deleted]
The first thing to do is to define what constitutes a controlled dynamic system and how this relates to the market, a phenomenon seen by many as random and chaotic. . . . I will correct this later