MQL4 and MetaTrader 4 - page 1018

To post a new topic, please log in or register
GET THIS... Over the last week I've put some effort into a new EA - Targeting GBPUSD on M15. Ran it on my laptop in back test and got staggering results. I MEAN S..T..A..G..G..E..R..I..N..G.. I was so impressed that I decided to do some optimisation testing just for my own sanity's sake. I dug out...
I am new to Meta Trader programming and am trying to use the Print statement to test out some things. I checked the expert logs, all I see there is the statement: "Experts are disabled because profile has been changed"; So I went to Tools->Options and under expert advisors tab, unchecked the...
  whats wrong (6)
Hello when i like to modify the order the code runs multible in the ea if (Hour() == (Start1 - 2) && Minute() >= 0){ done = 0; // set done to 0 2 hours before } if (done == 0){ // if done is 0 modify order for (int...
Hi friends, At the outset, I want to thank one and all for being an continuoussource of information and inspiration. I hope to be of use to thecommunity some time. Until such time, I am a Net recipient ofinformation. Some specific questions about MT4 and trading in general. 1. Is it possible for...
Hi, My MT4 does not allow me to switch to another currency pair by clicking New Chart? I used to be able to do this. Does anyone know how to fix this problem?
even if i test the "MACD sample" contained in MT4, the report just show every item is 0! i wonder if when the time is not trading time, for eg, Saturday,so the EA tester also don't work?
Please send PM with details and figures and of course the cost. K
Gang, I have posted several times on the MQL5.com forum but it's a little like Paris Texas over there! I am getting some very wierd program flow behaviour in MT5 with a pivots indicator I ported over from MQL4. In essence the program flow is:- OnDeninit() - Clear_Levels() - returnOnInit()-...
I am a newbie on EA programming but already have several years on c#. I try to create EA, when first time I run it on strategy tester it run quite fast. but later on it run very slow just to test 1 day data. I though I've added some complexity on the EA, so I tried to changed it back to original EA...
Of course all credited goes to L.Bigger AKA Silence for creating this EA, but I tried to modify it but couldn't. Please tell me if in any way it is improper to post this. I want to modify the following: - Stop loss for any order is 50 pips. - Reduce lots taken by half. - Reduce orders from three to...
is there a way to get MetaTrader on the new motorola droid phone??
Hi, I a newbie in MQL4, and I need some help. How to send an order when an indicator change its color? I`ve studied about that but I`ve not found the information. I`d like to use the color of an indicator as an entrance parameter to create a condition to send an order. Could anyone help me, please?...
Hi folks, Is it possible to count how many bars after 2 MA's crossed and displayed in the main chart??.. Thanks
How close is the backtesting to the reality? I backtested my EA on the strategy tester and found several entries shown in the report highly unlikely in real trading. My ea reentered the market as soon as it was closed, even in the same direction right after being closed by stop-loss. How can I...
Hello, I need some advice, I want to make an EA using this center of gravity indicator. I want to use it as a function so I could call it anywhere in my EA. I'm a newbiein programmer's world, and I find some difficulties in it. Please someone help me, thank you....
Hello My ea has the problem does the OrderModify turns multible for (int i=0;i<OrdersTotal();i++){ OrderSelect(i,SELECT_BY_POS,MODE_TRADES); if(OrderComment() == Text && Hour() == (Start1 - 1) && Minute() >= 55 ){ if( OrderType() == OP_BUY && OrderProfit() != 0 ){...
http://www.onix-trade.net/?act=monitoring_stat&xid=13780. http://www.onix-trade.net/?act=monitoring_stat&xid=13802 The above is s link of my trading account in fxpro and its advertised in onix-trade for bring prospects for account management, if you are intrested in your fund beign managed, contact...
Decent optimizations take weeks and even months, which makes it unlikelythat they will be completed successfully. Thus the ability to pause and savethe results up to that point and then resume then again, even if MT5 had beenclosed and reopened, the computer had been rebooted etc, it would be...
I HAD AN EA ATTACHED TO EURUSD CHART,AND WANG TO GET ASK AND BID VALUE OF GBPUSD . HOW TO REALIZE IT ? THANKS.
  Forex robot (2)
Forex robot. Forex robot - a system that can track their own performance indicators (standard and designed by you) and on the basis of one or more signals to decide on the commission of a transaction. There are many types of such systems. Most of them are similar in structure and mechanism. Many...
I saved old version only, in *.ex4 compiled coding, the *.mql version I have changedwith new codes... Can I convert my old version from "*.ex4", to review the code. Does exists any possibility to return the old "*.ex4" in "mql-text"readable version? The indicator is not copyrighted and made more...
Hi, I have this complied custom indicator Arrow.EX4 thatseems to be reasonably accurate. It putsan Up arrow on the chart when it is good time to enter into a Long trade, and adown arrow when it looks good to get into a short trade. How can I detect these and use them in an EA to open Longand Short...
I'm trying to get the high and low of the previous day on a 1 hour chart (the last 24 bars) so I can use them during the day. I want this process to be done everyday of trading. Currently I put this process in the following functions: double Higher (double Top) { static int i;...
I'm trying to plot pivot points, their resistances, and supports as graphs (similar to that of moving averages) for any period (based off a bar's predecessor), so I can find such for any bar, at any given time. Basically the purpose is to find what supports and resistances based off pivot points...
i saw an an article related MT4 installation . the final structure is as follow : aaa_metartrader\experts\files\bbb_metatrader install bbb plateform under aaa plateform 's files folder . i do not understand it 's function . can someone tell me ? thanks.
Idon't fully understand the position system in new MetaTrader 5. If yousee my picture, so I can take profit from both (BUY and SELL)possitions. But in MQL5 it is not possible. Am I right? How can I solve this situation? Resource: MetaTrader 5 Trading System:
hi! every one! //////////////////////////// extern double lots=0.06; int start() { //----------- if (OrdersTotal() <= 1) { if (Ask > Low[1]) OrderSend(Symbol(),OP_BUY,lots,Ask,5,0,Ask+50*Point,"buy",0,0,Red); if ( Ask < High[1]) OrderSend(Symbol(),OP_SELL,lots,Bid,5,0,Bid-50*Point,"sell",0,0,Green);...
10 years back test ... 10 years back test without optimization
I know some of you are against commercials, but I'm not selling any EA as you know me... After a month of hard work, the MQLmagazine is ready. Although it's a wordpress blog, the theme does it well into making it look like a magazine. I intend to cover both MQL4 and MQL5. Because MT5 is itself so...
hi, I programed a loop, which counts the profits and only if all trades together are profitable, they will be closed . I used OrderClosePrice() for OrderClose, but I tried Ask and Bid, nothing lets the EA make profits. Curiously sometimes all trades are closed with profits, but sometimes with...