MQL4 and MetaTrader 4 - page 55

Close all positions at profit target in pips MQ4
  My EA not taking trades  (17   1 2)
Hi, I have tried to create an EA but it doesn't take trades. When I put it in the strategy tester I get the following error: 2023.06.16 10:47:50.092 EURUSD,M1: 466454 tick events (13844 bars, 466554 bar states) processed in 0:00:01.266 (total time 0:00:01.313) 2023.06.16 10:47:50.092 2023.06.16
  Too high value  (2)
Is it possible to use for calculating or checking value bigger as EMPTY_VALUE ? For example: if (accountNumber==AccountNumber()) Alert ( "Good Account" ); where accountNumber bigger as EMPTY_VALUE
hi this code is not closing orders, could you help me to figure out why? void OnTick () { string signal= "" ; int PeriodMA = iMA ( _Symbol , PERIOD_H1 , 9 , 0 , MODE_SMA , PRICE_CLOSE , 0 ); int SlowMA = iMA ( _Symbol , PERIOD_H1 , 12 , 0 , MODE_EMA , PRICE_CLOSE , 0 ); int FastMA = iMA ( _Symbol
I can no longer download anything from the store, and I no longer see anything in the terminal
I want to select the latest placed order (open or pending) from trade mode but I don't want to use loop or magic number to minimize running time. Does this line of code help? Assume no order was closed or modified. OrderSelect ( ( OrdersTotal () - 1 ), SELECT_BY_POS, MODE_TRADES);
I have a very beefy machine for back testing purposes, and I can only open 32 instances of MetaTrade4 on it even though I have resources for it to handle many more. How can I open more than 32 Mt4 Terminals at once?
Hey guys, I need help on coding an order should only be opened between the start of the hour and 30 minutes into the hour. If it closes within 30 minutes due to take profit or stop loss it should not open another order until the beginning of the next hour and end of 30 minutes. And so on. Anyone out
Anyone knows any webservice that offers forex news in XML?
  I will write the indicator for free  (1285   1 2 3 4 5 ... 128 129)
I will write a free indicator in MQL4 on terms of free distribution - placement as a free product on the Market or code in CodeBase. I can also write it in MQL5, but my preference is for MQL4 - it depends on the logic and, of course, it is better to write something meaningful. Theoretically, an
Hi I am a novice in MQL4 How can i close the last order opened by order type . when there are multiple orders opened. I mean i want close buy position just close last buy opened position and for sell too. or i want any expert like this if you have. Sorry for my weak language. Please, Any help will
The SymbolInfoSessionTrade() function seems to, somehow, help to find these values by comparing them. But the MQL4 documentation provides no examples in order to understand better how to execute it. The other MARKET_INFO ou Symbol_Properties also give no options to get the session beginning and end
[Deleted]
Hey fellas, is there any option to tell MT4 only to connect to a specific server? I have read some posts on various forums about this issue. My Broker offers me 4 different servers, but i would like to use only one specific. Aftere a reconnect MT4 always changes the server. best regards
  Change cid  (3)
Hello guys, is there a system to Change the cid? I have buy a different indicator and bot active by cid. but i would like use different vps. Is there a way to Change the cid? Thanks
hi anyone know why this expert not work and not give error ? int isPositionOpen = 0 ; // Variabile per tenere traccia dello stato della posizione int entryArrow, exitArrow; // ID degli oggetti grafici void OnTick () { if (DayOfWeek() == MONDAY && Hour() == 23 && Minute() == 58 ) { //
i have EA newsfiler and this EA news filter stop trade before news .. i wana to modify this EA that can be open trade before news if some one have idea plz hlep #property copyright "Copyright © 2016 Tor" #property link " http://einvestor.ru/ " #property version "1.0" #property description
Dear Friends, I am reaching out for assistance with an issue I've been experiencing while using the WebRequest function in an MQL4 script/Expert Advisor. I keep receiving an "Invalid URL" error, with the error code 5200, despite my checks indicating that all settings are correct. Here's a brief
I use the web trader https://trade.mql5.com/trade and use my MT4 account with Xbtfx. When placing a new order, if I omit the stop loss and leave it as 0, the majority of the time it automatically sets a stop loss that is just a pip or two from the entry price, and causes immediate loss. I have lost
Hi My investor's PC appears to be creating trades OK, SL/TP drawn, but not the actually order line itself.  See the attached pic. I've worked with mt4 and mql4 for about 6 years now and not ever seen this and wouldn't know where to look. Google not returning anything useful either.  Has anyone else...
Hi there guys, fast issue, if i try "MarketInfo(Symbol(), MODE_LOTSTEP);" it returns the lotstep correctly, BUT, if i send ANY other symbol (which is not the one in the chart with the EA or strategy tester ) it returns 0, por example: In US500 chart both "MarketInfo(Symbol(), MODE_LOTSTEP);" AND
Hi! With help from some clever people, I've written a simple, but efficient tutorial for any newbie-ish programmer who wants to include C# projects in their MT4 EA. https://github.com/DennisGundersen/MT4_To_CSharp_Bridge Enjoy! Re Dennis
Hello all, anyone can help me with the idea of writing each pair closing price for each candle in one column only per pair. like column number one, first sell have the name of the pair and the below 30 cells have the closing price for 30 candles, i need it to overwrite the csv for a specific period
Hello, I searched but didn't find this specific question on the forums. I understand that it is possible to trade cryptocurrency pairs on MT4, but the account I have linked to it is only listing forex pairs when I attempt to open a trade. My broker claims I can trade crypto pairs with MT4 and with
I would like to display only the specified bars by RSI in order to lighten the indicator, but it is not displayed well. How to display RSI for only specified of bars? //+------------------------------------------------------------------+ //|
hello I'm looking for a way to retrieve the price for s specific time or timeframe. For example, the price, M1, between 4pm and 4:20pm on january 4th ?   Anyway to do that ?   Thanks Nicolas 
Hello, I was moving the entire Windows 10 system from 1TB SSD to a larger 2TB SSD (using Windows disk-image to transfer the entire thing). After doing so, the MT4 was like "reset to a new starting date" and I have lost access to all the messages originally existing in the Mailbox. The messages are
Hi guys I want to convert pinescript v4 indicator to mql4 .. But I am not very good at Mql4.can you help.. #property indicator_chart_window #property indicator_buffers 7 #property indicator_plots 7 #include <MovingAverages.mqh> double spike[]; double ma1[]; double ma2[]; double hullma[]; double
Hello, Has anyone tried backtesting from the command line ? In order to save resources I would like to know if it is possible with a command type : mt4 --backtest --datafile "EURUSDM5.fxt" --expert myEa.ex4 --config "presetEa.set" Thanks for your response Best regards
Hello, Im having some trouble building trend lines around a RSI indicator - what seems to be the problem is the "time" coordinate for setting  lines. The result is :    This is the first time i build such indicator ! Hope you can help ! The code is below :    int limit;   int...