Download MetaTrader 5

MQL4 and MetaTrader 4 - page 303

To post a new topic, please log in or register
Hello, I am pretty new to mql4 programming. I've made some simple EA, and while testing it (with strategy tester), some positions are opened above the current price, and some stop losses are triggered even that price never reached into that zone. Here are some pictures: Picture 1: Buy position...
Hello friends I want my EA , that I have set my magic number, if you call the same magic number is equal to the don't opening of new orders, but sometimes get lost magic number. Thanks for yours answer. for(int pos= OrdersTotal()-1; pos>=0; pos--)   {    OrderSelect(pos,SELECT_BY_POS...
Hi there,  I hope someone much cleverer than me can help make this regression channel work on my MT4 build 670 - I have looked all over the internet with no joy in finding a version that works Many many thanks in advance   Mike ;) 
I would be very grateful if someone could assist me to convert the following custom indicator coded in CTL (Common Technical Analysis Language) to MQL4: indicator Wave_15_Min; input C=close,O=open,H=high,L=low, period1 = 5,period2=20,period3=80,period4=480; draw line1("15 Min"), line2("1 Hour"),...
I have not done any code for a while, but I restarted my EA's and was going to work on some ideas. The EA's did not have errors in the past but now they do. All of the Meta Editor error seem to be from the 3 || 5 digit adjustment code and are as follows: '.' - semicolon expected    Daily Rat...
hello could any one help me find function to find lot size enter with 10 % risk of my balance in usdjpy xx.xxx (5 digit broker) mini account thanks in advance 
could any one tell me please the logic behind that pattern , how to program it ,,, just the idea not the code
Hi, This is just a short question: Where is the "Alerts" File on Metatrader Directory? I use the metatrader on different computers and know how to completely copy the metatrader files (templates, indcators etc) to a new metatrader on another computer. Now i am installing a new VPS , which will be...
Is there anybody on here who can help me please. I have had to update to the new alpari meat trader 4 platform due to getting a new pc as my last one blew up. I have installed and un-installed the new platform but I am unable to get the indicator to work or show up in the panel or folders. These...
I personally own an iPod touch , and a few months ago when MT4 update the apps on IOS I was , and still so fucking impressed with the new update. Being able to plot support and resistance line on the chart really helps a lot. My question is , is there any official news or even rumours that...
Can someone add a label to this indicator at the end of the line where I can add text through the properties window of the indicator? link to codebase please pretty please... It should look similar to this price label but I want to add custom text.
I have an MQL5 & MQL4 community login & wish to unregister the MQL4 login. Anyone know how to do that?
Suddernly the SL/TP changes to 50 points no matter what EA i backtest? Anyone encountered the same problem?
Kumaresan Selvaraj
got stuck in comparing the string to date with current date time.    int YY=TimeYear(  Time[0]);   // Year          int MN=TimeMonth( Time[0]);   // Month                   int DD=TimeDay(   Time[0]);   // Day          int HH=TimeHour(  Time[0]);   // Hour                   int...
I have an scalper EA that works fine in Demo mode, but when I switch to Real, I always get a requote error message. What is the solution? phil
Hi I modified the default ATR.mq4 just a bit (4 lines, marked green and: // NEW): //+------------------------------------------------------------------+//|                                                          ATR.mq4 |//|                   Copyright 2005-2014, MetaQuotes Software Corp....
Hi All! I have a problem with the iCustom function of the gator oscillator (Gator.mq4) what oscillator code can be found anywhere. The oscillator has 6 buffers, what values I want to query, to determine the color of the oscillator. My problem is, that when the oscillator turns from red to green in...
Hi there, I installed the indicator: CCFp_v1.0.2cvert and want to change the currencies. Replace CHF by XAU. Plse help me out. Programming language is like Chinese for me (I am European!). Thanks in advance
I'm doing a "News" strategy where I quickly enter a Buy Stop and Sell Stop orders in the same price, bracketing current price. Currently, I right click on the chart at my entry price, and select either Buy Stop or Sell Stop. I then drag my order as close to current price as it will allow.   The...
i'll be so gald if someone is able to help me to handle this problem. i just started learning this language.( and excuse if my english is bad.) And here's my idea, it's simple, but it's tricky for me to write the code. I want to draw a line on M1 or M5's chart by using the High && Low Price of the...
I want to change the size of text & numerals. I have tried changing the screen resolution in Windows, but it has no effect. Any ideas, please ?
Hi.... When the buy stop and sell stop will expired ? is it possible to set the expired date ? This is a code to execute sell stop: TicketNumber6 = OrderSend(Symbol(), OP_SELLSTOP, lot, TargetPrice, 1, SL, TP, "comment", MagicNumber, 0, White); And this is a code to execute byu stop: TicketNumber3 =...
New article How we developed the MetaTrader Signals service and Social Trading has been published: We continue to enhance the Signals service, improve the mechanisms, add new functions and fix flaws. The MetaTrader Signals Service of 2012 and the current MetaTrader Signals Service are like two...
Hi, I just saw these two parameters for SymbolInfoDouble() in the MT4 help: SYMBOL_TRADE_TICK_VALUE_PROFIT: Calculated tick price for a profitable order SYMBOL_TRADE_TICK_VALUE_LOSS: Calculated tick price for a losing order. Sounds too good to be true? Can I build an EA that is using only "tick...
is there a list of valid DLL parameter data types? I tried long but got stack damage?
Error connecting to mql5.storage Any ideas why this may be? Screenshot attached.
Hi Coders, I get 4 warnings when I Compile my EA, Please help me out to fix this. Many Many Thanks. The warnings are highlighted as Red colour. warnings are below void function returns a value. Return Value of "OrderModify" should be check. Return Value of "OrderModify" should be check. Return Value...
If I have all the high and low fractals how could I calculate which fractals connect in accordance to the parameters of ExtDepth, ExtDeviation, and ExtBackStep of zigzag? From current bar to last bar because I only need first couple zigzag lines, not whole chart. I'm having really hard time trying...
I've update MT4 2 days ago. Everything looks good in new directories. But I've problem with Print: they not appear in log file. Log is accessible because all info for orders (opening, modifying) are stored in log. But nothing from my EA appears in it. Any tips why?
Hello. I want to write PERIOD_CURRENT in a timeframe of an indicator. And I want a more big period in other indicator, in a way that make the change automatic, and not manual. Somebody know what I need to write for do this? (maybe a word that mean something like next timefrime or something like...