MQL4 and MetaTrader 4 - page 1025

To post a new topic, please log in or register
Hello, I want to make a script to place vertical lines at the opening times of the major world markets. I have quite a bit of programming experience, but am only now using MQL4, mostly with the aim of drawing things on my charts. Well, the script below compiles without errors, but when used on a...
hello at all i started programing EAs 4 weeks ago and have a lot of versions, this one is one of the winners sadly the EA nearly had no trades at the end (august 2008) it doesnt trade in 2009 after march .... i am now working on a EA that trades in such hard times (financial crises) LOL Strategy...
I am back testing using MB trading demo. Th standard trailing stop codewill not take into consideration of the commission and order swap. Anyone had tried successful to have the trailing stop not take losses with negative profit? typical trailing stop code: void ShortTrailingStop() { int scnt;...
Is that a BUG in MT4 or I am the BUG?? Assume I have 100,000USD in my DEMO ACCOUNT account in MT4, I have some calculation problem in placing order. Assume my margin is 1:1 ( I am using 1:1 because it makes the question easier to follow) GBP/USD = 1.63020 Then I...
Hello Does anyone have a code for calculation the Standard Deviation between the Open and High and the Open and Low Cheers Kiwi
//+------------------------------------------------------------------+ //| GlennKing.mq4 | //| Copyright ?2009, MetaQuotes Software Corp. | //| http://www.metaquotes.net |...
Hi, how do I use the value of 1 indicator as 1 of the inputs for another indicator? I have MathRound(iCustom(Symbol(),0,"second one",0,i)) and would like to place this value in my code. Should I use global variables?
Morning to all, Just as the subject states, I have an EA that will work with many other pairs, but not others? I have not tried every pair, but what am I missing? Cheers Huckleberry
I want to manage my position based on timing.When using TimeCurrent() function my E.A skips weekends and code doesn't work properly.Is there a more safe timing way using bar counting? What type of a code should I use when for example; modify an order 10 bars later after OrderOpentime, sending an...
There are a large number of Forex Robots available today andit can be very difficult to decide which is best for you. The: fap revolution review site wasset up to assist in the selection process. There are already several independant reviews on the site, but we are lookingfor more. If you have...
Hey, Many of you have asked us to review some of the forex robots out there and compare the pros and cons of each. We spent some time doing this and have compiled a thorough list for you guys. We tested different forex robots for few months and this is what we found. Please check the following site...
Hi folks, I want to detect wether the color of a candle with a shift of 2 in the timeseries is different than the color of the candle with shift 1. It was said, that somewhere in this forum the problem has already ben dicussed, but I searched for hours now and couldn't find it. Any Help would be...
  EA problem (4)
summary of EA: 1) always start with BUY order (with SL and TS) 2) if first order close with TP is ok becouse I won, else start with SELL order (with SL and TP) 3) if second order close with TP is ok becouse I won, else start with thirth BUY order (with SL and TP). Following there is a draft of EA,...
Does MQL5 support dlls that are NOT written in C++? Can I write a dll in C# or VB without writting a C++ wrapper?
Hi People!! I decided to offer free EA writing for non programmer. but I would like to start with small project first as I have day time job. I am only doing this for my free time as my hobby. but I write coding ok and good problem solver normally... Please feel free to contact me on "...
I am using strategy tester and need to disable 1) Tester: Stop Loss how do I disable this 2) and error 148 (which is The amount of open and pending orders has reached the limit set by the broker) if this is broker dependent, which broker has demo that has no limit
Hi, If anyone would like some EA programs written for them I can do it free of of charge provided they are not too long and complex. For the longer and more complex ones I will have to charge for them. If you wold like some more information I can be contacted at forex3813@gmail.com. Rgds Tim.
I don't want to feel greedy so here's a free gift/ tip to the community. Let's say for example you know that the dealer brokers are corrupted. They like to delay with stuff like BUSY trade context. Well, the best to approach this is to plan your stuff way ahead of time. It looks like you are in...
Yeah, some do exist. I believe my EA is one of the best. But who does not believe in their own creation. Anyway, think about all the commercial EAs out there with all the fancy testomonials. You know, FAP Turbo, etc..... How do we know they ain't cherry picking all the good clients with the good...
Greetings, I'm currently looking to hire / partner an MQL4 Programmer for a possible venture. It'll be better for us to discuss the details via email (sensitive info) Please email me at hafiz85sg@gmail.com if you're interested. Thank you.
How can I shoot down an Expert advisor via program ?
Will MetaTrader 5 consider GA optimization with multiple threads (utilize the new multi core computer technology) in comparison with "old style" single thread GA optimization run into MT4 ? Niko
I am sorry for asking this question maybe I have a translation problem, but surely it is going to be one of the most stupid questions ever asked. I want to know what is "the shift" of a Bar? Could anyone explain me the concept in other words? Thanks in advance.
I would like an alert - pop-up or audible - when the AO awesome oscillator crosses the zero line. Could anyone help me ? Please.
Hi, Lots of people is talking about the end of the Hedge in the forexmarket. I've some projects that uses hedging strategies but they are in a early stage and I'm not worried about this matter at this moment. BUT I know some guys that are using hedging strategies but the result aren't so good. In...
Hello I am trying to make an Ea that write to a CSV file but I have been trying and dont find where is the error. This is my first mql4 Code, so I hope you can help. I dont know if it has anything to do but I get 4105 as Error Code. It compiles, also the world "open" that I placed inside the if of...
_orderIdBuy = OrderSend(Symbol(), OP_BUYSTOP, _number, Bid + _pendingPoint * Point, 0, Bid + _pendingPoint * Point - _lossPoint * Point, Bid + _pendingPoint * Point + _getPoint * Point, "some comment", 16384, 0, Green); OrderModify(_orderIdBuy, Bid + _pendingPoint * Point, Bid + _pendingPoint *...
Hi, Some EAs perform spectacularly well when backtested usingcontrolpoints mode, but quickly empty the account when tested in every tickmode. I read the help file about the modes but didn't get any smarter... Would it bepossible to apply some sort of filter or similar in the start functionso as to...
int start() { //---- int _sell= OrderSend(Symbol(),OP_BUYSTOP,1.0,Bid+100*Point,0,0,0,"some comment",16384,0,Green); Sleep(10000); OrderModify(_sell, Bid + 250 * Point, Bid + 6000 * Point - 250 * Point, Bid + 350 * Point + 6000 * Point, Blue); //---- return(0); }
sorry for asking a simple question in this forum, where complex programming is discussed by experts as well or even mainly. I tried to program a simple indicator which uses an alert when the current price level is x pips away from a given entry(or price) level for example in the sense of: Extern...