Hi Everyone. I am coding an indicator to work on offline renko charts. It shows arrows when certain criteria met. When I run it at first no problem. But after created new renko bar, arrows are doubled and when I check data field on chart I see it is filled the buffers with previous bars data. What
Hey everyone , i'm facing the issue with one of my MT4 account which is connected with HFMarkets broker , in this account i'm using my same EA which i'm using for another MT4 account(Oanda broker). on my HFMarkets Account i'm facing the issue with order got cancel and giving us error of mql4 error
Hi, there is a problem with the market tab in MT4. When I click on the market tab, it takes some seconds and then the MT4 terminal crashes. Is there any solution? Using 2 MT4 terminals with different accounts, a VPS with 4 GB RAM and latest MT4 built. Broker Tickmill. Thanks! Tobias
Has anyone ever experienced something like this? It was during a news event, but as you can see price went I my direction and the green indicator shows the trade should have been closed in a positive balance, not a negative one. My entries were 1801 and 1800 with a sl of 1801.4 and 1800.2. To was
Dear All friends Now I'm creating an EA to run concurrently on multiple symbols. In certain situations, I need to delete just 1 symbol from the many symbols that are currently open. Until now I still fail in using the OrderSelect and Orderdelete commands to delete that symbol. I'm very happy if
Hi, in my MQL4-Expert Advisor the following code always throws an error due to missing {. But I don't understand why. void OnChartEvent ( const int id, const long & lparam, const double & dparam, const string & sparam) { if (id== CHARTEVENT_KEYDOWN ) Print (lparam); } Thanks
Hi! How to change the color of the label depending on the spread value ? //+------------------------------------------------------------------+ //| SpreadIndikator.mq4 | //| Copyright ? 2010 MeinMetatrader.de | //|
This is my script. #property strict #property indicator_chart_window // Make sure the EMA period is a positive integer input int EMA_Period = 60 ; // Make sure the risk and risk-reward ratio are positive integers input int Risk = 2 ; input int RiskRewardRatio = 2 ; // Make sure the lot size is a
I am creating a signal indicator that follows the trend and represents the entry points with arrows. I use IndicatorBuffers to generate arrows. The structure of the indicator is: If (Order Condition){Draw an arrow} Because the indicator follows the trend there are a lot of entry points that match
I don't understand t hese errors, I turned on hi g hli g htin g brackets and I don't understand w hat is causin g t he two errors, so close yet so far away. *******
Hi, I tried to get the open price of an order so that I can base on that value to place a new order. For example 100 pip away from that price. I use the OrderOpenPrice() function but the value returns 0. Please help me with this issue. Here is my code: if ( OrdersTotal () < 2 ) { int
I am trying to find the first open price from several open orders and symbols. Below is my initial attempt. Need help getting this to work. /***********************************//Finding the First OrderPrice for a bunch of orders and symbols***********************************/ int...
I tried running a backtest with Exness MT4 terminal it isn't working. Why is that so? the image is the error from journal... Also, I observed that ex4 EAs are not working in MQL metatrader 4 version... why is it so /
Hi all, My indicator runs on every chart that I open, but the problem is that the memory usage (RAM) increase madly. So I tried to free and delete all general arrays and objects of not in focus charts, using anything: ArrayFree(array_name) ArrayResize(array_name,0) ObjectsDeleteAll(EMPTY,EMPTY) but...
What's the equivalent of AccountInfoInteger(ACCOUNT_TRADE_ALLOWED) for MQL4? also what about the equivalent of? TerminalInfoInteger(TERMINAL_TRADE_ALLOWED)
Hi everyone, I work with a computer every day that I am not allowed to install software. Can I use MetaTrader 4 or 5 without installation (portable)
Hi all experts, I am new to MQL programming and try on some EA programming but facing problem whenever call to OrderModify(). There is no compilation error but on running the EA in tester will give Error 130 on OrderModify() call. Attached below my create order function code for review. Any advice
Hi guys! I was wondering, these numbers from MT4. What do they mean? I observe that sometimes MT4 is not moving smoothly. Like when I want to add an object or something, or moving mouse pointer over the chart, it is freezing for little moment. And I have observe that if I brake internet connection
Hi everyone, Noob to coding here but I finally completed my own EA without errors or warnings...(doesn't mean it will work, I know). Any thoughts on making my code better? When I tried to run it in the Strategy Tester it received no results and instead brought up the following errors/warnings
Hey Guys, can anyone please help me with the param //+------------------------------------------------------------------+ //| CCI DIVERGENCE.mq4| //| Copyright 2022, ISMAIL LEMIN| //|
Hello coders, I know that there are other threads where there is a discussion about this topic, I found the code of William Roeder ( https://www.mql5.com/en/forum/133792/page3 ) and I tried to implement in my code, but I'm not able to find the unique formula which works for forex (3 or 5 digits)
Hello everyone! I need help, I have made an Expert Advisor, and in my opinion it should not have problems but when I go through Backtesting, it gives me some errors that I am not aware of and that I cannot find in Metacuotes to solve it either. Could someone help me
I've having trouble setting up bollinger bands for rsi values What I've attempted so far for ( int a= 0 ; a< 40 ; a++) { rsi[a] = iRSI (Symbol(),Period(), 14 , PRICE_CLOSE ,a); bbrsiup[a] = iBandsOnArray(rsi, 0 , 34 , 2.0 , 0 ,MODE_UPPER,a); bbrsidn[a] =
1 bool BreakEven(int MN){ 2 int Ticket; 3 4 5 for(int i = OrdersTotal() - 1; i >= 0; i--) { 6 if(!OrderSelect(i, SELECT_BY_POS, MODE_TRADES))continue; 7 8 if(OrderSymbol() == Symbol() && OrderMagicNumber() == MN){ 9 Ticket = OrderModify(OrderTicket(), OrderOpenPrice(), OrderOpenPrice()
Can we detect that the scale of the price axis has changed when the price rises/falls outside the original interval on the price axis? I thought this should be handled by a function OnChartEvent with id CHARTEVENT_CHART_CHANGE, but unfortunately not
Hello, Does someone knows the code/script for compounding? I'd like to test when it's the best time to compound (per how many trades or days). Manually testing it is going to cost a lot of time I think (when you consider that I have some expertswhich make around a thousand trades per year).. And...
Hi, I'd like to know how to do this. I tried to use OrderSend and on the lots input I wrote AccountBalance() / 200. But after 3 or 4 trades on backtesting appeared a bug, it bought the maximum lots it could buy. So what should I do for compounding?
[Deleted]
If I want to risk 1% of my account for a trade, is there any code or function to calculate lot size
[Deleted]
So I've read many discussions that all conclude that compounding your wins is bad, due to the risk/reward equity ratio etc. etc. But my question is, now what?? Obviously if someone wins more they'll want to put that back in their winning system, but how do they do that without compounding? I am...
this is the code whit 2 errors #include <stdlib.mqh> int OnInit() { // Agregar aquí sus operaciones de inicialización return(INIT_SUCCEEDED); } void OnDeinit(const int reason) { // Agregar aquí sus operaciones de finalización } int OnTick() { // Obtener el precio y el volumen de la acción double

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.