Download MetaTrader 5

MQL4 and MetaTrader 4 - page 57

To post a new topic, please log in or register
Code to press the compile button in MetaEditor via an expert 
I would be most grateful if someone can help me with my problem!   I currently have very similar EA's that work fine on 5 different instruments (mostly currency pairs) - but if and only if I have no current open positions.   I am a very beginner programmer and have adapted a program I obtained here...
Hi, I got an account which I messed up in the past. Now since January I found a good system to trade and want to evaluate the account only from January 1 on. Can I filter my mql5 signal I set up only from Jan 1st until xx.xx.xxxx or is there a tool/programme where I have useful statistics on MT4...
Hi, i got an mql4 file of an EA and i would like to add a code in it. i want the EA not to trade if the spread goes above 12 . what should i do ? please help. thanks in advance
  USDX (2)
can any friends share a usdollar index source code in mql4?thank you very much.
I made an EA and it's incredibly profitable when I go back farther than a month for test, however when I test closer to this month, it comes out as not profitable at all. i understand this has to do with not having all of the tick data that far back, but im wondering if i can make my program trade...
Hi Everyone! I hope you are fine. I have a problem -just sometimes-. I am creating a timer handler like this... EventSetMillisecondTimer(50); And works fine. But some users experience this error: Cannot set milisecond timer(50) and the program fails. Am I doing something wrong? Thanks in advance
Hi Dear Friends Recently I want to make a piece of Code to Print all Information Of Account into Chart and Delete them After a while Hence I use the Same object for All part of information So I decide to Used a for Loop to Create Object and I use two Array in that Loop, First for Object Names and...
hi I want the coding auto loading All symbol and all time frame data
Hello, (I have searched everywhere already, found many people who have the same question but received no answer. I tried hours to code it myself, i have very bad programming skills.) What I need is a script which opens a pending buy order, X pips above the last candle's close price. (additionally,...
I want to send data (values of 5 string-variables) from my Java application to my MT4 EA. I have tried this by making the Java application write to a txt-file and copying the file to MT4-data-folder and an EA accessing the txt-file using FILE_SHARED_READ, however this was not working. Does anybody...
Hey folks, I am currently sitting on a code which has my own calculation. I succeeded to code the calculation into MQL4 for the current period. However, I want to look back in time and see the indicator go as well (kind of a loop) also for evaluation of the indicator based on history. I had the idea...
I want to insert Bollingger Bands indicator through Insert panel menu ,but Stochastic was added ,the MA indicater was instead by Money Flow Index .
Hi, I would like to send notifications via Meta Trader 4 platform (from Windows server) to phones and tablets with Android system and Meta Trader 4 platform installed on the machines. My questions are: 1/. How many devices at the same time can I operate via one terminal server started on Windows? 2/...
Hi,   I am looking for help see if an indicator I’ve developed can be createdinto a trading strategy.   The basic concept of the indicator is to gauge the strength of thetrend in relation to the previous number of X bars. For example, if theindicator is set to look at the previous 50 bars, it will...
Hi,  I am trying to get the Stochastic value from other Symbol like below but i got 0 value. if(Symbol() == EURUSD)  {      double Env_USDJPY_Sto_Cur = iCustom("USDJPY",60,"Stochastic",K_Period,D_Period,Slowing,0,0); }  May some1 can gives some advice? thanks~
I am looking for a 2-color moving average that can be plotted on the Awesome Oscillator on MT4. Any help is much appreciated.
Hello, I need a function to close trades in a group, grouped by comment or magic number or whatever else.... when one of them hit TP or SL. For example I have 6 trades in a group at the same time and each trade has 50 pips SL and 50 pips TP. When one of them hit TP or SL all of the trades in the...
Hello, there is a way to communicate with websocket with mq4? Thanks in advance. 
Hi guys, I would like to hear your thoughts on this. I have spent a few months developing my EA that seeks out momentum and tries to capitalize on it while having enough downside protection to be profitable. My EA has 9 entry conditions and is currently profitable, however I feel that I am missing...
Hi,   I try to learn some coding. I try to make a TDI indicator with different alerts. Als I want that those alerts only will be send and the beginning of a new candle. When for example there is an TDI crossover red over green (scalping alert) I got an alert and everything works fine. But when I...
  need help (16   1 2)
Hi friends, i need help to code this simple EA, but it doesnt work on strategy tester, when i compile it it doesnt show any error, but just  a warning "return value of ordersend should be checked". So what should i do to  this work? thanks     int OnInit()   { //---    double Lot=0.01;    bool...
I am new to MT4 (but not trading). I just signed up with 3 different brokers for FOREX trading, all of whouse MT4.   I am hoping someone can help me with these rudimentary questions:   Can I run three different broker accounts using three instances of MT4 all from the same VPS? Or should I get 3...
Good afternoon. I started this topic because I'd want to know if there's any way to get the history values of my MACD. I have seen we can find the history values of the japanaese candle in every timeframe, but these are just Open, Close, high, low. But I need the MACD values. Thanks for helping. 
Hi Folks,   During backtesting of my EA, frequently the opened Sell-limit and Buy-limit orders get closed due to expiration. I dont know why, since i do have the expiration time defined in the code:   if ( Bid>(tdn-big_limit*Point) && Bid<(tdn-small_limit*Point) && tdo!=empty && tuo==empty &&...
Hi everyone, I have an indicator that uses the lowest low in a range, the indicator works, but I want to eliminate some falls signals. To do that I need code that calculates the index number of the bar that forms the lowest low in a defined range. I looked at iBarShift, but that doesn't produce the...
I test more than 3000 EAs and i never came across something like this. I know EAs can be very different in real world than in backtest because of slippage and spread, most of these are short term trader. But I found a long term swing trader that uses tp and sl, no martingale and is profitable with...
Hi, everyone I add 2 color moving average  on QQE indicator. I use iCustom function to get value of line index 0 ~ 2, but the value of of line index 1 ~ 2 is wrong. QQE value is right iCustom(NULL,0,"QQE with Alerts_2MA",5,"",50,1,1,"",0,11,1,3,34,1,1,0,0); 2MA value is wrong iCustom(NULL,0,"QQE...
Hello, if I download the tickdata from duka / eareview but I am using a different broker: will the indicators/oscillators values of my broker become those of duka's? Thanks!
void OnTick() { int res; double MA = iCustom(NULL,0,rsimatest,rsimatest_RSI,0);    //open sell      if(MA<50 && OrdersTotal() <1)       {        res = OrderSend(Symbol(),OP_SELL,1,Bid,3,0,0,"",BIGMACMATT,0,Red);        return;       } //open buy    if(MA>50 && OrdersTotal() <1)       {       res=...
1...505152535455565758596061626364...1250