MQL4 and MetaTrader 4 - page 1421

I wrote the expert in MQL using the OrderSend() function. The expert works ok in back tests. But the program does not work properly on real time. The expert makes only a few or one transaction in spite, that there was a lot of signals to make more transactions than have been done. My question is:...
[Deleted]
Hi everyone, I've trying to code a simple indicator which Alerts when price reaches Yesterday's High and Low. The Alert works fine but the only problem is that I want it to stop alerting once it has alerted already. My indicator keep alerting until I manually remove it. In the code I've created a
[Deleted]
I do not understand why the script does not generate an order. Any suggestions appreciated. extern double Lots =0.1; extern double Loss =500; extern double TakeProfit =200; extern double TrailingStop=500;...
[Deleted]
I am looking for an EXPERIENCED professional programmer toredo (or finish) my EA. The current EA is working fine ……. until the connectionto the server is lost or timed out, etc. etc. (One time I lost 50% of mycapital overnight (luckily in demo) due to a bug creating an excessive numberof 'open...
[Deleted]
  Question from beginner  (11   1 2)
Hello Everyone, I am a beginner with MQL4 but I do have some programming experience. I am working on my first EA and it compiles fine without any errors or warnings. Nevertheless, I am stuck. I tried to structure my program similar to ones I see online and etc... In my start() function I check the...
[Deleted]
Want to know if this is possible (yes, I did a search already)? int MyFun(a, b, c) { int x = a + b; int y = b + c; return(x, y); } int e, f = MyFun(g, h, i); Thanks for any help!
[Deleted]
I want to know if this is possible? void fun() { static int a; a++; } void readOrChange() { // read [or change] static int 'a' // something like: int b = a.fun(); a.fun() = 3; } Thanks for any help!
[Deleted]
  CAGR formula  (2)
Ok guys, not strictly an MQL question as I'd like to implement this in Excel first. Currently we report our annual growth by: - Quoting the % and monetary profit each month - Calculating the compound growth % at the end of the year based upon the totalized equity growth However, I'd like to get...
[Deleted]
Does anyone out there have an EA that trades on WPR? I use that as a trigger along with ADX when trading. My tiny account is up 30% in 2weeks using this method but I don't have the coding skills to do this myself. Thanks, Jagster
[Deleted]
Hello, Thank you for reading this. I am not asking for someone to program for me (although examples of code would be of great value); rather, I would simply like help conceptualizing this problem in a way that the computer can understand. I wish to write a set of functions that identify the high...
  QUESTION TO THE MODERATORS  (78   1 2 3 4 5 ... 7 8)
I wonder why this poemposter isn't getting banned
Indicator Trend Detector
Guys.. My EA is working in the both accounts, but, I didn't see any difference yet. I know that is a little early to know the real results with my EA. But, for those that have scalpers systems like me, what's the difference between the real account and demo account (when we are running EA -...
Hi, Can someone help me with an EA that will open a buy/sell order if the price hits the previous candles high/low? I use the h1 chart and would ideally like to be able to set stop loss,take profit and possibly trailing stop with the EA. Even morebeneficial would be an option to set how many pips...
[Deleted]
I have a very low-lag indicator and I use D1, H4, H1, M30, M15 and M5 timfeames to calculate the indicator value. I use iCustom function a lot i.e. the EA calculates the indicator value is a loop as below for every tick!! The function below "get_trend_values" gets called for every tick. Q1. Which...
[Deleted]
u will place your order 10pm daily nigerian time u have time to go to work or do other business good when internet service is bad it remove emotional trade get 100% of your deposit in 3 month(market trend applied) to know more about it danbobo1306@yahoo.com or call 08060519225
[Deleted]
Hi, I've studied the FX markets for sometime and have come to the point where I'm ready to invest some money and start trading albeit in a test the waters approach... So in the last 2 weeks I've been searching for the right broker. I'm concerned with the number of stories I've read where people...
Hi, How we measure accurately, things like: - time spent on start() method - time in between ticks - time spent waiting for a tick (idle time) The datetime gives down to the seconds only. The measurement unit must be lower than seconds like milliseconds. Is GetTickCount() the only way? Does...
Operating exclusively on time frame of 5 minutes I have demand immediately to understand the trend to great time. I have modified this indicator: Past Regression Deviated,to see only the trend line. I wanted to get other three trends line calculated on three different time frame Practically: on...
[Deleted]
Hello, If anyone is familiar with this indicator ( https://www.mql5.com/en/code/7888 ).. I would like to know how to keep track of previous chandlier stop prices... The example picture provided on the code base shows "Blue for downward support, Red for upward resistance then The current, non-broken...
I created this indicator on my demo account and the memory usage is just a few MB, but when i put it in my real account, it jumps to additional 500mb ram usage can anyone help me with this?
Hi, When I was running my EA on a demo account on MT4, I revised the same EA on the MetaEditor. When I clicked 'compile' on the MetaEditor, all orders were closed on the MT4. Is this going to happen (all orders closed) also on real accounts (when the EA is overwritten with a new version)? Regards...
[Deleted]
Friends, it is possible not new, but i don't know how to optimize it. Target is having signals if in one in selected schedule of instruments (around 200) will be broken Moving Average (N) in time frame (NN). Will be grateful for any advises or piece of information about.
Hi, How are EAs coded such that they will not interfere with orders that are owned by other EAs? (assuming that is our intention - that is, process only the orders that each EA has initiated) Is it using the comment? or the magic number? other? In addition, what if an EA coincidentally is opened...
Can someone please help me to to close the order. I am using my own simple ea to place order in hedging pair. I am still very fresh in writing ea, i use 1 window with ea to place buy order for EURUSD, at the same time, another window to place buy order for USDCHF with same ea. I heard the...
Do you believe in it? It's my system, bu, I was consulting some professionals, an they said that it's only in historic. Using 10% of the capital (10k)
Hi, Example, I want check if Buy order exist and Close condition is true, it will send order to close the Buy, and vice versa. Problem i have: Without Checking order exist, and if My close condition is true. and there was no order, it send a new trade base on close condition.. Please help.....
[Deleted]
Good morning, I'm quite new in MQL4 programming so I only try a very simple program but it is not working perfectly. Let's explain what I would like : At 9:00 print a message At 9:05 print another message Result : If I launch the expert advisor at 8:55 : at 9:00 the expected message is written at 9...
Hi MT5 Team, Two important Enhancement required in MT5 Platform. 1. e-Mail Option - SSL is not Functioning. 2. No Security available for MQL4 Coding any one can Decompile It. Please Look into this. Thanks.
[Deleted]
Hi, I'm just starting out in Forex trading and MQL4 (started a few days ago!). Currently, I'm writing a first EA for detecting and trading on breakouts. The algorithm detects entry positions relatively well, however to find a good exit point is difficult. Which leads to my question: is it always...