MQL4 and MetaTrader 4 - page 98

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
Hello friends, I am trying to determine wether a trend is in the same direction on the (5) minute chart and hourly. When I do a function call often one value has not been updated for example the hourly says it on short and the minute on long but the actual value is different. (values should be long
I want to use metatrader 4 but it installs 5 so how can i instal 4
Hi everyone I wan to change my stoploss everytime price moves more than numbers of points, double stepInPoint = 20 * Point (); double initialPrice = OrderOpenPrice(); void UpdateAllOpenOrders() { for ( int i = OrdersTotal () - 1 ; i >= 0 ; i--) { if ( OrderSelect (i, SELECT_BY_POS
Hi, code below works but only for buy, for sell not activated. What is problem? void AdjustTrail( double WhenToTrail, double TrailAmount) { int ticket = 0 ; // Loop through orders. // Buy Order for ( int b= OrdersTotal ()- 1 ; b>= 0 ; b--) { if ( OrderSelect (b, SELECT_BY_POS
Hi I Have Created A dialog Box Included Expert advisor (Using CControlsDialog) in MQL4 . Currently I need to change Background color of the dialog box. does any one know how to code it? please help me
  MACD Difference  (3)
Hi would like to know why MACD Histogram in MT4 and tradingview is different? All with same setting. What actually went wrong or where I can adjust to make it similar
Hello guys! I am having a problem when I am trying to backtest one expert advisor that I have created. The problem is that the modeling quality continiously shows at around 25% in the results of the strategy tester inside the MT4 platform. I have tried importing new M1 data and using the 'Period
How do I select a server to login on the web platform
Hi, how to get info when trade close or open? Is there any Event Handling? Regards
Hi all. Given price (as in OrderProfit() ), how can i convert it into pips/points? Thanks in advance.