Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1046

To post a new topic, please log in or register
I have developed an Expert Advisor for MT4, and anyone want to try it in their demo account to test it. I have done the back test, it is quite good? The trading philosophy behind the strategy of the EA is based on the price action. Please PM me if anyone want to try it. I will sell it Ebay later,...
This is an example in the docs, but how do I make multiple lines (new lines) in the body of my message? Is there a \n or something i need to put in the statement to make a new line? SendMail("from your expert", "Price dropped down to "+DoubleToStr(lastclose,Digits));
I prefer to put to use && to combine logical tests in a single if statement and in other programming languages this is usually the faster method because usually if the first part of the if fails, the second part won't even be executed, thus saving time. Unfortunately after doing some times I found...
can any one help me with this please... I am doing a iCustom on a indy called i-Regr ...I have identified the 3 lines that the i-Regr indicator places on the chart and i take trades off the high line and the low line and the Ea is supposed to close the trade if the bid price hits the mid line. The...
In my EA I tried to use a symbol diffrent from the chart symbol and got an error - 4106 that maens - unknown symbol. my question is how do I iuse more than 1 symbol() in an ordersend cmnd in an EA ?
Hi All, Is anybody here could teach me how to make a rectangle diagonal object like the picture below? Any help is very appreciated. I haven't try all of the object's function though, but I'm curious if anybody here could do that because I've never seen any of this before (perhaps I need to surf...
I am not sure about the correct definition of stoplevel... For takeprofit, is the limitation: 1. MathAbs(openprice - takeprofit) >= servers_min_stop ? or is it: 2. MathAbs(closeprice - takeprofit) >= servers_min_stop ? For stoploss, is the limitation: 1....
Hello everybody! I wonder if there's a way to check the mouse position (expecially on time axis) with MQL4... It might be useful to code a floating "data panel" into a "fullscreen" (F11) chart. Regards, obi.
1. Arrows and check-marks show up as characters ("u", "a") insteadof symbols 2. Can't read mail under "Mailbox" tab (When mail is clicked it opensand says . .<HTML><HTML>) Other then that... It's smooth and probably 40-50% faster than Windooze... andno viruses... and FREE and on and on :) I...
NEED BEST SET UP PARAMETERS FOR 4 HOURS CHARTS ! FOR THE FOLLOWING INDICATORS : ROC - DAMIANI VOLAT V3.2 - FGDI - FRASMAV2 - SPEARMAN RANK COR TKS FRDS LERECIDIVISTE
Hi all, i have a special Question to MQ4, maybe you can help me i have a global integer Variable in an EA if i start the Programm the Variable will be initialice to 0 (i=0) if i call the properties and then go back via OK. The Init() will be called but the global variable i is not initialiset to 0...
Hi All, Can anyone recommend a good EA to play with? Im pretty new to trading so not something to complex please :)
Hi, Can someone please explain the following probelem: Bars, is say 1234, but, High[1234] is always = 0.00000. Not sure why? High[1233], is say 1.2345. But High[1234], is 0.00000. Is the last bar unreadable? Am I missing something? When you auto-scroll backwards in time to the last bar shown on the...
I figured I would make as simple an EA as possible, after making hundreds of unprofitable EAs over the past year. The Buy and Sell Conditions are simple as can be: if(LastCandleUp == True && ThisCandleUp == True && LastCandleDown == False && ThisCandleDown == False) Order = SIGNAL_BUY;...
Hi, can anyone show me the code how to limit the total of transactions per day? I see most of the EA only limits open position per execution. Let say I need to limit the transaction only 2 transaction per day, because if more than two, the risk of trade will increase. thanks for helping. ariston
if not, lots of EA have to be translated to MQL5. and,sorry for my pool eng..
Hi all, I've got a problem while performing backtest in my simple ea, it uses a custom indicators (semaphor e cycle) when i run backtest my cpu fan going crazy, and terminal after few trades freezes, I have not developed these indicator, just tried to include them using the iCustom function, anyone...
**** THE IDEA IS TO COMPARE THE BROKER NOT FOR TRADING BUT FOR DATA FLOW QUALITY THIS IS NOT TO TRADE ITS TO WORK ON / INDICATORS / MODELS / EA DO U KNOW WICH BROKER GIVES THE BEST ACCES TO DATA IN ALL TIME FRAME ? BEST WOULD BE TO HAVE THE STUDY FOR TEST VERSION AND REAL ACCOUNT ! FOR EXAMPLE...
Hello, I'm backtesting an EA that relies on a home made indicator. The indicator does some tests on multiple timeframes, from M1 to H1 and draw a red bar if SELL advise, and green bar if BUY advise. in the EA I do basicaly: if indicator == -1 => buy if indicator == 1 => sell else => do nothing...
  Split orders (5)
Hello folks! Today's question is: is it possible to split an open position in two different ones? You may say: "dude... why do u need such thing?!?!??" ...and here it comes why.... Suppose you have an open position, say 1.00 lot. Suppose you want to close it when it reaches a certain price. The...
Hi I am experiencing some difficulties with a home-made EA Are there any known occurences that would cause a requote from the platform directly or from the EA setup on mt4 I receive requote message though the brokers logs show no requotes, only a single request reaching them which the price had...
Anyone read anything about this: http://www.nfa.futures.org/news/newsNotice.asp?ArticleID=2273 ? Am I right in thinking that US-based brokers are now going to be required to treat a long order for e.g. 1 lot followed by a short order for 1 lot as a close? In other words, you could do two...
Why is symbol change and timeframe change both bunched up in REASON_CHARTCHANGE? One may require a lot of extra processing time and the other typically should not. Please create new constants to distinguish the two. Regards, JT
I am considering writing an EA that uses multiple entry criterion. The exit criterion will be different for each entry criterion. Is there a way to identify an open position so that the entry method can be known and used to determine the correct exit criterion?
I am NW, loking for someone who knows there way around this platform.. I learn by video or doing, not too good on reading it.. Thanks Steve
Hi, I'm working on a very simple indicator : 2MA Cross and I want to display the signal (an up or down arrow) and an alert ONLY when the bar is formed that is - for me - for the last close of the current timeframe. Am I clear ? TIA Best regards BBF
Hi Everyone, Is anybody on this forum located in the Phoenix (or Tucson), Arizona area? Interested in meeting in person to talk Forex EA's or Strategy? Reply to this post or drop me an e-mail at: tovan(at)ieee(dot)org I live in Chandler (just South of Phoenix), but I also spend some weekends in Vail...
I 'd like to know how to protect a EA ? do you think that the broker can use a EA when he see thatthe EA make profit ?
Any one know if this is possible? I want to create EA with only partial data. The rest of the EA's data will be imported using includes of file located on web site. The idea is to try and protect the EA source code. Thanks, Jon
I WONDER IF IT IS POSSIBLE TO CODE FOR A TRAILING STOP THAT CAN MOVE IN OPPOSITE DIRECTION UNTIL A CERTAIN CONDITION BECOMES FULFILED