MQL4 and MetaTrader 4 - page 731

To post a new topic, please log in or register
I'm trying to write a custom indicator to send me an email when a certain pattern paints on my charts. I'm calling sendMail() from start(), but it isn't firing every time. I had the indicator running on 15 charts with 5 other indicators so I thought that might be the problem. I removed all...
Hi there, i want to ask simple question, i've been searching through this error for quite a long time my code is if(iBands(NULL,0,20,2,0,PRICE_CLOSE,MODE_UPPER,0)<=Close[0]) // hit upper bollinger or pass         {            ticket=OrderSend(Symbol(),OP_SELL,0.1,Bid,3,0,0,"Open Sell");...
on eurusd.#property copyright "Copyright © 2009, MetaQuotes Software Corp."#property link      "http://www.metaquotes.net"#define MAGICMA  20050610double cutlevel=10, totalprofit=0, volume=0.1;int CalculateCurrentOrders(string symbol)  {   int buys=0,sells=0;//----   for(int...
I have a couple of small commercial EAs that will add or overrides some settings in another EA on a chart. Some of them such as a 2 stage TSL that I have can select numerous different pairs to act upon when attached to just one chart. I want to make some EAs that utilize this technique, but I don't...
St.Trader
  Tickdata (1)
Hi, I have a file .txt with tickdata of DAX30, the datas are drawing like this. I can´t it import (in data history center(F2)) to MT4. If somebody can help me to make with this tickdata a 1 min chart that would be fine. thank you 01/03/2011,09:02:57,6973.3901/03/2011,09:02:58,6973.5401/03/2011,09...
Hi there, i am fairly new to writing EAs, so i wanted to start of small and let the EA grow over the time. At the moment i am stuck with exporting values from the ZigZag2_R_ indicator to my EA. As stated on the page of the indicator ( https://www.mql5.com/en/code/7762 ) you can read out the peaks...
Hi, I'm new to mql4 and I need some help: is possible convert pixel coordinates to time/price coordinates? I'll do code for get mouse pointer coordinate at left mouse click, now, I'll want use that pixel coordinates to "select" a bar on my chart, but bars are only selected by time or index and I...
Hi, I need a custom indicator that, in a separate window, write atr and moving average calculate on it and same thing for bandwidth. I have made the code in mql4 and I have using the IMAONARRAY for calculate the MA, but the indicator don' t work..can anyone help me??? Thanks
Say you have 10 buffers: buf1[i] =icustom(0,0,"someIndicator",10,0,i); buf2[i] =icustom(0,0,"someIndicator",20,0,i); buf3[i] =icustom(0,0,"someIndicator",30,0,i); ... buf10[i] =icustom(0,0,"someIndicator",100,0,i); So it's the same custom indicator, but only its window length is changing from 10...
I need to update mt4 with additional fonts, because i run an advisor that outputs an error written with characters that i don't understant. Like this Ñîâåòíèê áóäåò çàïóùåí ñëåäóþùèì
I am busy back testing an EA and keep on getting an "error 138 - Requote" although I have never before had this problem in back testing or in live usage since I always build in a healthy slippage in all my OrderSend() commands. I have changed the Price from the one in the OrderSend command line as...
can some one add tgts & sl basis ATR (x) of 5min/15min/H1/H4/D1 (y) in the bollinger band stop logic. i.e. once the bollinger band stop reverses direction the tgt and sl is calculated on the close of the candle. there should be an option of width of the lines getting generated along with the type i...
  Need help! (5)
////this is only use in instaforex, because its spreed is 0/////// extern int takeprofit=0;extern int stoplost=5;extern double initiallot=1.0;extern int magic.number=19802;extern int trailpoint=10;extern int averagelot=15;double buylot;double totallost;int barcount;int init()  {...
Hello, What would be the command for this : If EUR/USD 4-8H Candle close = LOW... and if GBP/USD 4-8H Candle close = LOW then sell EUR/USD Thats mean if the EUR/USD Last candle was LOW and the same with GBP/USD --> sell EUR/USD .. *4-8H = this mean the candle from 4 till 8 AM (one candle) Thanks
New article Custom Graphical Controls. Part 2. Control Library is published at mql5.com: The second article of the "Custom Graphical Controls" series introduces a control library for handling the main problems arising in interaction between a program (Expert Advisor, script, indicator) and a user....
Hi I have been trying to figure if this can be done. For example if the current candle close[0] had and RSI value of say 39.000, is it possible to work out how much the RSI value would be if the close[0] fell by 10pips? I have tried experimenting with little success: double r =...
All i want to do is change on terminal mt4 to my local time ( gmt+7) is there any script or tips, trik to accommodate it. Because it much easier working with local time. the time on terminal is connected and synchronize with broker server Thanks All
I am currently using the Oanda and an expert advisor.(EA) To test the EA I need the historical trading information. The EA tester has only from November 2011. I need to have at least one year of historical data to test the EA. Can anyone help by showing me how I can obtain that?
Dear members, I used ADX(14) on USDCAD, daily in MT4 for Forex.com and Alpari UK. Their time difference is only 1 hour. I noticed, by coincidence, the daily ADX numbers differ so significantly between them by more than 20%. If you use ADX(14) just like me, who would you choose? Thank you.
Hi, Can you help solve this issue: Suppose that exist a signal to close ALL open market orders in terminal. EA must close all orders in following order: first close order with biggest LOSS, last order with biggest PROFIT? Thank you.
Hi Pros, Suppose in my EA, I set a global variable's initial value as 1, and after some condition happens it changes to 2. Now I shut down my computer and then restart my computer and start the mt4 platform. Would the global variable be 1 or 2? Thanks a lot!
  lookback limits in init? (17   1 2)
Dear friends, first time here, due to a "strange case". Simple testing EA: //+------------------------------------------------------------------+//| expert initialization function                                   |//+------------------------------------------------------------------+int...
Good day to everyone! I'm looking URGENTLY for someone who can write me a simple EA with 6-digit number. Terms: 1) Conducting the buy-sell mode automatically 2) Moving Average (5,10) 3) No need SL, TP and others That's all. The problem that I'm experiencing now is I have a EA( written by myself)...
Hi everyone, I would just like to introduce a new trading tool for Manual Traders. It was developed by myself and has just become available to the public now.. Here is the url... http://www.tradingsoftwaresolutions.com/ Thanks for looking.
  MT4 to Excel (3)
I know how to get MT4 to write data to excel. Is there code that you can write to excel from MT4 so the excel will create a graph on the data. For instance I have evaluated 10 days so I write 1,2,3,...10. and I have the close price for these days 1.5555,1.5344,....... and I want to chart a table...
Hi everyone, I was wondering if there is a way of trading one account but it opening trades on multiple accounts?? Or even better being able to trade from one account, but the trades opening automatically on others and taking a small profit from winning trades. Any help would be appreciated thanks...
Hello Everybody, i wanna use a http post that returns a string (JSON) ... what do i have to do if the returned string is larger than 256 chars? Thanks for any advice!
Hi im looking for an indicator that will automatically plot the floor trader pivots for the new trading day. thanks
Hi, I tried to modify the stochastic codes to display rising and falling color for %D, but I did not get the required result. Attached is my codes. Can someone please help to advise what was wrong with the codes? Many thanks....
If I want to get information about last knowing and really executed trade (for example S&P emini) in the current bar. Is "Close[0]" the right way? If i use Bid+Ask/2 i could get the average price. But will "Close[0]" work when I simulate and doing tests? In simulation mode I am afraid of getting the...