MQL4 and MetaTrader 4 - page 253

To post a new topic, please log in or register
Hi Guys, I am a Computer Science student heading towards my masters, and very interested in Forex. Basically, I offer to create a free Expert Advisor for whoever needs one. I just finished my own first Expert Advisor, it gave me a return of 100% over 2007-2008, but performs less good @ the years...
Hello guys, please excuse my poor english. Im trying to do an indicator with fractals but i have some problems when i try to get the previous values. Until now what i did was to connect trend lines between the most recent fractal and the previous fractal, when the trend line break it will plot an...
I found an EA form the internet but it only use for demo trainding account :( Can somebody help to fix it to use for real trading account    Thank you very much  
help me.the text when i change time frame or window is missing to the screen how i can fixing it?thanks
Hi ! I have the following problem: I would like to start a script out of an indi. If i doubleclick the script in the navigator it funktions perfect. I want to start the script from the indie by if ( id == CHARTEVENT_OBJECT_CLICK && ........)  { "script should be executed at this point once" } but I...
Hi If i place a trade using the "New Order" button, I noticed there was no slippage options when i modified the trade and manually added a take profit amount. I usually place trades through orderSend and never really used the button. Is there an automatic slippage? Cheers
Salut folks, I have my own EA created and managed to use the ExportCSV command to output the data when my EA triggers an alert however I am uncertain of how to do the following: 1. Add to the file instead of replace the file each time? I.e 1st output in row 1 then second time output comes n periods...
Hi there,   I asked a question on here before that seems to have disappeared as it's no longer under my name when I search by it for questions I've asked. I asked why I got an error when sending an order for .01 lots. It related to the MINISIZE of my broker. I had confirmed with my broker that they...
Hello, I am a newbee in metatrader and mql4 language, I found this library which is exactly what I need (Multicurrency OnTick (string symbol) event handler - expert for MetaTrader 5): https://www.mql5.com/en/code/280 But It needs MetaTrader 5, my broker version is (TradeMasterFX Meta, Version: 4.00...
I need an example of how to set expiration time in a pending order. In this example, the expiration time is 0. I need example of pending order "Goodfor the Day Only". ticket=OrderSend(Symbol(),OP_BUYLIMIT,1,1.3104,3,Ask-25*Point,Ask+25*Point,"My order #2",16384,0,Green); Thanks, Wackena
Hello guys, How can I export the charts of AUD / JPY to Excel by intervals? And is there a way to export data from the MT4 trading details and MACD for specific time per day over the entire graph in a simple way (perhaps programming?) Without having to go every day for it? Thank you, Ran
I'm trying to find a way to specify how the last order was closed. I have used the OrdersHistoryTotal() then OrderSelect(index, SELECT_BY_POS , MODE_HISTORY) and finally OrderType() but this simply refers to the ENUM for OP_BUY, OP_SELL etc. Is there anyway to specifically find out if an order...
Hi, ii have recently downloaded MQL4 and think its fantastically flexible compared to other broker applications. However I'm stuck with pending order. On other appliications i can set up pending orders outside of market horus but on MQL4 it just says 'Market Closed' and 'Please verify operation...
Good morning, I wrote this function to close open orders of specific symbol but, when testing, it seems not working properly. Could you give it a look and tell me if is there something wrong? Thank you very much void CloseAllSymb()  {   for(int i=OrdersTotal()-1; i>=0; i--)     {      double...
Hello I'm wondering what to look for in a PC in order to have faster backtesting  (tick data backtesting on M1 with own tickdata & 99% quality ) && if there are any tips / tricks to know to accelerate.  I'm  currently using a intel core i7-4700HQ CPU@2.40GHz, 64bits & 16G RAM but it is too slow for...
  MT4 UI size (1)
Could anyone tell me how to enlarge the ui size in mt4?  the default is way too small.  Thank you !
I am having a problem, the chart is unable to scroll to the latest bar of the right side of the chart, it was okay previously but the error appear afterward, it happen between time frames. How do I get this fix? Thanks
Hello guys, I got puzzle for you that can't solve. A last several orders were requoted by my broker. Their explanation is that my orders come with old prices, thats why slippage does not work and order is requoted. I'm checking every 1 ms the broker quotes with Refreshrate() and MarketInfo, send the...
Does any one upload MT4 statement use FTP with MT4 publisher in Godaddy succeeds? when I use this features it is always show STOR command failed. thank you!   
Hi all,  Anyone can help create EA for me? I provide the strategy and payment in reasonable.  Regards, Kent 
Hi, I have an EA attached to several pair. The problem is it always disturb each other (closing pending order). The code  for closing is custom function as below; void CloseLimit() {   bool CloseOrder;   int CloseError;   bool DeleteOrder;   int DeleteError;      for (int i = OrdersTotal() - 1; i >=...
they might have sped it up x 100 but it sounds pretty close. https://www.youtube.com/watch?v=LQfzvQFTtEw
Hello i'm looking to run a BAT file from a script (and upon successful testing ultimately from an EA). I've looked at https://www.mql5.com/en/forum/139191 which i found very helpful but... #property strict#import "shell32.dll"int ShellExecuteA(int hwnd,string Operation,string File,string Parameters...
Has anyone experienced this before? Why does this happen?
Hi, I hope someone can help me, I could use an indicator that signaled me on a graph in part, the formation of a pattern on its currency pair. To better understand, I need an indicator that behaves as shown in the picture.
Hello all, I have reciently noticed that my FXCM accounts behave bizarre regarding the spread. In the market watch window of my demo account I see very small spreads 1.18020-1.18021 in EURUSD now. The MarketInfo(Symbol(),MODE_SPREAD) command returns a spread congruent with the market watch window,...
i have the following simple code for an OnTimer() function:     void OnTimer()  {   int bla=FileOpen("last.txt",FILE_READ|FILE_CSV," ");   if(bla==INVALID_HANDLE)     {      Alert("Problem reading file");     }   else     {      Alert("last.txt?, Got it!   ",TimeToString(time_stamp)," and  "...
  Rates function problem (14   1 2)
Hi All, I am baffled by the issue below. Very simple code asking for the high & low of the first bar on a chart of specified timeframe. extern ENUM_TIMEFRAMES tf = PERIOD_D1;                void OnStart(){RefreshRates();MqlRates rates[];ArrayCopyRates(rates,NULL,tf);Print(tf,"   ",rates[0].high,"...
Hi,   I am a fairly experienced coder and I have sort of gotten stuck on this one.  I have a lot of text to put on a chart and I am using multiple labels. My client has asked for it to be translated into Chinese at some point. The client will be paying for a professional translation but he wants me...