MQL4 and MetaTrader 4 - page 96

Good afternnon everybody. I need your kind help . Sometimes I get this error running the EA : sometimes but not always , that's strange. It runs normally and open/close the trading but sometimes it seems it is getting confused and close only a part of the order at target and the others keep on
  vps  (4)
Hi, I have this error when setting up my vps. Seek your assistance pls. thx
how to make an indicator like the following below, into an array like Close[i]. double iBullsPower ( _Symbol , _Period , 1 , PRICE_CLOSE ,i);
Morning all I have a FileWrite() function which works perfectly, however, I am wanting to add attentional information in new columns appended to the end of an existing spreadsheet , created by the FileWrite() function. Is there a way in which to achieve this? All the best, Pip Pip! if ( /*EA Opens
I am trying to implement a strategy on my Demo Bybit account for a crypto pair. I am not able to back test it as it gets stuck after 1st order. I have attached a screenshot also of the settings that I use while running the Strategy tester. Log File
[Deleted]
Is the part similar trading platforms ? You can log in to our MT4 trading software and user center using the login and investment password. In order to ensure the security of your account, customers need to log in to the user center to operate. Kind ergards
Hello, Market Order #1 was 1 2017.08.31 19:25 sell 1 0.10 1.19005 at 2022.09.11 13:01:20.080 Trys to open another sale order with price 1.19079000. Although these orders do not have the same parameter it rejects it. Strange. Please advise 2022.09.11 13:01:20.080 2017.09.01 02:55:00 Aroon-Test
Hi, Some trading platforms such as Ninjatrader and Tradestation have a feature called "trading hours". What it does is it removes undesired periods of a chart and only shows the desired trading hours. In other words, the platform ignores market data outside of the desired trading session, creating
Is there a utility or indicator that will allow me to easily copy the Open/Close/High/Low of a candle
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 %