Download MetaTrader 5

MQL4 and MetaTrader 4 - page 209

To post a new topic, please log in or register
I made sure to put the Max bars at 99999999, tested and nothing. Made sure the chart was able to go back on my selected time frame. Make sure the EA was set to the correct time frame too. Then I went to History Center and downloaded everything for EUR USD, restarted PC and still nothing. Reset the...
Hey guys, I need some help please. I send a buy stop, when price hits the buy stop it opens a buy order. When this happens I would like my EA to send a corresponding sell stop when price enters the buy stop. Now; this for loop works most of the time, however, there are a few occasions it does not....
I am not being lazy here, I have done several searches on this. I have posted another thread Fibo Mania trying to resolve this issue. I need to get the prices on the fibo lines. Now there have only been a handful of people working with code or putting code on this forum that covers fibo. So the...
At first, thanks for reading. Is there a possibility to insert for instance tabs into the code by the "replace all" edit-window?  Maybe the string "ObjectSetText" bei tab and "ObjectSetText"? In other programming environments you can use "\t" or others for referencing. I tried several possibilities,...
Dear sir, i had read the documentation for mql4 , But i am not able to understand so i request you to answer for the following Please explain for following as simple as possible with an full solved small example with documentation , which will help not only me but all the others who will need such...
Hello: I am recently trying to text some EAs on MT4 platforms from brokers like OANDA, HOTFOREX, or the same MT4, download from metatrader4.com. After plugging the EAs on the chart they do nothing (the face is smiling, and everything appears to be fine but they don`t trade at all). I had thought...
I maintain several separate installations of MT4 on the one machine (one for development, one for testing, one for trading etc). I have just tried to install a new instance using the latest MT4 setup file. It doesn't prompt for the installation program group and simply produces the default...
Hi All,   I can not go before the 20 April 2015. How can i go? Thanks.    
Hey coders, I program an expert advisor and there is one part which should only be executed one time a day after 11:00 am. I do it this way but there is something missing: if (TimeHour(iTime(NULL, PERIOD_M1, 0))==11 && TimeHour(iTime(NULL, PERIOD_M1, 1))==10) {...............}  But the problem here...
After I used the script "CSV2FXT" on Eareview, the 2 issues below found and who knows how to fix? 1. I downloaded EurUsd.csv from dukascopy.com.     I opened M1 chart and convert the EurUsd.csv successfully, then H1 chart also successfully.      However after testing, the quality is always "n/a"....
I know... has too much here but i can't find something that I looking for... if someone could help me.... I have a EA that will send Order to the market calculating SL size getting price base on HLINE using a Risk % extern bouble.... but i'm have problem.... sometimes SL its too big exceding risk %...
Hello all I have been searching the net for videos on how to test my system but I cant come up with anything showing how to do it. Do I have to write a EA to back test, I realize this may be silly question for some but I am lost. Im just looking to get pointed in the right direction I am lost....
Hey guys, Can anyone help with a for loop to close all pending order if and only if there are currently no open orders? Below is an attempt which I believe is pretty incorrect: bool DeletePending=false;  for(int z=OrdersTotal()-1; z>=0; z--)   {    if(OrderSelect(z,SELECT_BY_POS,MODE_TRADES))...
Please help on this! eg: if USD major news is on 10:00am i must get true/false feed for my EA. so that i can tune my ea according to news time! currently i added parameter as NESOn=true/false, i check manually from news website and when USD news on 10:00am i change parameters manually as true/false....
Is it possible for the developer to run promotions in the market?  Like can the seller generate coupon codes with expiration dates and maybe even have certain # max of users that can use the coupon?  Can more than 1 coupon be generated and tracked?  And on the order form, is there a way for the...
There are several posts regarding the continuous reloading of custom indicator in EA and none of them actually solves anything. MT4 has a bug in opening of custom indicator, and i cannot find the trigger. Sometimes it is working fine, and sometimes it keeps reloading, without executing any code...
please can any one help me out i have been trying to draw lines in an array that is in a sequence of 10pips to 5000pips above the array and a sequence of 10pips to 5000pips below the array this how far have gone : #property indicator_chart_window input int     Step = 10; double YesterdayHigh; double...
Hi!! Picture below is "Tick Chart MA.mq4" (attached). Add SAR indicator (Ask & Bid) would be really cool!! Ideas?! This help us to built HFTs.  
Hi,   In the MT4 mobile app, the pairs AUDCAD, AUDUSD and EURCAD are grayed out. I can view the charts but I cannot trade.   Anyone know what the problem might be? 
Hi everyone,  My data provider recently had a conflict with the CME about usdx data feed so I tried to be smart and quickly merge two pieces of mql4 code together to make up for the lack of data.  Basically the code does:   1) calculate the USD Dollar Index values  2) draw custom candles in the main...
Is there a way to reload the my Profile after a couple minutes automatically?... lets say my EAs are trading on my Profile, is there a EA that i would load on to random chart and it will reload my Profile that im currently using after some amount of time based on timer?,   thank you! 
Hi all,  I have doubts whether this code is correct.   The code is to export data in real time. I had still not successful because I think that the code is not correct. But still I could not fix. Can anyone explain why the code is not correct?   #property copyright #property link      #property...
Hi quys, is some restriction for display number functions which are sorted in MetaEditor?  My code mq4 files  have about 110 functions and the last function not displayed in list functions.  Have you ever encountered this problem? Thank you. 
  1)  Try to add CCI indicator to chart from Custom indicator MT4. the OK , Cancel and reset is not work. 2)Issue open new window chart.  error:C:\Program Files (x86)\FxUnited Client Terminal\profiles\Default\chart5.chr was not found.    
long volume[];double candlesize[];for(int z=5; z>=0; z--){     volume[z] = iVolume(Symbol(), Period(), z);      if(Close[z]>Open[z])   candlesize[z] = ((Close[z]-Open[z])*100000);      if(Close[z]<Open[z])   candlesize[z] = ((Open[z]-Close[z])*100000);} Wrote this to caclutate out the candlesize in...
hello,   i want to load webpage on chart window  using script or expert  i hope i find helping here   thanks
Hello All, I have a brief inquiry about backtesting in MetaTrader 4. I am in Australia so my account is obviously in AUD. When I backtest I suspect that the platform converts the currency from my account  to the currency I require for a trade based on today's rate. This can be problematic if you...
Hey guys, Is there any simple way to save the open time of an order after the OrderSend() function. Something like... //global datetime buyordertime;Start()int BuyOrder=OrderSend(Symbol(),OP_BUY,LotSize,Ask,3,StopLoss,TakeProfit,"buy order",MagicNumber,0,clrBlue);buyordertime=OrderOpenTime();  Or do...
I receive this error ---- Tester: cannot change tested template-----  when I am trying to put my template in the program. In your new update it prevents the templates to be inserted on strategy tester. When we are doing development we put templates to find out if the system is working according to...
Hello, does anybody know how to take an order fill as a signal for placing a new limit order? Maybe by checking for changes in AccountMargin or the difference from OrderOpeningTime and now. Is there an easier way? Thanks for support.