Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1034

To post a new topic, please log in or register
I am trying to write an EA to place orders on the crosssing of two MAs. The MAs I am using is a custom indicator called NonLagMA_v7.1. The current code I have places an order (at the wrong time), and then fails to close it when the MAs cross the other way. The EA is supposed to be in the market all...
Hi guys ))) If you have some strategy or ideas and you need EA - write me now! asm707@mail.ru icq 342562682 skype assembler_1990 Yahoo IM: forex303
  MQL5 language reference (28   1 2 3)
Didn't manage to understand, how can we calculate past values of an indicator, since there is no shift parameter ? There is nothing on the Доступ к таймсериям и данным индикаторов page that is indicated by Rosh answering to MA19, that could tell how the loss of the shift parameter is compensated....
  EA's allowed? (7)
Sorry for this simple question but I could not find the answer in a search on this site: how many EA's can I run simultaneously on mql4? Thank you very much for the help...... Daniel
Dear All Let's say that I've programmed an EA that takes 1 second to run from start to end (including opening/closing orders). What happens if the market is very busy and ticks come 2 or more times in a second. Does that mean that the second instance will run even before the first instance is even...
Hi, I am using the following command: MA_prev = iMA(Symbol(), 1440, 14, 0, MA_method, MA_price, 1); Problem is that the result calculated in MA_prev is different from the result on the relevant H4 chart (all parameters the same). Help.
what is the code for an EA not to open order despite it sees the order correctly. can someone help me.
Ok, I hate to say it but I'm desperate :) Can someone help me fix this EA. I have 2 issue's. 1) It doesn't heed the donchians. When the Donchian crosses the Nolag its not suppose to buy anymore... 2) Sometimes it makes the same order. When it stop losses on a sell it sells again and stop losses......
Dear Friend, I use below function for add Stoploss to my orders. Sometimes it work and add stoploss & sometime not working double SL=100; for (int l_pos_2 = OrdersTotal() - 1; l_pos_2 >= 0;l_pos_2--) { OrderSelect(l_pos_2, SELECT_BY_POS, MODE_TRADES); if (OrderSymbol() == Symbol()) {...
Hi, I've written this little indicator. It takes the price Open of this day, and draws a line on the chart at 0%. It then draws other lines based on the percentage of the ATR100 (daily) value. When this indicator is 'dragged' onto a chart it works fine.... BUT.... when I then flick through other...
Real Quick Question... what is the script for an END function in MQL? Here's what I'm trying to do: If(TotalOrders() == 12 && TotalProfit() >= TargetProfit) {what do I put here so that it won't continue processing the rest of the script?} Computehistoricals(); EstimateNxtTarget(); Thanks!
  Minute Entry (2)
My EA signals comes from H1 and when I try to sharpen the entry with 1min chart, my results are poorer. Any reasons? //+------------------------------------------------------------------+ //| Minute Entry |...
Hello all, I am looking for a programmer that can create an EA for a system I have. It is a simple system of one indicator providing signals for long and short orders, with that same indicator in 2 higher time frames acting as filter. I would need the EA to have the following features: TP and SL The...
I am a former alpha and beta tester of NINJA TRADER in 2003-2004 Thanks for the link for <beta testing MT5 on my account.
I've been successfully backtesting an EA that I've written. Now when I try to forward test it on a demo account, I get the following errors (this is a subset of the messages in the Journal -- these messages repeat over and over, although the "connect failed [no connection]" error occured only once....
I want to refuse requotes which are below my exit criteria and reattempt to close the order. Is this the right way to accomplish this? { while(Order == false) {RefreshRates(); Order = OrderClose(OrderTicket(),Lot,Ask,2); if (GetLastError()==138 && Ask <...
Hey guysJust wondering if anyone has any good ideas for detecting whether a pair is trending or trading, obviously there is no perfect solution. Just looking for ideas.I was thinking maybe an indicator that detects divergence between macd and stochs or rsi? Or some other indicator anyone has seen...
Hello, I have several EA running for me. I note monthly result for each of them and do backtesting to see if the tester will give me the same results. Everything worked fine until recently. Now all backtests are way of the live trading on all experts. I'm not talking one trade here and there, I'm...
How long is OrderSelect in effect. Is OrderSelect deleted, canceled, or whatever after a non-order type of function is performed (math or chart function).
Hey, I have been trading for a while. And I have also been making consistent money for a while. For all the poor souls out there, I wish you good luck. What's the point? Well, I feel like I need to give back. If you have a solid strategy that makes money and need programming help, feel free to...
int start() { RefreshRates(); if (OrdersTotal()>0) {OrderSelect(5555, SELECT_BY_TICKET); if (Ask >= (OrderOpenPrice()+ (5 * Point)) && OrderLots() == 2 && (OrderType() == OP_BUY)) { OrderClose(5555,1,Ask,10,Red); } if (Bid <= (OrderOpenPrice()- (5 * Point)) && OrderLots() == 2...
  Great Site! (2)
I'm glad to see this place. I'm looking forward to seeing how good this place canbe!
What's the easiest way to increase the size of chart prices, dates etc. Read the stuff in the archive but am leary of messing with it. Not too PC enabled (:<
How do you have multiple instances. Example - I have 3 account and I want testing that includes one pair for the first two accounts and a differnt pair for the last two. Do I need to install meta4 several times or is there different workspaces ( Or something like this)?
  Another iCustom question (17   1 2)
Hi, The EA draws the indicator I use in iCustom in seperate window. It seems the values posted in this window differ from the ones the EA uses. Is this a common problem ? Thanks, BB
hi everybody i trade forex using one indicator only (ATR) average true range. i believe now ATR is magic of forex market here is the statement you can watch it and follow my result everyday: http://ibdafx.mt4stats.com/ i need programmer to write EA code for me :) best regards
SymbolEURUSD (Euro vs US Dollar)Period1 Hour (H1) 2009.01.01 23:00 - 2009.08.14 22:00 (2009.01.01 - 2009.08.17)ModelEvery tick (the most precise method based on all available least timeframes)Bars in test4819Ticks modelled3680683Modelling qualityn/aMismatched charts errors19352Initial deposit10000...
Which broker has USD index as a ccy pair? The custom indicators that were posted (to construct your own based on the individual pairs with their respective weights in the index) on this forum do not work. Is there a way to simply display candles from a "synthetic" instrument your created yourself in...
I am seeing ppl replying to a post which is more than a year old. Why/how is that? Is there any sort order or no order at all in seeing the posts? If they can organize the forum better that can save a lots of time for users. By keeping the posts in proper order, all can benefit by choosing only the...
I am relatively new to FOREX and currently developing EA. I have developed one EA which I think is failry making food profit. With back testing from 01.01.2009 to 08.16.2009 it shows profit of 292K with some of the parameters optimized. With same parameter when I try to run it from 01.01.2008 till...