MQL4 and MetaTrader 4 - page 583

To post a new topic, please log in or register
Hi  i ve got the following code of a custom indicator. What s doing is plotting the Close of the current bar timeframe as an indicator on a separate window for the first 180 bars only. The problem is that for some reason - cant figure out - there is an image of the buffer after a while like the...
Hi,   I am biginer and need help about my current open deal position, Now i have open 6 deal, 3 deal is BUY side and 3 deal is SELL side againest. All are   EUR/USD and USD/EUR. I have invest 100$ only, now I got -230$ Open P/L balance and achieve Total balance 250$ in between my equity is very less...
Dear all,  I have actively started to develop an EA to complement my discretionary trading. While all the great resources provided by MetaQuotes and this great community of traders have aided me greatly, I have come to a challenge I could not overcome.  The backtesting of my EA provides solid...
I start learning code MQl4. please help me . How to use OrderSend for BUY, set it... thanks a lot
I would like to increase the thickness of the Boliner Band lines, aswell as the MACD lines, how can I do It ??? Please help.
hi there, im zero bout EA and coding, im tired to trading manually..my friends advise me to learn bout reprogramming code...so i also dont know were suppose i start with..can u guys help me..
I'm new to this and I can't figure out why a specific hour is being checked more than one time. I added this: if (TimeHour(Time[2]) == 15 && TimeMinute(Time[2]) == 45) Print("Test!"); I set the period to "M15" and the "Test!" statement is printed more than one time. Why is this happening?
so, I place the MA on the 1H. I put 8 for period and 2 for shift. what  exactly does it do?    
Hi, I'm working on this indicator, no line, no object, it just draws some HISTOGRAMs. But when I modify the code then re-compile, the histograms disappear. With "data window" I can see data is OK, but just doesn't show on chart. So I have to delete this indicator from chart and drag&drop again, to...
I knew how to create object trendline,vertical or horizontal line using price and time, but how can I do it using coordinates? I want to draw trendline using 2 coordinate. thank you
Hi, I have an indicator that draws the Highest High and Lowest Low levels of the predetermined times.  It draws trendlines and give names bs and ss... But it adds the number of days to them like 0,1,2,3... It takes the data from  extern int day_number = 3; The lines becomes  bs0,ss1 , bs1, ss1......
1/ i want to get the begin time of my localcation ,may i write code like this ? int begintime = TimeLocal() -TimeHour(TimeLocal() )*3600-60 * TimeMinute(TimeLocal() ) - TimeSeconds(TimeLocal() );2/ D'2013.02.24 00:11' refers mt4 severtime or my local time ?thanks
  Price Per pip (93   1 2 3 4 5 ... 9 10)
This is driving me nuts, I have been looking for months now for an existing algorythem that does nothing more than calculate the Price Per Pip, regardless of the pair it is on. I have found 2 really good money management strategies that are both dependent upon this value as a way to precalculate...
Hi, First I apologize if my question was ever asked in this forum and I would be very grateful if you can point me to the answer. OK, here is the question: How can I get the indicator value from other timeframe? What I want is: no matter which TF I'm in (either M15, M30, H1 or other), I want the EA...
x[i] = OrderSend(NULL,OP_BUYSTOP, lots, Ask, 0, iLow(NULL, PERIOD_M5,1), 1000,NULL,CLR_NONE);           i++;                for(j=0; j < i; j++)          OrderModify(x[j], Ask + 2*iATR(NULL,PERIOD_M5,14,NULL), Ask-2*iATR(NULL,PERIOD_M5,14,NULL),0, NULL, CLR_NONE);      I use an array to store the...
Hi All Can someone please tell me how to change the line thickness in the code of an indicator called " GMMA Short .mq4" ?  Thank you very much. fxarcher 
Can any expert help me how to get TotalProfit in PIP / Point suppose below code for getting Profit in Currency Terms how can I get this in PIP terms   double TotalCurProfit(int magic)  {      double CurrentProfit = 0;   for(int cnt = 0; cnt < OrdersTotal(); cnt++)     {       OrderSelect(cnt,...
This is the strangest thing. All my MT4 platforms are not showing the bid or the ask price correctly in the strategy tester. For example, I am drawing text or arrow price label objects to display these values under visual mode. They used to work, but now the values are way off. Can someone look into...
All , I'm stumpted here... I trying to disable further trading if its Friday 9AM (PST) 17:00 GMT from Server  Here is my code, but it doesn't seem to work... extern int        vDayOfWeek           =5;extern int        vHour                =17;extern int        vMinute              =00;string...
Dear all, I created my first script and it works fine, but I don't know how can I add a Yes/No window every time I put it in a chart, as all default MT4 scripts do now. Could please someone give me some hint? Thank you very much in advance.
datetime DayOneArray[] = {D'0000.00.00 00:00:00',D'0000.00.00 00:00:00'};  // no valid time identified on this daydatetime DayTwoArray[] = {D'0000.00.00 05:45:00',D'0000.00.00 15:00:00'};Etc.So then we have function:void DoSomethingOnDay(int day){   datetime TimeArray[]; // cannot define as pointer...
/*Exp Moving Avg*/                         EMA = iMA(NULL,0,3,0,MODE_EMA,PRICE_CLOSE,BarShift);                        Print(EMA); When im checking at the Console the EMA vaule's its always constant\not changing\ always the same number .  (double EMA; as a global) the bar shift came from...
Please help me to use OrdersTotal() function to calculate specific trade by specific magic number  OrdersTotal() function usually retrieve total numbers of trade either those are executed by different EA or manual I want to get numbers of trade executed by specific ea with specific magic number....
Hello MLQ4 Community, I try to develop an Expert that needs to open, for testing purposes, buys and sells operations at specific dates of years. This is the codes I know to open at specific hour every day; but not apply for the purposes, because not always needs to open operations during the week....
Hi, I have been trying without progress (im nothing more than a cut and paste guy) to create an indicator which does the following.   Gives the average daily range ADR for a specified period (x) days but only for the specified hours (start - end) I want to have an indicator I can place on GPBUSD...
Hi, i m trying to call iCustom of a Pivot Points custom indicator that i ve build.   This PP cusom indicator got Daily, Weekly and Monthy Pivot Lines that i m drawing on the chart using objects so i do not need to use any buffers. I use only some global double series of variables like Weekly_P,...
i was held by a strange error for more than two days. After the help of one of my friends, i found that the problem is the result of incomplete historical data. Is it possible to download the historical  data for all the symbols, and how? i am nowdevelopeing a program to scan all the tradable...
When getting a value of the last daily bar using iHigh it returns only rounded number and I need all digits for precision. double high = iHigh(NULL,PERIOD_D1,1); returns 1.329 while the high is 1.32899  I cannot use DoubleToStr as I need the value as "double" for further processing. Any idea how to...
Hi all, is there the possibility that the broker does not accept a pending order if the price indicated is too For instance, the ask price is 125.41 and I want to place a pending buystop @ 125.421, is this a valid request or not? I don't see warnings or messages in the diary and in the expersts tab...
/* Done      by    Rajandran R *//* Author of www.marketcalls.in  */_SECTION_BEGIN("SuperTrend");SetBarsRequired(100000,0);GraphXSpace = 15;SetChartOptions(0,chartShowArrows|chartShowDates);Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle |ParamStyle("Style") | GetPriceStyle() );...