MQL4 and MetaTrader 4 - page 4

[Deleted]
I am trying to add Loss control to my EA. 1. it will stop taking new trade ones it hit X amount in loss Today and will restart taking new trade tomorrow. void TodayLossControling() { // ================================ // 1. Calculate start of current day // ================================
[Deleted]
Hello, I am desperate need of help with getting my Forex Hacked EA to work on my live account. Below is the description of the issue I'm having. My broker is Forex Place (4xp). I do not have access to the code for this EA since it was purchased with rights. I will provide any information you...
  Cross-Currency Strength  (23   1 2 3)
So we know that some currencies correlate (or are negatively correlative) to some degree and can be used to confirm or predict movements. This indicator basically puts it all on one scale (from -1 to 1, I put the max to 1.2 so you can see the graphs without the labels getting in the way). I've coded
The RVI indicator ( Relative Vigor Index ) is a pretty good indicator which can be used in various ways to identify reversals. I developed a way to use it for making absolute fool-proof extremely safe and reliable entries, at the beginning of very significant trend direction changes. It can work as...
Is there a possibility to start a backtest from the command line? Something like "terminal.exe -tester EAxyz EURUSD 5min 2000.01.01 2010.01.01" ? Any other idea, how I could start a backtest from outside? I want to use external programs that start different backtests automaticaly. But I have not...
hi my mt4 is set to send the data via dde to excel. excel workbooks i recalculated every 5 seconds. now for soem strange reason dde stops aftre each horu and mt4 stops to update the prices - I am on a demo account is this a known bug??? after i restart mt4 and excel all starts to work fine and the
Comments that do not relate to the " Stop Trading Today when Loss or Consecutive Loss ", have been moved into this topic
I need help please. I have a script that closes the opened positions and opens a new position in the opposite direction. But this script applies this function only to opened positions, from the current active chart. I would now like to rewrite the script so that all open trades are rotated no matter
[Deleted]
Hi all, A year ago or so I started with coding mql4 expert advisors. I have no programming background so I had to learn everything from the start. Currently I am at the stage where I can code most common strategies. In order to improve my coding skills and gain experience, I am offering to code...
Hi together, I need MetaTrader4 and when i downdload and install mt4setup.exe MetaTrader5 opens! What can I do? best regards andy
Hello MQL5 Community, I'd appreciate it if you could help me with the following errors in my code. The first is at the beginning of my "int OnInit()" code, and the second is at the end: "return(point);" I had previously made some minor changes to the code in order to resolve other errors. I'm having
[Deleted]
Hello, I am trying to find a stronger trend. I am using ⭐ MA + ADX(DI) + MACD + Momentum + Bulls/Bears Power + ATR + Ichimoku Cloud This is the ultimate system , combining: ✔ Trend Structure (MA) ✔ Trend Direction (DI) ✔ Trend Strength (ADX) ✔ Momentum (Momentum) ✔ Momentum (MACD) ✔ Buying/Selling
  ORB FIB  (1)
I have tried to find an indicator that will measure the Fib during the ORB trading session, and not before. I would like it to measure mainly after the break out, and upon retracement, the Fib levels are established. Yes, I can use the Fib that comes with MT4, but I have to keep adjusting it, which
/// GET ENTRY PRICE FUNCTION double GetCorrectEntryPrice( string sym, int direction) { RefreshRates(); double ask = symAsk(sym); double bid = symBid(sym); double pip = PipSize(sym); // ----------------------------------------------------- // HIGHER TIMEFRAME for structure +
[Deleted]
  RSI+BB+MA Scalping  (13   1 2)
Hello, In a trending market, I try to take trades during small counter-trend moves. For example, in an uptrend, the market moves down, then goes back up strongly, then pulls back slightly, and then goes up again. During these smaller pullbacks (counter-trend moves), I take buy trades in the
[Deleted]
Hi all, I have a news scalper EA, but I wish to change some option on it. But I do not compatible with programming and meta4 language. First of all I would like to change the pending orders, to take it 5 pips from the open price. Now it place it from 10 pips from the open price. Secondly I wisht to...
Hi, I set up email in option of metatrader4 , but it is not work. Know everyone what can do
Hi! Somehow I don't have the tab on the bottom of my screen with the trade history. The tool icon is on the top and it doesn't have any history. Does anyone know how can I add it, please? Thanks in advance.
Any ideas how to fix or diagnose this error? it only appears after the EA has been running for hours or days. "Access violation read to 0x0701B3D8 in 'C:\Users\jerky\AppData\Roaming\MetaQuotes\Terminal\D1BB2038AA6820EBB33F0781C376BCE1\MQL4\Experts\MechaPip-New-9000.ex4'"
Hi all, I’m working on a custom MQL4 swing-based indicator that should generate only one clean BUY signal when a bullish trend is confirmed , and only one SELL signal when a bearish trend is confirmed — then stay silent until the trend actually reverses
Hello, I faced a strange error. I'm using ontime function based EAs and recently some EAs stopped with message "cannot set timer (xxx)". As you know, ontimer function requires 'EventSetTimer(xxx) to run the function repeatively. Have you guys ever met this kinds of error? Thank you for your feedback...
  New to Forex: Where do I start?  (265   1 2 3 4 5 ... 26 27)
Hello guys, my name is Mike hope to be a regular here , does anyone have any suggestions on where to start on forex? I know babypips.com but does anyone know any good book that teach the basics? And, a few questions to the reqular traders here if it's okay :P : 1) How profitable can forex be? 2)...
The MetaTrader 4 platform update will be released on Thursday , December 10, 2020. This version provides error fixes and platform stability improvements. In particular, the update fixes an error in the optimization of data connections between client terminals and brokers' data centers. The new build
Hi I am looking for a time/day filter where I can choose what hours I want to trade and what days. Not just from 8:00 - 20:00 but ex. Monday=true Trading Hours= 1,2,3,8,9,10,11,12,15,16,19,20 // This is the same as (01:00-03:00)(8:00-16:00)and agan (19:00-20:00) Tuesday=false I want to be able to
  Time Filter Code  (7)
Where can I get the time filter code? And where, within an EA's code, should I place it? Thanks
  Z-order meaning  (4)
A question for z-order. I have a rectangle and within the rectangle an edit field. The rectangle should be moveable. It is created with z-order 0. The edit field with z-order 1. When i click into the edit, the rectangle moves sometimes, what should not be the case. This seems to be the case, because...
Is there any posibility to decode JSON(prefered) or XML in MT4? JSON/XML are simple, several entries of key-value.  It can be 3rd part library, doesn't metter, it just needs to work correctly.
hi, i have written a simple EA which works nicely with Currency pairs namely EURUSD and GBPUSD with reasonable profits...im however not sure how to code the Symbol for Gold trading as the XAUUSD doesnt seem to work at all. appreciate if someone could advise the correct symbol to be used in the EA...
  Ocean theory based indicators  (578   1 2 3 4 5 ... 57 58)
In this thread Jim Sloman's "Ocean theory" based indicators will be posted. _________________________________________ PS: this thread (as it stands right now) will have about 60 indicators posted here (metatrader 4 + metatrader 5 versions) Metatrader 4 versions are completed, but because I would...