Expert Advisors and Automated Trading - page 146

To post a new topic, please log in or register
What functions in MT4 hold the value for open long trades, closed long trades, open short trades, closed short trades, total trades for the day. Is 00:00 Server Tim when MT4 starts a new day to calculate values for a day? Thank you. 
help me to add code if hieken ashi bar change color close all i use this code bool heiken30() { double Heiken_op30 = iCustom(NULL,30,"Heiken Ashi",Red,White,Red,White,2,0); double Heiken_cl30 = iCustom(NULL,30,"Heiken Ashi",Red,White,Red,White,3,0); if(Heiken_op30 <...
Dear Sir, I need somebody to correct the follow code: #property copyright " www.OnlyWinnerClick.com "#property link "www.OnlyWinnerClick.com" const string allowed_broker = "Instaforex Companies Group";const long allowed_accounts[] = { 61736192, 436290, 646490, 225690, 279260...
Is it possible to limit the number of total trades placed in a day by an EA? Also can it be possible to limit how many longs and how many shorts? Does the day for an EA start at 00:00 server time? Thanks.
Aloha, does somebody know if it´s possible to read the speed-value of the strategy tester? Or, if this is not possible, a way to get the real value of GetTickCount() from the Windows Kernel32.dll, because GetTickCount() is matched to the simulated server time in the strategy tester, but I would...
Hi all I need your experience to clarify a doubt about the optimization . Assuming that you want to apply the algorithm to the "next week" youwill have to choose the parameters to input, obviously those parameters will be derived from the result of an optimizationperiod. what optimization...
name of indicateur is Custom Moving Averages.mq4 use this commend to add EMA but is alwayse true :( bool ma() { double ema= iCustom(NULL,20,0,0,0); if (ema<Ask) return(true); else if (ema>Ask) return(false); else return (EMPTY_VALUE); } i need to add this paramtre in ma ea Period...
Hello, I need to code this simple entry: Candle A Candle B Candle C Current candle D Entry rule: if Open B > low A and if High B < low C then Buy at the opening of candle D If anybody can help would be very much appreciated! Thank you Regards Pizzo
  need help (2)
ca anyone help me making ea.. when order is 0,open buy stop and sell stop 5 pip from current and no SL or TP.. order then have trailing stop lost 10 pip when there is 1 order.. delete other pending order.. and i can't found way to make ea run in both 4 decimal,5decimal and jpy which is 3 decimal...
Dear Folks, I have a litte problem with MT4 on Ubuntu. I bought an EA with my Account on my Windows PC, because, and I don´t know why, on the emulated ubuntu Version is no Market available. So I took a Copy in the right directory on my Server, based on Ubuntu, and wanted to run it on Chart. Then,...
where can I find the above mentioned system/EA/.... I was reading in the Forex Factory and a comment was made on THE UDINE'S 00 LEVEL TRADING but I cannot locate such doe's anyone have a clue as to where this may be located?????
because Mt5 can backtest more than one pair at a time, I want to learn mql5 to for creating a grid trading ea. But I don't know where to start, should I just learn the code itself or the Mql5 Wizard?
I want to access values from a running indicator in my EA running on the same screen. I have not written the indicator, I only have the .ex4 file. Is that a trial and error execise just looking int various buffers?
  Alert 0 popup (3)
Hi, I have an EA which is able to send pending orders using OrderSend function on an MT4 version 880. But when using version 890 , it stops working and Alert 0 pop up box is shown. any ideas what could have caused it? Seems like the version upgrade is the culprit .
are there any loss recovery ea that can close 50+ losing trades? one by one or all at once doesn't matter.
When I try to make an ea with an indicator, it appears only once in the inspector but when I try with VBbands600, it appears as many times as is calculated. I use it like that : iCustom(NULL, 0, "VBbands600", 0, 55, 0, 0.9, 100, 0.5, 1, 1) Did I make a mistake (if so why) or is it that it comes...
Hi, Please post the name of any MT4 brokers that offer stocks/shares to trade.. also preferably brokers who also offer a large amount of historical data on their stocks in their history centre. thanks in advance, myles
Hello everyone I'm looking for a script / EA that opens automatically many pending orders (buy, buy stop, sell, sell stop) with adjustable intervals. where can I find it?
If I remove conditionals at line 1 and 2, it works fine getting the profit about time that I want, the problem is that i want to get only a specific EA profit. Doing this bellow i receive 4755 error(trade deal not found). Why it does not work? double getResultadoDiarioEA(){ double retorno =...
forextime8
how to coding mqh file or do there any tutorial for learning mqh ? thanks.
hiteshfrnds
Hi All, I know mql4 programming and I am confused that I will learn mql5 programming or not. As most of the broker support only MT4 platform, so is it possible to run mql5 written program in mt4 or can i login mt4 account into mt5 terminal ?
Hi all. I create a binary file, to which I write certain price data. For the reading purpose, I declare file as binary, but now I'm having problem how to write new line characters to it (like char 13 10). How do I do this? Much thanks.
Hi, title says it all, normally when you use FileWrite method, string is appended to the end of file. However I would like the other way around if possible, that is to append the new strings at the beginning without overwriting existing content, so that the last string appended is always on top of...
I am totally drain out. I took few hours to find out why the program wont enter the second if clause. Any skillful programmer wanna give a shot? if(TodayVolatilityPercentage>=90&&(dayTrend==1)&&orderOpened==false)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ Print("Entered if clause");...
Hi: I have a hedging EA that I would like to trade using USA brokers. As you know, it is forbidden to hedge trades according to the regulations. Does anyone know a way around this? Is there software that could split the buys into one account and the sells into another? Thanks for any advice!
I am new to the mt4 programming. Can anyone please help me with this? I'd like to know whether a daily candlestick is up or down. How to achieve in the programming?
Hello, is it possible to install and run Meta Trader 5 on a Server? (24/5) If yes, wich kind of Server do I need and does somone have a Installation-instruction? Thank you.
Hello Traders, The attached mq4 file is downloaded from here, and I have made some small modifications. But to be honest, my MQL knowledge is so minimal, I'm not sure how to archieve what I want. I'm hoping that somebody is willing to help me out with this.    # How to enable the Traling Stop? The...
Hi, I now have EA that works on H4 but I want to make stop loss function work in M1 timeframe I try using OnTick but doesn't work Can anyone please advise some hint ? Thanks in advance
Hi all, Could anyone please help me! When I am doing back testing using code: double TodayHighest = MarketInfo(Symbol(),MODE_HIGH); Print("TodayHighest is: ",TodayHighest); double TodayLowest = MarketInfo(Symbol(),MODE_LOW); Print("TodayLowest is: ",TodayLowest); All the...