MQL4 and MetaTrader 4 - page 1187

[Deleted]
Hi To accuratly work out my pivot points I need to log the candle type of the final candle that closes at 2200 on the 1min chart. My EA is not attached to the 1 min chart though. I am new to coding but keen to learn and I have this: //2200 time to work out the pivot pointsdouble Pivot(string...
[Deleted]
Hi I m having problem to figure it out what leverage ratio that backtester is using.I opened a n Alpari demo with 1:100 leverage, after downloading thetest data. I have the platfrom disconnected from the server in casemy historic data get overwritten. Then I started testing my EA, and I got...
[Deleted]
I want my EA to open a buy if the price rises above the highest bar´s closeing price of a 1 hour timeframe. To find the highest closeing price I use: Highest_Bar = iHighest("EURUSD",PERIOD_H1,MODE_CLOSE,Period_Highest_Bar,1) and then Highest_Bar_Price = Close[Highest_Bar]; Now I open a 5 minute...
My name is Sakis Athan i am trading the markets since 1986 There exist not blind system to enter the market you enter when thinks happent and human eye can see it. What i want is an automated exit system to start work when activated manualy by me and when MA (KAMA) cross over Happent or when price...
[Deleted]
  EA-programmer-  (2)
I need an inexpensive programmer to program a custom indicator that i have to use on my mt4 platform. indicator is called bb-macd it uses two lines (upper and lower band) and two colors (green to buy and red to sell). kindly let me know with prices and experience. can send file when needed. Thank...
Hi, I need to send time splited orders when I have a signal. Let me explain, by placing an exemple. When some defined conditions are meet, I want to place a buy order, then 20 seconds later places another buy order and 20 seconds later place a third buy order. if (bla bla bla == true) {...
[Deleted]
Hi, I'm new to meta trader 4 and have weird problems with it, or maybe it's my Win 7 which I'm also new to. I was developing an expert advisor to trade with and being careful I made several copies in different folders. I somehow deleted it using the editor so I restored it from one of my backup...
[Deleted]
dear gurus:I am an newbie in MQL4,just find an method of cut positions when lossing, the code as follows: extern double DecreaseFactor = 10; if(DecreaseFactor>0) { for(int i=orders-1;i>=0;i--) { if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)==false) { Print("Error in...
Hi, I try to implement an indicator which is showing my outstanding orders for a specific EA. But I am trying as well to get the total lotsize in case there are more outstanding orders for this EA, but I am doing something wrong because it's not returning any value for the OrderLots. Can anyone help...
[Deleted]
Hello, i have few questions, if somone will know answer to any of them, please dont hesitate to answer. Thanks 1) Is there a way (maybe via WIN-API) to get NAME (or filename) of an EA attached on ANOTHER CHART than my EA is? 2) Can i get array of all opened chart-tabs? 3) Can i somehow get "initial...
[Deleted]
Hello. I've been using Managetpv2-3 EA for a bit and i like this ea. I would like to add more Target Stops to it and would like help to it. This is what Is currently in it.... extern int First_Stop_Target = 120; extern int First_Stop = 100; extern int Second_Stop_Target = 220; extern int...
I just did a LiveUpdate to Build 392. Now my Strategy Tester has a problem with Visual Testing - When my EA test stops, the indicators that are used in the EA are shown...but now they are blank with no data or lines. This creates major problems and wasted time in needing to delete theblank...
Hello, I'm currently writing an EA which works with trendlines. The algorithm for these work now and I was trying to backtest the EA with the strategy tester. However, it seems that there is either a huge bug in the tester or I have a wrong configuration of it. I have two log files from the tester...
Hi, I'm having trouble with Search function lately. Even if I search for "Error codes", it still gives me no documentation results. For the record: I was looking for this page https://docs.mql4.com/constants/errors Anyone else having trouble finding things in docs? Because "array" returns no results...
On my new laptop running Windows 7 Liveupdate does not work. No problems in the recent past on computer running Vista. Can anyone help?
[Deleted]
Hello I'm new on the block. Not new to programming but new to MQL4. I'd like to access a specific candle in a chat. I'd like to analyse the last closed bar. I think it has the index 1. For this particular bar I'd like to access High, Low, Open and Closing Price. If one of you guys has an idea where...
[Deleted]
  Help with code  (12   1 2)
Hi all I have been trying to solve a problem I have on a code, without the results I want. The code is (only part of the code): if (Ordem==OP_SELL) { Ordem1 = 0; Ordem2 = 0; while (Ordem1<=0) {...
[Deleted]
I'm new to coding EAs and have a question regarding the best (as in easiest and most robust) way to manage orders. My strategy will open up either 2 or 4 different orders with: a) 1/2 set with a TP (set with the order and held on the broker's server) b) the other 1/2 set for other exit criteria as...
[Deleted]
  image test  (2)
[Deleted]
Hi everybody, I'm currently working on an EA that use bollinger Bands and would like this EA to only take one trade per day. In other words, If a position is close on a day T1, I do not want the EA to open a new position (Short or Long). I tried using the following "function": int TotalOrder =...
When I close MT4 and start it up again, I have to go into the tools menu and check all of the tools that I want to have on the screen. What could be causing this
[Deleted]
It would be awesome if there was an indicator that you could have a gif floating at a particular point in the background that was stationary to spice up boring charts.
[Deleted]
Hi, I'd like to code the Adam Theory by Sloman and Wilders, but I don't know how to code mql4 or mql5, I'd like to find some coders that I can explain the theory to and they'll code it out, the theory is using velocity and inversion symmetry to show the future price structure for a given time range...
int ArrayResize( object&array[], int new_size)  can Sets a new size forthe first dimension.  but if   the array[4][][3]  i want tochange the size of second dimesion of it. how to do that ? thank you.
  Found the talent  (312   1 2 3 4 5 ... 31 32)
Greetings, trendsetters. In fact, I think there are quite a few contenders. So in this thread in the future we will post the results of Mr. sever30 . I leave the terms of use, so that it was clear what it is about. I propose a small contest. I am looking for traders who work in forex (currency
i got the "error 1" on ordermodify function. i searched the error code, it means that no error but my ea still showing this error. how to fix it? please help.
My history data shows the last closed position below the table while all the previous were above it.Total=OrdersHistoryTotal()"for(int i=0;i =0;i--) "Please which of this will select the last close order if the table is as aboveor can someone explain how the history table...
[Deleted]
Hi all, How can I stop https://www.mql5.com/en/code/8126 this report expert to flood? I mean everytime I refresh the html file, page goes long and long.. Any idea how to stop it ?
[Deleted]
the pic is a trade from last nite.a pending order I put in. green line was my sell entry,red line a 20 pip stop.look at the history - got filled at 11:42 gmt at 0.98384 (candle under red line) stopped out at 12:00 gmt at 0.98541 on the next candletrade lasted 13 minutes...