MQL4 and MetaTrader 4 - page 123

Hi ! I started to create some Experts using EABUILDER and with time I'm making some modifications as I understand a little more of the mql4 language. In some of my Experts, I use the GRID option, always using the distance based on the closing of the candles, also respecting a minimum distance
how to extract the Volume for bull and bear ticks from current Volume indicator in MQL4. I want Volume[0] to be BullVol[0] and Bear Vol[0]
Hi, I need some help please... I would like my EA to close all open orders when the first open order TP is hit - for magic number, symbol... The code below is closing all trades when any SL / TP hit. bool checked ; if (ATR_TP1_CloseTrades) { for ( int i = OrdersTotal() - 1 ; i >= 0 ;
Max bars in History & MAx bars in Chart required to run EA's and minimise power usage on VPS? recommendations welcomed. thanks FORUM
Hi, How to get current month working day in MQL4? int CurrentWorkDay() { int WorkDay = 0; for (int i=Day(); i >= 1; i--) { if( TimeDayOfWeek(TimeToStr(TimeCurrent() - 60 * 60 * 24 * i,TIME_DATE)) >= 1 && TimeDayOfWeek(TimeToStr(TimeCurrent() - 60 * 60 * 24 * i,TIME_DATE)) <= 5 ) { WorkDay++;
Maybe you add profit/loss in pips? Below example.
[Deleted]
Many questions....... 0 answers.
For example, in a RSI indicator, we can use IndicatorSetDouble to set the levels to, e.g, 70 and 30, but how to retrieve the values from the code? There is no IndicatorGetDouble... Thanks
Hello dears. I have a problem when I using MT4. I'm not sure about this problem is solved in MT5 or not?!! however, what's problem! In MT4 platfrom,as a scalper, sometimes we have a trades that we need to keep it for long time. We have are open and close some trades in short time, But our long time
Hi guys, I know I can call the name of the Broker using AccountCompany(). But now I want to call the name of the host computer. Any command please
Need your advise If you look at the set files the stop losses should not be generated at this level. How is it possible 2022.09.01 17:27:31.375 '7603884': order #301195982 sell 0.02 EURCAD at 1.30828 closed due stop-loss at price 1.30815 2022.09.01 15:49:10.094 '7603884': order #301194918 sell 0.02
Hi all, In this code I am count back bars for the MACD true indicator (iCustom) etc etc. I use these bar count to initialize i in parts of the code. This locks up the EA and Metatrader stops responding. How to diagnose this or perhaps someone can explain why ? Thanks See code below with highlighted
hi my code: #property copyright "Copyright 2022, MetaQuotes Ltd." #property link "https://www.mql5.com" #property version "1.00" #include <RSIOnArray.mqh> extern int bar= 300 ; extern int periodd; int MA= 3 ; int RSIperiod= 2 ; int FastEMA= 6 ; int SlowEMA= 12 ; int SignalSMA= 3 ;
Can someone please tell me how to change the trade levels colour on MT4? With a black background, the Blue trade level is very hard to see so I would like to change the default colour to something paler so it stands out
Hi, I've been trading FX for quite a few years but never experimented with automatic trading before. I want to give it a try now with MT4 / EA advisors. How do I go about using EA to backtest a strategy of buying on bullish engulfing patterns and shorting on bearish ones, with TP and SL of 1:1? I
i busy creating an indicator looking back at history bid price in history and the ask price of now. now the history part i get and works. as shown in the code. range = DoubleToStr(((( iClose ( "EURGBP" , 0 ,i))- iOpen ( "EURGBP" , 0 ,i))* 10000 ) +((( iClose ( "GBPUSD" , 0 ,i))- iOpen ( "GBPUSD" , 0
hi every one sorry my english is not as well as you im a Beginner Coding i have written an indicator that save the data in text file every 10 seconds and put the indicator on 1000 offline charts in my pc . you know 1000 renko charts kill the CPU in long time i want to save the data from renko
Hello, i've got a technical question about mt4 on pc. I have a lot of opened positions, but the thing is, when i want to check them out, nothing happens when i click directly on them. I'm obligated to either check them on the terminal, which is really time consuming, or check the bar list with all
//+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ #property indicator_separate_window #property indicator_buffers 1 #property
I don't use MT4 app (I use the PC ver. only), but I want to know which is this history [entry time] or [clossing time] on MT4 app's history screen. (see attachment picture) And why MT4 app gives us the only a hand of hands ? Besides, We can see each hands on PC's MT4 terminal. Thanks
Hello Folks, Is there a way i can filter my optimization results by maximum consecutive wins? from highest to lowest Second question I am looking for a way to filter automatically my optimization results such by acceptance criteria: -Maximum equity drawdown % -Profit factor above 2 -Profit trade %
Hi, I set up and configure of option>Email in MT$, but email is not work and It is not send email to my email. Have MQL5 proffessionals to help pls
I am very new to this language and grasp most of it but i am having trouble getting comments to output to my chart. Here is my Code void OnTick() { Comment("hello"); } Ive checked the background color and tried different terminals and they all produce no outcome using Comment
Hi everyone, I would like to know why it is now impossible to send a message just by hitting ctrl + Enter anymore in the Freelance chat ? It's a pretty great tool
Hi, this code works perfectly for buy, but for sell how to do this with char "<", ">" // Buy Order for ( int b= OrdersTotal ()- 1 ; b>= 0 ; b--) { if ( OrderSelect (b, SELECT_BY_POS, MODE_TRADES)) { if (OrderMagicNumber() == MagicNumber) { // This EA ownes it // Check the
  Second interval forex data  (11   1 2)
Hi forum, Is there any way of downloading second by second currency data for multiple currency pairs? I can see minute intervals as the smallest timeframe but I’m interested in looking at OHLCV figures on a second by second basis. If there is no way of downloading, is there any way of capturing and
Morning all So I have a successful file write function, which all works as it's supposed to. However, is there a way in which you can separate out the information into individual columns on the spreadsheet. I realise it's a .csv file, but is it as simple as as changing the file extension type? Pip
Does anyone have a solution to monitor different accounts of different brokers at the same time? I trade on different accounts with different brokers and I would like to see the results on 1 screen in 1 application. Example was the Metadashbaord or something. Does anyone know a solution? Edbeleg
Hi, On a single MT4 platform I would like to develop an EA or Indicator that takes some information from Account1 (Say Broker1) and such information is read on an EA that is working on Account2 (also Broker1 as there is one broker per platform instance) So 2 or more accounts would be opened on the
Hi to anyone reading. I have recently bought a custom indicator for buy and sell signals that works amazing on all timeframes. It uses a double confimation system for buy and sell signals in the form of up/down arrows and an oversold/overbought spike in the indicator below the price chart. In the