Download MetaTrader 5

MQL4 and MetaTrader 4 - page 958

To post a new topic, please log in or register
I have an Idea about maximizing profit, but i have some trouble to coded it... Here is the Idea : If we have open position (even martiangle), and already reach 50 pips profit, then we loop the max profit. Close the position if the profit is fall 50% from its max profit. Here is the code I've tried...
Who can give me a hand! I want a MT5 indicator coding : a period indicator coding that 4 hour MA in 30 minute chart! Look at this picture
  Gann HiLo EA (4)
I hope all the experts here will help me figure out why my EA does notwork. This EA drove men nut. I have rechecked it so many time but stillcould not figure out the error!!! The rule is very simple based on Gann Hi-Lo Price crosses above Gann -> buy Price crosses below Gann -> sell Standard: Open...
I have a time string like either : "22:30" "01:30" "00:45" And I want to turn it into an integer 2230 130 45 Is there an easy way to do this ??
Hi Guys, how are you doing? Well, like you I'm looking for solutions to be rich and I found and bought this EA very very impressive (www.fxnitro.com) You can see the statement LIVE at: http://fxnitro.mt4stats.com The EA is working in Tadawul account. I was worried because we know the problems with...
This is current time : datetime dt=TimeCurrent(); How do I get time, but exactly 24 hours ago ?? datetime dtprev =TimeCurrent()- ?????;
I have find the follow bugs one meta4 i want to delete the order when the trailingstop pass cross the entry of limit order this work with Buy limit but not with Sell limit, when appear the entry signal and is triggered, the EA delete all the sell limit also when the condition stoplosshort <...
Hi, I would like to create a function where I use some arrays, and Integer as imputs and the output is the average. How to define the function ? int ArrayAverage( double array[][], int toto) { } or int ArrayAverage( double array, int toto) { } Thanks you guys for your help UKALGO
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 ?