MQL4 and MetaTrader 4 - page 780

To post a new topic, please log in or register
I have an ATR indi that sends an alert once the line crosses certainl level The problem is, the alert keeps repeating continously! Is there any way to play the alert ONLY ONCE? Thanks in advance!!...
Hello pros, i am trying to code an EA based on ZigZag indicator, but i need help on how to write the buy and sell instruction. I like it to place a buy order immediately the ZigZag line moves in upward trend, and open a sell order as soon as the ZigZag line moves in downward direction. Any...
Hello guys, I am attaching a very good EA which I trade successfully for some time. But there is probably some feature missing in the source code, because when I set it on VPS a few weeks ago, it did not trade at all. It only works if it is the only EA but not work at all, if I set up other EAs at...
  Huge logs (1)
Hi! Lately I've been having this problem. Whenever I run a test, a huge log is generated (a +1GB file, for just a 6 month test on tester); if I am running a short test (say, 6 months), the test runs and nothing wrong happens. However, if the test is longer, this file grows too large and it gets to a...
I am trying to close all pending orders but it is closing only half of it here is the code i am using if(OrdersTotal()>0){ for (int i=1; i<=OrdersTotal(); i++) //Cycle for all orders.. { if(OrderSelect(i-1,SELECT_BY_POS)==true)//If there is...
In MQL4 how do I register for 1 minute candle updates? When I create a new expert adviser script, I see the following methods: init() deinit() start() I notice the init() and start() functions get called only once and then never again; however, the documentation claims the start() function is...
Hi, Hi ,How to use ObjectMove function to update existing horizontal line created using ObjectCreate  with new closing price.I  try using ObjectMove("Reversal_line",2,0,Reversal_line_val);to update an existing line without success , should the parameter be 1 or 2 as Horizontal line has three...
I have an simple EA that keep on placing trades until margin out, and that is no problem with that fro competition purpose. The thing is how can i add a line of "maximum Trades of the day" ?? This line u see below "extern double MaxOpenOrders = 3;" is just simply mean everytime it places 3 orders...
I suggest to you my design sewn ex4 (advisors) with dll, after decompiling ex4 file is not possible to use in a different account. Download the test, http://anikaforex.com/anika-test.zip this test advisor only works on the account login: 183755915 password: jcul5vw server: E-global-Demo, _www...
Hobbit
Do the charts in a profile remain active when you switch to a differetn profile? I have a profile which contains a set of 15m charts with indicators that send emails and an EA. I want a duplicate set of charts for other TFs. If I create and view a 30m profile, will the indicators on the 15m charts...
I mean, is it possible to create COM object from my EA and then call it?
Hi all, Trying to figure out what the Zigzag in MT4 does (the version that comes with MT4 download). My understanding is that zigzag will draw a line in the reverse direction if the pre-set percentage/pip retracement has occurred. What I try to do is to have the zigzag draw a line only when at...
Any good expert advisors available for free? Just need something to compare my prototype with.
I have just gone through extensive testing of 6 pairs to tune a new EA. When I use the resultant Optimization parameters my Strategy Tester results don't come close to that of the optimization runs. In fact they seem to be opposite. BTW I never liked that Optimization Report throws away results....
Hello all, thank you in advance I am having a whole lot of trouble adding a sleep command or delay in my EA between time the last position was closed until the next one is opened. I am very inexperienced at MQL4 but have taken advantage of the many resources here and all over the net about coding...
I am trying to see how to write a script (or use 1 already out there) for the days I am away. What I am looking for is a script that will put an OrderSend() at a specific time. I have already written the script to do the specific trade...just looking to put the order in the night before and not...
Help please I am new to all this and usually rely on my grand-children for help! I am trying to download an external .ex4 file into MT from the hard drive, but my laptop is declining it. Is there a straightforward way around this? Thanks Peter
I need help with programming an EA to place a trade when two bullish candles open above an Moving avg with the second candle closing higher than the first. How can i do this? thanks for the help!
Hi there, plz excuse my direct request, however... i do attach sample code of EA, there is also /on the top/ some code id like to incorporate to mentioned EA or any other, any one could give me an example of what should go where???
Hello to all A code is backtested on two separate accounts. Both accounts are with the same broker. The history in the tools were updated on both accounts. The only diference between the two accounts is that one account is LIVE, the other is a DEMO, but the reports are different. The number of...
Hi, Not sure if any of you experts can help me on this? Is there anyway of exporting historical data from MT4 into an excel spreadsheet? I would like to export the open/high/low & close from the 1hr GBPUSD chart in the format below, Datetime closeOpenHighLowClose18/08/201000:001.557151.557891...
Hi. I have a problem with visual tester. I have a small cyclic code (EA) that I put into strategy tester whenever I want to be able to re-experience the market movement for any given time interval. Technically it shows me in real time how the market behaved in certain time interval and I can speed...
What is the way used by the tester to emulate price ticks? I've downloaded prices data from the history center; "modeling quality" is shown as 90% for M5 period, and only 25% for M1 period. Why? Is it possible to visualize backtest orders on the candlestick graph? Why results of backtesting runs can...
Symantec Messaging Gateway 9.5 Exam is the symantec exam name of ST0-132,ExamPDF has new updated this exam,it offers you the real and latest questions and answers to prepare for your test and ensure you pass your symantec certification at your first try.furthermore,it can help you save your time and...
I try to have in MT4 the same function has we have in MT5, but for some future (SP500) it does not work. The challenge is to calculate correctly the pip value : just using MarketInfo(Symbol(), MODE_TICKVALUE) does not work. any idea? Regards, OrderCalcProfit The function calculates the profit for...
Hi, What would you do if your Script/EA/Indicator overloads the CPU while running? What would you check first, what optimization would you apply? Especially if there is an endless loop in Script.. Thanks
Example: // The declaration of the PipPoint() Function:double PipPoint()  {    if (Digits == 2 || Digits ==3) double d_UsePoint = 0.01;    else if(Digits == 4 || Digits == 5) d_UsePoint = 0.0001;    return (d_UsePoint);  } // Then call the function from the code:double d_UsePoint;d_UsePoint =...
WTL (write to log) contains date / time and case numbercase 2047: WTL=WTL+" MH - Enter Monitor Hedge - Ticket # "+ticket_nos; break;case 20471: WTL=WTL+" MH - Enter Monitor Hedge - Ticket # "+ticket_nos; break;case 20472: WTL=WTL+" MH - Enter Monitor Hedge - Ticket # "+ticket_nos;...
I finally got around to getting my first EA done, but I've come to a grinding halt, as it does not live trade. The attached EA is a simple one (of course I thought I'd do something simple for my first EA....) It basically checks if the price has moved outside of an EMA envelope. If it has moved...