Download MetaTrader 5

MQL4 and MetaTrader 4 - page 438

To post a new topic, please log in or register
  mothlymedian,weeklymedian (14   1 2)
Hi can somebody tell me how to find the mothly as well as weekly previous median in mql4? Thanks
  -1.#IND error (12   1 2)
there is this custom indicator whenever i call it it gets the following value -1.#IND. I checked the corresponding value by cntrl+D there in the data window the value seems to be fine and the indicator is coming out just fine in the indicator window. the indicator has 3 buffers, 0,1&2. while...
. Hi to all! :) I've got an EA that works with pending orders. While the pair is going down the EA put some pending (buy) orders in the medium-term resistances created... then, when the pair goes up those pending (buy) orders are open when the price reach each order! And it does the inverse for the...
//List is defines as list of double values//I store the data -> I checked //A and B are just simplification and in my code they are names of constants for beter readability of codeeventList[A][B] = VAR1; //VAR1 = 4.0//than I check valueif(eventList[A][B] > 0.0){ //TRUE}else { //FALSE} //Problem...
Hello, i would like to know if there maybe exists any open source EA, which read signlas (strings) from web (html page) and then automaticly make orders from html string. Duke
Hi, I want to apply ALFA.mql EA on GBPUSD M1 chart, BRAVO.mql EA on GBPUSD M30 chart, and no EA on the GBPUSD M5, M15, etc... Can anyone explain me how can I do that? TIA !
Hi all, I've only been coding for a week but have found my way around most things i want to do so far. However this one particular seemingly simple task is causing me no end of grief. i have searched this site and web and found various different solutions all of which i have attempted to make work....
Hi, I have created an indicator that generates trading signal and write them on an .CSV file. Now i'm trying to code the indicator to send that file over FTP to my server. I know that the function SendFTP can't be called from custom indicators, so my question is... There is a way to convert my...
Hello I have noticed something it is weird to me. I made an EA and attached to the chart and run as good as i want, but when i change the timeframe to an other on the same chart, the EA start up its functions again. I know when the EA removed from chart, EA calls Deinit() function, but in this case...
Hi all, hoping for some input on this from your experience or viewpoint. After a getting results from a parameter sweep, how do you analyse the data to find 'patches' of good results. I mean, if you have a good set, but change one parameter slightly and suddenly the results are bad, I think it's...
Hi, i need to find the index of an open order relative to the open of any other candle afterwards and then displaying it in metatrader using comment. I have tried using orderselect and iBarshift and have only been successful using print but cannot get comment to display the results, please any help...
I need to download historical data on technical indicator values per candle. Is there an existing MT4 script on this forum that I could use as a template?
I want to create a script that will write the value of a technical indicator to an array or buffer for every candle in a chart. I saw the function ArrayCopySeries but that appears to only apply to open/high/low/close and not to things such as the macd or moving average. Is there a similar function...
Lets say at 1pm a moving averages hits 1.500 then at 2pm it hits 1.600 then for the rest of the day it goes back to 1.500. is there anyway i can store that the info had once reached 1.600? The strategy im using consists of three different events happening but not necessarily at the same time. I just...
I am trying to generate a 2D array of high, low, open, close prices and I am totally lost as to how to fill the array. double   PriceArray[1000][4];int init()  {   {   for(int i=1;i<1000;i++)   PriceArray[i][0] = iHigh(NULL,240,i);   PriceArray[i][1] = iLow(NULL,240,i);   PriceArray[i][2] =...
Hello Folks, I want to import live ticks from an external datasource to Mt4. I have my own live generated data (Math experiment) and want to analyze them live in Mt4 with some indicators. Is there any way to do this? I can write my data in any possible format over c# but how can I import in MT4?...
Hi guys, What do you consider to be the best and most important ingredients in your own system? Yes, I have used the search function. But most topics are to specific. I would like to know, what RaptorUK and the other sophisticated traders have in common. I am talking about fundamental beliefs....
I have downloaded 5yrs history of EURUSD pair in M1 chart with the help of FXCM technical resources. When I build Renko chart for EURUSD in M2 time frame with data feed for M1 I get renko charts only till April 2013. Pl. let me know how to go about building renko charts till jan 2012. Also pl....
i m trading on a pamm with a robot that i programmed, the strategy is very simply, i dont want that the customers of the pamm copy or understand the strategy so i want to confuse them, there is a method to do that? can we send fake orders to the broker in order to confuse?
Hello, Is there a manual to program a Multi-Timeframe strategy or indicator on your websites or documentation or forum? Thank you for your help. Martin
Hello, I'm trying to code a EA thatallows to open buy and sell orders simultaneously, but only one order per type.(open only one BUY order, and open only one SELL order). Could somebody pleaseexplain me how I can do this? At the moment I am using if(OrdersTotal()<1)to block the EA form opening the...
Hi on some indicators like when you backtest them the results are not the same on the chart as when you compare the same indicator on a live chart the same time period. Meaning that crosses are different etc (depending on the indicator style). This means that the indicator is not working correctly,...
Hello, could someone explain why this string works fine in demo but in real it returns always value " 0 " MA1 = iMA("GBPUSD", PERIOD_M15, MA_Period1, MA_Shift1,MA_Method1, 0, 1); ("GBPUSD" is just for example) I notice that this string works only if I use NULL in place of "GBPUSD". I need to set...
I reinstalled MT4 and I ran the programme. It asked me if I would like to turn on one-click trading. I should've pressed Cancel but I instead pressed Accept. I wanted to close an order today and I normally did this by right clicking the order in the Terminal and then pressing the long yellow button....
I have a Visual Stuido solution that consists of a C++ dll that references a C# dll (this C# dll also references another C# dll) with my application. My goal is to have this C++ dll accessed by MT4 I followed this as my basic model: http://www.codeguru.com/csharp/...
Does anyone know the easiest way to read and write on an external database ms access?
Good Day... I just want to know how many candles does the chart hold per period. Thanks.
dear guy How i get fibo price without draw fibo object. example if i draw fibo line as High : 1.38163, Low : 1.37987 Now i want to get level 61.8 price. how i get this level price.
  Fibonacci EA (2)
I'm new to MLQ4 and I'd like to know how to create an EA using the Fibonacci levels or object. Anyone? Please help! Thanks!
I have written some code that is supposed to stop the same signals coming through multiple times, but it does not seem to work. Can anybody see any errors in the code? BuySignal = false; datetime BuyTime = iTime(NULL,0,0); if (BuyTime != PrevBuyTime)BuySignal = true; Print("BuySignal is ",...