MQL4 and MetaTrader 4 - page 48

To post a new topic, please log in or register
Hello!  Where should I put an .hst file. I have a GBPUSD 1M file thats about 500mb. I put it in the history folder but nothing happens when I load up MT4. What am I doing wrong?
Hi, I am new to forex. i have tried to open a new order on my MT4 desktop version and i noticed that the New Order button is not active. Also i couldnt locate other trading symbols like XAUUSD in the lost of symbols both in the desktop and android version. please i need assistance
double a=iBands(NULL, 0,20,2,0,MODE_LOW,1,1)double b=iBands(NULL, 0,20,2,0,MODE_LOW,1,2) if (iClose(NULL, 0,1)>a&&iClose(NULL, 0,2)<b)
I have two questions: 1. Is it possible to programmatically control allowing trades? 2. In strategy tester, is it possible to select exact starting time of testing? Thanks.
Hi friends, Hope you're doing great, Today I faced with a very special issue regarding the Account History of the MT4. I've written an EA and now I'm testing its operation on a demo account on real time. Within my EA code, I've written a procedure to save the details of the order with the info I...
I want to ask you the proper way to get a object (in example a Button) repositionate after changing the size of the chart. Thanks
Hello! I wrote an Indicator which works just fine. It has 5 Buffers in total, which are all working fine (i checked in the data-window when applied to a chart and they contain values where they should). Now i created an EA wich reads this indicators buffers. I can read the first 3 Buffers...
Hi All,  Does anyone know how can I export Contract specifications (the one under CTRL + M shortcut) to Excel/.csv or where can i find it in MT4 files? It would be great if there is possibility to download them in a bulk. The most important for me is to get all swap values. Thanks in advance Failaps
I want to ask you if it is possible to close all open orders and to delete all pending orders within a unique call to a method. Without the need to iterate over Orders MODE_TRADES. Thanks!
Hi, can someone please advise an EA for GBP USD that would wait for the 1 hour candle to close at 3 am EST, that calculates the high and low of the previous 1 hour candle and then set two pending orders; a buy stop 10 pips above this 2 am EST candle high price and a sell stop 10 pips below...
Hi, sorry if this trivial question have been already answer somewhere in the forum, but I've been unable to find it. Does anyone know how to sort the Market Watch table by Symbol name column?   Thank you very much, Best regards Stefano 
  Trend Quality indicator(s) (131   1 2 3 4 5 ... 13 14)
These indicators are all based on a 2004 April issue of Technical Analysis of Stocks & Commodities article by David Sepiashvili. Originally there were only 2 versions developed by the author, but there were some possibilities that were not explored in that article which lead to developing some more...
Hello Guys,  I recently changed the broker and started using the MT4 platform. It's amazing how much is possible with it. But frankly I'm also a bit overwhelmed and searching for something specific is not that easy. So I'd like to ask you for help. Does anyone happen to know if there is an...
Hi all, I have a copy/paste script that can copy trendlines, vertical lines and horizontal lines that I draw on my charts. The ideea to do this is to be able to draw them on naked charts and then copy paste them on the same charts after I apply templates.  The problem is that this copy/paste script...
  Slippage and stop losses (15   1 2)
For the purpose of reducing the exposure to slippage, is there any difference between using regular stop losses embedded in open orders or using OrderClose() function at the relevant price level? Which method would you advise? Thanks.
Hello  I make an image by WindowScreenShot and I want to copy this image to clipboard and paste in other programs (like telegram desktop or paint) I saw very good code for CopyTextToClipboard in this link : https://www.mql5.com/en/forum/153674#comment_5020915 I'm trying to use copyImageToClipboard...
  Need help to finish my EA (12   1 2)
I've created an EA which is supposed to open trades base on RSI values and should work on 15min time frame. But it doesn't recognize the 3AM candle on everyday so doesn't open any trade. I appreciate if someone kindly debug this code for me. If the RSI is above 50 at 3:00AM ET (15Min. candle close),...
I use an EA to partially close positions but in the account history those orders result as a deposit instead of profits as you can see in the picture. it's pretty annoying because the detailed statement will be wrong. how can i solve this?
Hi friends I read the documentation about StopLevel and FreezeLevel, but for being confident about where to check StopLevel and FreezeLevel I decided to ask it from experts. I want to know whether I should use both -StopLevel and FreezeLevel- for all the following trade operations: OrderSend,...
APeng
Questions about that were asked quiet oftenly and I read all answers and some article fitting to that topic - and I still cannot solve that simple problem :/ PLEASE HELP ME! I want to draw a trendline using ObjectCreate("Trendline",OBJ_TREND,0,Price1,Time1,Price2,Time2); I want Price1, Time1 to...
Seit langem wieder wollte ich jetzt ein Signal kopieren. Wollte ich, geht aber nicht ..... Und zwar fehlt bei mir das Register "Signals". Hatte das schon mal jemand? Was kann ich da machen? Account habe ich bei Activtrades.
Hello everyone! I have developed an indicator to draw RSI sensitivity (for the sake experiment). What I want it to draw, is two lines which gives RSI sensitivity each for a bearish and bullish candle. But it draws nothing. Can anyone help me to find where I took the wrong turn? The code is attached....
Hi, I am starting to write my first EA which looks at the crosser over of the moving averages and stochastic main/signal lines. The issue I'm having is that it will only take the trade if the crossover of both the MA's and stoch occur on the same candle. I want it to be able to recognize if both...
Could someone please edit this indicator to display in a different corner and change the text size ? 
I have recently done a strategy tester that backtested perfectly fine last week. I have been tweaking my program, and I went to back test again. when I did, I realized the results were way off. Upon closer inspection, it was as if the chart was not being utilized at all. The Strategy Tester is...
  Leverage for each symbol (34   1 2 3 4)
I know it isn't a new problem but with new ESMA rules (about leverages) it became "interesting" for me. Generally now we have a different leverage for each symbol. But I know only the function AccountLeverage() (or with the same result AccountInfoInteger(ACCOUNT_LEVERAGE) ) that provides something...
Dear all, For me to able to monitor the market, I want to have many charts open. I noticed when opening the charts, that the Terminal limits the amount of charts to a max of 128. Of course I just copied/programmed the way the charts should look (indicators...) in the profiles section of MetaTrader...
Hello forum! I was wondering if anyone knows a way to share account growth information with investors without showing trades, balance, etc. Basically a way to only show the growth percentage of an account to a third party. Thanks in advance for your input!
Is it? Anyone tried both and care to tell me is the Linux hassle worth it for stability or anything else?
Hi i'd like to limit the use of an indicator so it cannot be used in EAs but i'm not sure if it is possible thanks for help Jeff