Download MetaTrader 5

MQL4 and MetaTrader 4 - page 307

To post a new topic, please log in or register
Is anyone aware of the codes for the Symbols. ie some of the timeframe codes are   PERIOD_H4       33136 PERIOD_M1       33137 PERIOD_M5       33138
New interview Johnpaul77 Signal Providers: "Our Strategy Remains Profitable for More Than Three Years Now. So Why Would We Change It?" has been published: Let us reveal a little secret: MQL5.com website visitors spend most of their time on Johnpaul77 signal's page. It is a leader of our rating...
Dear all,   I really hope someone can help me with that problem, I’vebeen trying to find a solution for this in the internet but I’m sure I’m notgetting something. Thank you for any help! I am trying to build a DLL to which I can send rates fromMetaTrader, then modify this array and return the...
Hi If anyone knows how to use the current mt4 platform with all the charts and indicators to trade an mt4 account from another broker let me kow please. The only way I know is to try and use a trade copier of some sort.    Thanks 
Please review this screenshoot and consider this as bug report.   tx 
int start(){        double EnterTrade0,EnterTrade1,Confirm0,Confirm1,ConfirmTrend0,ConfirmTrend1;            EnterTrade0       =iCustom(NULL,0,"IdicatorA",ID1MA,a ,b,c,0,0);       EnterTrade1       =iCustom(NULL,0,"IdicatorA",ID1MA,a ,b,c,0,1);       Confirm0          = iCustom(NULL,PERIOD_M5...
Hi forum,   Hoping someone will be kind enough to help me work out why this variable won't hold it's value.  I've tried as a normal boolean value, and as static (as read from another thread on here.)    Also read about latching the value.  This might be what I'm after, but I need some help.   If...
Hi what is deference between start() function and tick function in mql4?
https://docs.mql4.com/runtime/resources I was wondering if it was possible to compile other file types as resources within ex4 file.  like png, zip, dll, etc.  So everything can be packaged in one ex4 file :)
Hi guys I have problem to open order with my  expert to open order, what I am trying to do is to check if in the last 20 candle price was under the Resistance Level 1 (calculate by Pivot Points RL1). After checking the candles I want to see the last candle high was above the RL1 and then close Below...
 hi~ how come it shows me signal on every bar?? I want it to show me signal when current bar is higher than previous bar   where is the problem?    thanks    for(int i=0;i<500;i++) { if (Close[0]>Close[1]) { Label4Buffer[i]=High[i]+100*Point; // 指標出現 }          }
Hello, I´ve been studying code for a few weeks and I plan to continue learning until i can say that i´ve mastered it :)... for now i´m a complete rookie and just trying to add simple functions to indicators that I like. So, what brings me here is something that has been driving me nuts and my only...
hi, played with some new indicators and script. wasnt really what i looked for . so i delete all. but what happened is the it screwed up the mt4 fib indicator. if you go to propertyies of the fibo indicator default numbers are: 0 = 0.0 0.236 = 23.6 --etc 1.618 = 161.8 2.618 = 261.8 4.236 = 423.6 so...
Hi guys, add extern variable from files  *.mqh to main code is ok. But I cann´t add extern variable from library files *.ex4 ... :-( Is possible it? Thank you for help me! 
I have read and tried every forum post about refreshing/updating charts on new bar.  I can't get any of them to work, even those that seem to be working for others.  For example the following two versions of the same one, both placed within start().  What am I doing wrong?!  Edit:  I also tried it...
Hello all! From what I learned, the following two Indicators (which only differ in the shift attribute) should return exactly the same values, just shifted by one period: PlusDI = iADX(NULL,0,14,PRICE_OPEN,MODE_PLUSDI,0); PlusDI = iADX(NULL,0,14,PRICE_OPEN,MODE_PLUSDI,1);  Mysteriously, it sometimes...
Can anyone else confirm this annoying bug ? Open Strategy tester. Set the spread to 3. Slide the strategy tester window's top bar all the way down so you can see the whole chart. Slide the strategy tester window's bar back up what does the spread box say say now ?
Hi forum,   Many thanks for the information I've sucked from you thus far.   Let me precede this post by stating that I am a beginner, and only learning.  The code below is not an EA, or even part of one. I just want to confirm some VERY basic code, and that it is actually doing what I intend.   I'm...
I use a white background for my charts and screen captures to save printer toner.   Now I also have to reverse the white arrow collor which I put on the charts manually to make them visible again.  I can't find how and where to change these (manual) arrow settings.
Hi, Im trying to backtest this martingale EA and i get this error 4051 in the journal, and i can see it effects up to 50% of orders from opening, when i compiled the code  this warning comes up "return value of 'OrderModify' should be checked Template EA.mq4 265 14"   i have pasted the part of the...
I'm trying to write an indicator but it has the following problems: 1- Has a redraw factor of 3. (repaints the last few bars.) 2- Doesn't draw the past correctly. 3- Doesn't seem to match the CCI indicator. It's my first indicator. Any help is appreciated. Thanks. Sorry... Now it can be compiled.....
Hi guys, I am new to MQL4 and interest to learn the language. I have think of a tutorial for myself, a simple but difficult for those who don't know the syntax. I am trying to construct a code for a timebased trade. The idea is at below. Anyone can help me to define the function the properly? Thanks...
Hello, The toolbox is not visible in MetaEditor. Even if I press the corresponding button in MetaEditor.  Any idea ?   
Hi,   2014.07.09 20:50:19.004 '1637798': Signal - signal subscription disabled, enable realtime subscription in 'Signals' settings 2014.07.09 20:50:19.004 '1637798': Signal - 'xxx' for 'xxx' subscription found, 2014.08.08 expiration, disabled 2014.07.09 20:50:18.749 '1637798': previous successful...
Hi Everyone, I wrote an indicator to filter undesirable condition. So it use a lot of iCustom. When I do backtest, it show different value from real trade. On the visual chart after backtest, the indicator show up (automatically). Then I attach the indicator to that visual chart to make comparison,...
#property copyright ""#property link      ""#property indicator_buffers 2#property indicator_color1 DarkGreen#property indicator_width1 3#property indicator_color2 Green#property indicator_width2 3extern string note1 = "Stochastic settings";extern string note2 = "default = Stoch(5,3,3)";extern...
Hello, so my idea is to make an EA that can seperete between what I call "Superorders" and just "Orders". First, the EA is looking for an entry on a D1 basis and after the criterias are met it places the trade. Now the EA looks for an opportunity on a H1 basis but has to trade in the direction of...
I'm having trouble with my current EA. I need to collect OHLC for time frames not preprogrammed in mql4. I start at first m1 bar in history and I get the time of the first opening minute bar where day of month, day of week and time of day = 0. From that time i count forward where every next bar...
How to convert server to local time frame?
Hi   I would like to add this indicator as a filter for trading - simply if trendline is blue then long positions, if red then short positions. I am used to using icustom to bring in the indicator values to my EA so that i can use them, but I am not sure how i would do it in this case. I have tried...