MQL4 and MetaTrader 4 - page 1048

To post a new topic, please log in or register
Hello, is it possible to view 2 charts in one Window or to compare two charts with an indicator. Differenz between Gold and USDX for example. Thanks a lot if you can help. Zwongo
Each time I try to overlay the MA to MACD by dragging and dropping on the MACD it goes to the main chart. Any ideas?
Getting 138 orderclose messages only with sell orders, Any ideas why ?
  iMA problem (2)
Hi With ima crosses, why do they not work ? With one EA, it draws the ima's in the window, but in the other you can see no ima's Why is this ?
Hello, Does anyone, or has anyone, already written a scrip which calculates the highest and lowest price within a specified time range (for example between 10-11am) and give the values of those highest point?! I am new to coding and have limited coding skills. Just on the of chance.... Thanks
Is there a way we could calculate the percentage of a candle outside a bollinger band? For example, an upper bollinger band is at 1.5000 and a candle moves outside of this value to a high of 1.5020 and the low was 1.4990. Do we just calculate the height of the candle and how much of this is above...
How to display in a MessageBox the Open Price?? I use this but with no help : MessageBox(MODE_OPEN) I want to view the Price ex: 1.65656 in a message box... in MT4
As a new EA coding trainee, I use VPS to backtest few ideas I am working on. But I have this problem after testing few options, the computer will show; "YOU HAVE VERY LOW MEMORY IN DISK C". And the VPS has over 2GB memory. I guess the result of previous tests is what is causing this problem, but I...
WHAT PARAMETER CAN BE PASSED INTO FUNCTION Period() e.g is it possible to pass this parameter period(period_H1).or any other way of passing a parameter into it.
Hello, Sorry if this is a silly question but I really am confused with the time on my chart (candles) and on the Marketwatch. If it is 7:45 am in London, and 16:45 in Brisbane Australia, my clock says in MetaTrader has 8:45 .. Does anyone know where this is set.. I imagine it is the server but then...
Hi, i try this, can any one explain me what is the number 2056 mean ? what is stand for ? double array1[][6]; int copyrate = ArrayCopyRates(array1,"EURUSD", PERIOD_H1); Comment(copyrate); Result: 2056
hello, i downloaded the free alpari version of MT4 client terminal, however i can only get access to forex charts and data- is tehre a way i can get access to Ags,metals and bonds? thanks
I' developing an indicator and I'm testing it using the tester in visual mode. I'm getting different results if the ..\tester\history files are present. example: the 1st time that I run the tester (no files in the tester\history folder) the results are correct. The second run and all the following...
if you can manage someone's account starting with a low capital. let me know. reply to reall80@yahoo.com and the low capital is like a text run. The profit will be well shared
I'm trying to run an optimization to see which is the best currency pair for trading, here is what I have thus far: extern int currency = 1; if(currency ==1) { plugcu = "EURUSD"; } if(currency ==2) { plugcu = "USDJPY"; } if(currency ==3) { plugcu = "USDCHF"; } if(currency ==4) { plugcu...
I am trying to list the value of the tenkan sen but it keeps displaying 0.00000 Any ideas? //---- Tenkan Sen   i=Bars-Tenkan;   if(counted_bars>Tenkan) i=Bars-counted_bars-1;   while(i>=0)     {      high=High[i]; low=Low[i]; k=i-1+Tenkan;      while(k>=i)        {         price=High[k];...
I have found something that really looks like it works, and would like to buy it from the author. Is there any way to fake forward trades? Thanks!
I think there is a bug with getting information from multiple timeframes. For example, if I decide to print this out of the init() function of an indicator that is attached to a 1Hour chart: Print( "marketinfo: " + TimeHour(MarketInfo(Symbol(), MODE_TIME ) )); Print( "m1: " + TimeHour(iTime(Symbol()...
I am having trouble understanding how to read the Account History section of my Gallant FX demo account. I am using FAP Turbo v48. Here are my questions: 1. What does "swap" mean? 2. Though my bottom line is a positive profit I don't see the calculation. The positive and negative amounts under...
I have a code like this: if(pos_dv==true){Sleep(300000);Experts=1;GlobalVariableSet(Quantity1, Experts);} ;my intention with this code is that the expertt should wait for 60minute before assigning 1 to expert and setting globalvariableset(Quantity1,Experts;);, but the next operation is performed...
Hello, Does anybody have already coded some candlestick pattern recognition function in MT4? Mathieu
I have not completed the full book of mql4, I am learning that language to make my own system. I am new to forex but have 3 years experience in equities. My question to you guys is after reading the book of mql4 language will I be able to develop my own EA, as I am not a software professional also...
Hi dear everbody ! How to coding as bellow requirement ? 1.Everytime when the sigal comes ..... make EA just opening only one order . 2.After open an order,how to open another one when the signal comes again but not to close the first one . any coding model or sample will be highly...
  replay (1)
Hello all, is there a "replay" function in MT4? I mean,I want to test manually a system on EUR/USD pair and I want to be able to "play" the market,on historical data,bar by bar.Is there such a possibility? Thanks a lot
any one know how to do a true stop an reverse ea? ...I have been trying like below but hasn't worked: void check_entry(){/////////////////////if(ptriggerline>pbaseline)short_allowed=true; // previous(index of 2) trig line is above previous candle...
I'm looking to use the MACD indicator in my EA but strictly the divergence or railroad tracks as they are called in some areas. I am looking to only enter trades when there is momentum the trend signaled by the bars in MACD. Do these bars represent the difference between the EMA's? If so, how can I...
Gud day Sir Safin! You have a excellent indicator AIS1AI to his robot AIS2. That indicator have sorry to mutch text,label,line.. and The are not posibiliti to switch that oll with one switch on/out.I ask Sir safin make that switch! And second that robot ressive excelent and wonderfull signals but...
Suppose that i have an EA that makes incredible profits. Then dealer noticed that and wanna steal this system. Can he do it via metatrader platform?
Anyone coded this type before? Adding position till not exceeding maybe 2% risk of your capital
Hi! I'm starting with MQL4 programming and I've come across a problem. To reduce the problem, I've made a simple EA, with only 1 lines in the start() function: OrderSend (Symbol(), OP_SELL, 0.1, Bid, 3, Bid+(Point*50), Bid-(Point*50)); It should place a market order every time there is a new tick,...