Download MetaTrader 5

MQL4 and MetaTrader 4 - page 293

To post a new topic, please log in or register
Hi fellow traders, One of my current projects has reached a state where i don't know how to progress. I simply don't know how to categorize an anti-grid like system. The system uses no indicator, and is based on the assumption that the market will not be sideways forever. The overall target is...
Hi all I would like to sort 8 global variables that are constantly updated. I have read ArraySort() fuction... but I can't figure it out. //////////////// GLOBAL VAR //////////////////////// int GV_TOTAL_ASSET_AUD = GlobalVariableGet("GV_TOTAL_ASSET_AUD"); int GV_TOTAL_ASSET_CAD =...
I'm having this dilemma of actually quantifying a strategy as accurately as possible. Speaking more precisely; if I back-test 12 different pairs and I wanted to build a simulated model of all those trades in chronological order to see what the equity curve over that time looked like; how would I go...
Hello, I need your help. I want that the ea open an order in the direction which the ea has give his signal but it doesent worked for any reason. Can someone help me?    The EA onTick void OnTick()  {if(check == false){   double Equity = AccountEquity();   Verlust = -Equity*RiskPercent*0.01;...
Hi everybody !   As u can see in the title, i need some help to convert a PRT code into MQL4 (indicator). It would be amazing if someone could help me !   The question is : Does this code is correct ? And secondly, why i couldn't display MemTop1[] variable ? I tried a lot of thing.... Thank you very...
Hi All: I have two questions:  1. When I apply an EA to a chart to run in real time, is it possible to extract the historical test trading result on the first run please?  For example, I want to have a logic that detect the previous trading winning percent, if the winning rate is lower than 30%, I...
Hi. Do you have any idea on how to get the initial deposit on the client terminal? Thanks.
Hello, I would like to know if someone can help me with ideas about my next problem: I am opening a pending order at 1:30:00, after 30 min at 2:00:00 it will turn to sell/buy. I have the next code to close the position after 10 hours, it will use OrderOpenPrice from sell/buy position not from my...
Dear community, A strategy is more than running the best of the EAs on one symbol. I was wondering where is the limit with MetaTrader in terms of number of charts where one can attach an EA? Let's say you have developed an expert doing a few dozens of operations (which is more or less what is needed...
Hi, as everybody I see the rectangle at the bottom line of the terminal. Now I find it sometimes on the right corner sometimes on the left corner. One broker shows a green triangle above a black one, the other broker a green one above a red one. If it is on the right side I can (all the time?) click...
Hello, Ive got a little Problem with the mql4 array funktion. I want to open a chart with the ChartOpen() funktion in different timeframes . To make it easy, Iv set up an array with all the different timeframes. Then, Ive inserted it into the ChartOpen() funktion, like int the Article: ,,Mql4 for...
The converted time frame(in this case m4) is stuck on 'waiting for update' for any period you input for. 'Offline chart' is selected as well so this ins't the problem....
anyone any ideas why a dll call to fnTest(double d, long l) causes stack damaged but e.g. fnTest(long l) or fnTest(double d) or fnTest(double d, int i) are ok?
  MACD greater than 0 bug (12   1 2)
Dear people, I have been struggling with this problem the whole day yesterday. It seems such an easy task, but apparently it is not. I just want to look at 3 MACD values and when they all 3 are above zero, I want to plot blue dots on the 0 line. And when all 3 are below zero I want to plot red dots...
Hi, answering the question of  deysmacro  I saw this link (https://www.mql5.com/en/articles/1540) between his question and the first answer: File Operations via WinAPIEnvironment MQL4 is based on the conception of safe "sandbox": reading and saving...
Hi Everybody. I dont understandin why my script that ran perfectly now have erros. My metaeditor was updated to 5 but not to mql5, continue being mql4. But now I have an error here: string PipeName = "\\\\.\\pipe\\Perpendicular_as_Client";        int PipeMode =...
I continue to find that charts lose data over time. And I use the Charts/Refresh menu option to restore the missing bars, and it works. Q: Does RefreshRates() restore the missing bars like Charts/Refresh, or is there another MQL4 method that does?   Thanks!   
I have been testing this EA for a while now. But it's not Performing as Expected.   My requirement was that the EA should Open trade just Once after fulfilling a trading condition. Like if the 'Buy' condition is met, it'll Open Buy trades just Once. It wont open any more trade if the current trades...
Hi guys, Hope you all are doing great, I want to know whether there is a way to stop a custom indicator from working when the internet connection is offline or not ? thanking in advance; Parham 
HOW TO CLOSE all the remaining openorders of the same symbol when the first trade is closed? Here is the ordersend for the first trade with unique takeprofit and comment. OrderSend(Symbol(),0,b_lot,Ask,3,0,Ask+tp,"L"+1,magic,0,Blue); i thought for a long time but could not find a way. best way i...
Have you guys experiencing it with your broker? Because mine happens a lot recently and until today still happens. Is it to be expected or the broker is trying to lower the winning streaks so that eventually it will become losing trades ? Of course the requested price is correct at that moment of...
Hi, Is there an external program to view hst files ? For ease of workflow, I would prefer not clicking so many buttons in MT4 to view hst files. Is there any other third party programs to view hst files ?
Hello, I´m a newbie to Metatrader and I don´t understand why I get different results for ADX in Metatrader platform for a given time period, as compared to the normal platform from my broker (Oanda). I also tried another platform (Fxpro) and I see exactly the same difference. Please seethe 2...
Is there a function to do so ?
how to tell mt4 to update its log file when we want / or at least faster? I tested something: when you have an EA that prints something in experts tab, the mt4 does not write that to the log file immediately, even I waited for 5 minutes but still not! but when I closed mt4 it wrote those logs to...
Hi, I am quite new in using MT4 and started learning MQL4 and it is relatively easy as I come from programming background. I have an indicator which is developed by a third party company therefore naturally no access to the source code. my aim is to create some level of automation when the 3rd party...
  Account names (2)
Please can someone tell me if it is possible to change the MQL4 account name
hello all,, i'm newbie in forex and i've just istalled mt4 in my PC. i want to know how to install currency strength meter at my mt4.. thanks.
Keeps removing itself upon attaching to live chart in all terminals.
Kumaresan Selvaraj
I am sending signal from mt terminal to android and ios,but i cannot view the notification in MT4 Mobile=> Message.Any solution to save or view the notification.  :)