Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1122

To post a new topic, please log in or register
Hello Experts ! I’m new in MQL4 and try to build up my one little EA. Please, any one can help me on closing an open position 15mnafter opening if the value turns negative (like 50% of the case) I already start a simple pilot but I need to close thenegative trade after a short period. Thanks for...
The minimum trade size is 0.1 lot, the maximum one is 5 lots with the step of 0.1 lot for each order. What it means? we can not use normal money management with 1 lot step? Pls answer. Thx.
Hello, I am a Computer Engineer, I have 7 years of experience in developping applications. I recently got interested in Forex, and specially in automated strategies. I am ready to code any Strategy, of course FOR FREE, under one condition: the strategy should be efficient. It is a win win situation...
  bool variable (2)
Hi, I need to create a bool variable that is true if an order that was previously opened now is closed. How can I proceed? Thank you!
Hello MQL4 comunity, i need help and maybe some one might help me please. I wan´t to draw an indicator which draws a value only at a given time. For exapmple only between 08:00 and 20:00h. But i gues not how to realize this. I tried to do this with the Hour() function, but this function returns...
The code int myTicket = OrderSend(..., ...) provides the ticket number for the order. Assume that the ticket number is then stored locally (in an array, or a global variable, or whatever). Then suppose the following code OrderDelete(myTicket). Is it possible for the OrderDelete to fail?...
Hi, I'm a newby to MLQ4 and have not programmed in decades. I have an EA that can be quite profitable that does not use stops. As such it can sit for a while in minus profit trades. I would like an EA that selects those trades with a minus profit of selectable level, and if this trade is not...
I'm trying to write a custom indicator that uses iMACD and i'm running into some trouble. Why are the values in iMACD slightly (but significantly) different than in the metatrader equipped MACD indicator? Also, for some reason in the EA I'm making when i run: iMACD(NULL,0,12,26,9,PRICE_CLOSE...
hi i'm trying to use the QQE indicator attached in making an EA.. i want to create a function that returns the QQE array.. any guidance is much appreciated.. thanks in advance
I am using the folloing function to get 1/-1 value, but its not returning anything. Why??? I can see MACD lines making V shapes on the chart, but the following function is not returning anything. int DailySignal() { double MD1,MD2,MD3; MD1=iMACD(NULL,PERIOD_D1,12,26,9,PRICE_CLOSE...
I was wondering if someone could program an alert that indicates when the highest point in an up trend is a bearish candle and the lowest point in a down trend is a bullish candle. Sorry I don't know how to copy screen directly from chart but I have attached a copy from Word
Does anyone know how I can generate a backtest result that will include my brokers logo on top of the page so it shows its metatrader 4 generated and not made up? Edwin
Anyone has a clue about how to check the previous bar AccountFreeMargin ? It is working well to avoid trading twice on a bar for now using the following: if((AccountFreeMargin()/AccountEquity())>=0.99)NoPositions=true;else NoPositions=false; but I cant figure out how to have the same for the...
PLS ADMIN: I discovered MetaQuotes-Demo - MetaQuotes Software Corp. time zone is GMT+01, but just to clarify my discovery, is it true?
I need a MQL4 programmer for an EA Please contact me at: ukatz@netvision.net.il The proposed project enclosed
  ZigZag Alert (2)
Hello, Below the graphic using ZigZag Pointer Indicator. How can I receive an alert when the indicator drawing a finger ? I try to make a print everywhere in the script but it send an alert for each tick. Thank you...
Does anyone know how I can get a zigzag indicator with popup message and email alerts?
Hi, I have this statement to place 2 orders if(Long) { ticket_1=OrderSend(Symbol(),OP_BUY,Lots,Ask,NULL,15,15,"UP",0,0,Green); ticket_2=OrderSend(Symbol(),OP_BUY,Lots,Ask,NULL,15,30,"UP",0,0,Green); } I need to move my trailing stop on the second order(ticket_2)...
Whats the workaround?????????????? I am getting "OrderModify error 1" at the execution of the following code in my EA. I simply want the following: Once the trade is in profit equal to the StopLoss, then stop loss is set to breakeven. AFter that, trailing stop should work in equal steps....
Hi everybody, My questione is simple but I struggled enough with the implicit recoursivity of processing every tick. I need to create an array containing for every indexes my different values of AccountBalance as they appears to be in the backtesting window. In order to calculate some moving...
Hello, I am new to MQL4 (previously used Tradestation) and am working through the code. I was wondering if someone could post a code for me. I am trying to see how the code works compared to tradestation. I would like to see a buy or sell once there is a 5 & 7 EMA cross and a MACD (8,12,1) cross....
Hi everyone As we know there are some requests about drawing rectangles on charts or just to make our custom indicators more "beautiful". By this I have made a function that can be used to do this kind of thing. Just give me credits for it if you use it, that's all I ask. So you probably asking how...
Hi, When I apply the ADX indicator to a chart it draws a line with a certain set of values. Great. If I now change the 'Apply To:' setting to a different price (e.g. from Close to High) it produces a different set of values. What does this mean? ADX shouldn't have a price input. It just has a...
  The Ratio Family (20   1 2)
Long History. Near one year ago a friend told me about one new MTF indicator developed for a well known trading system in another forum. That indicator was the stochastic. After read the code I thought: why only stochastic? why not almost well known indicators?. So, I've started to create new...
Hi all.I want to define a variable which is dependent of the same variable one period ago, but I have absolutely no idea how to do that. I already tried it with an array and a loop, but somehow it doesn`t work :(. So I wanted to ask, if somebody could help me. The code is as follows:...
my indicators name is TzPivot aSembol=Symbol(); aSignal = "SELL Stop"; aprice=(sl1,Digits); atp=DoubleToStr(sl2,Digits); asl=DoubleToStr(sl1+30*Point,Digits); MY Questin: i want to using my Expert Advisor; iCustom(?....).
any code available for a fixed trailing stop. I don't want dynamic trailing stop to be recalculated at open of each new bar, but just a fixed trailing stop. Say 200. So the order is modified only when the price moves 200 points.
Is there a way to create a line without the information tag that is at the end of a vertical or horizontal line? ObjectCreate("upline",OBJ_VLINE,0,Time[0],0,0,0,0,0);
Hi, Can anyone tell me what this message means in Strategy Tester Journal tab please? 2008.07.08 20:39:02 2008.06.30 23:57 MACD Sample GBPUSD,M15: We have no money. Free Margin = 95.4733 Thanks for helping. Chris
can anyone explain to me please how this timing (statistic indicators) work. example: what this timing formula means (5,3,white,black,black,1,3) by using candelstick and a zone of (8,4,-4,-8). Thank you
1...111511161117111811191120112111221123112411251126112711281129...1245