Download MetaTrader 5

MQL4 and MetaTrader 4 - page 57

To post a new topic, please log in or register
  Digital Martingale EA (110   1 2 3 4 5 ... 10 11)
This is the first of hopefully many different versions of Ea's using Mladen's digital indicators plan on making martingale Ea's and regular Ea's using these indicators. The indicator is the same as Digital filters smooth -separate, but removed the mtf because to me makes it easier to code the mtf...
Hello, does anyone has script for calculate today profit/loss? i have find everywhere but couldnt get one. help me please. thx code in mq4 would be very appreciate. thx
Hi All,    I am new to mt4 programming. I am using two moving averages 50 and 200. Can some help me out by giving me mt4 code to print close price of the particular candle where the moving averages cross each other. Also i wish to print the close price  above the same candle itself.    It will be...
  FileReadArray() HELP!!!! (11   1 2)
Hello! Hope you can help me out. I have a file named "sample.bin" in the MQL4/Files directory that has the exact following content: 1 0 1 1 0 1 I want to create an array that has all of those 6 lines as array values. The desired output is array[1]=1      // (as per the first line of the sample.bin...
Hi everyone, 1) Is it possible to drag and drop the SL & TP without having to press teh ALT key? §If yes, how? 2) I have a UHD monitor and the SL/TP/Entry price lines are much too thin. How can I increase their width? Thanks!
Just a discussion point;  1. do you go for a set take profit target for every trade, say 100pips regardless of your stop loss size, or 2. do you make your take profit level a set ratio larger than your stop loss for each trade, i.e. Risk reward ratio of 1 to 3.. Reason I ask is I had the EA I'm...
Hello, I wonder if it is possible to know which window is the active one, the one that has the top priority for mouse clicks Or get the name or anything specific about the top active window? I've tested all these functions and more but they usually return 0 : int      GetWindow(int hWnd,int...
Hi, If I want to use the same signal on two different broker accounts, do I need to subscribe twice to the signal? Thanks for your help.
Hello, I am backtesting to see whether my understanding in time is correct in MT4. So I started backtesting with Tick data suite an EA called robotron using different timezones, but with same default setting. The only difference is the trading time is adjusted to the timezones respectively. I tested...
everytime i start the mt4 terminal ,there will apear a process named "DJ音乐盒 " in task manager .it use many memory resouce. when close mt4 terminal  the process disappears too. when teminate the process ,the mt4  teminal disappear too. i reload the windows oprate system several times ,the problem...
Hello, EA code is to open Buy Limit order if Open Buy Orders > 0.And close any Limit order when Open Buy Orders = 0 It does but it closes it after seconds and repeats this How could we fix this? Thanks in advance! Code: int count_sellLIMITorder()  {   int countsellLIMIT=0;   for(int...
this is my first EA to do  i want to know is this indicator function that i use is right or wrong.so if wrong what is the right ? //MA bool MA() { double ma5= iMA(NULL,0,5,0,MODE_EMA,PRICE_CLOSE,0); double ma10=iMA(NULL,0,10,0,MODE_EMA,PRICE_CLOSE,0); double ma20=iMA(NULL,0,20,0,MODE_EMA,PRICE_CLOSE...
not sure why anyone know how to down load an ea and save it like in the old days,and intall it yourself ?
I started this thread to post all news/signals indicators and EAs we have now and will have in the future.
I have been learning the MQL4 and so far I have made some progress however, I have this challenge I encountered while trying to code the below: "Generally, the area above 80 indicates an overbought region, while the area below 20 is considered an oversold region. A sell signal is given when the...
Hi, Can anyone help with this issue? Cant install mt4. Ive tried with several different brokers but nothing. Thank you!
Hello folks, I'm going around the lotsize calculation and I'm having trouble coming up with a function that works fine for different denominated accounts and 2,3,4 and 5 digit symbols. The following lotsize calculation works, but will it work for accounts denominated in other currencies? I've read...
Hi, I am programming an indicator which must shown an arrow on every day the conditions are met for all available days there are in my chart. I've got it working when I met all the conditions with price. When I will met a condiont with pricetp, it doesn't work anymore and show every day an arrow....
Hello, this is the first indicator I have written and it hast some flaws. I would be happy I someone could help. What it should do: A: Draw 3 candle long line and and arrow on candle which's close crosses the small EMA (10) from below, if it is above the big EMA (200), B: Contrary draw 3 candle long...
Hi everyone! I want to read this text file : 237     DC      8.9     12.5217     DC      7.5     10.6316     DJ      5.9     8.4257     DN      10.0    12.7355     DU      4.6     6.6190     DC      8.6     12.1267     DJ      7.2     9.7222     FJ      8.5     11.8 Each column is separated by a tab...
  Forex data converters (93   1 2 3 4 5 ... 9 10)
MT4 script to convert csv to hst
//+------------------------------------------------------------------+//|                                                          new.mq4 |//|                        Copyright 2017, MetaQuotes Software Corp. |//|                                             https://www.mql5.com...
Hi, nice work you are doing here. I have a small job (I guess).  If you can modify this Stochastic do give me alert when it leaves the 80 oversold and 20 overbought. Currently it's setup to give alert when it enters 80 oversold and 20 overbought. Thank you.
//+------------------------------------------------------------------+//|                                                 Pinbarsiraj2.mq4 |//|                        Copyright 2017, MetaQuotes Software Corp. |//|                                             https://www.mql5.com...
Hi everyone,  I found a great indicator for binary options 60 seconds. Unfortunately the indicator only paints when I attach it to the chart, then  I can wait for days and no signal. I either switch the timeframe to 5 min and back to 1 min, or I remove the indicator from the chart and add it again...
Hello everyone, I think that I have looked at this before. void ShutDown_Order() {   if(OrderSelect(0,SELECT_BY_POS)==true)      bool Order_Closing=OrderClose(OrderTicket(),OrderLots(),Bid,0,clrRed);   bool TradeClose = true;   bool TradeOpen = false;   Alert("Closing Order failed "...
Hi, I am currently programming an indicator multi currencies and mmulti timeframes by using mql4 language and I am not able to retrieve past data from broker server. For example I am trying to retrieve 200 last past prices on EURUSD H4 via CopyRates function  while the  indicator is attached...
I am trying to develop forex arbitrage engine between 2 or more platforms. So far without successes. I do not know if my code is wrong or computer is not fast enough to handle the arbitrage in real time. Here is my 2 version of the code (timer is set to EventSetMillisecondTimer(1);
Hi guys, I have an annoying error that causes my EA to place multiple (sometimes as many as 100) trades and then close them straight away because the fast moving average that I use as a close signal has not yet caught up with the price and fallen below the buy signal. So essentially both conditions...