MQL4 and MetaTrader 4 - page 76

To post a new topic, please log in or register
Is it possible to open order with pop up alert. For example, some indicator has no buffer and has popup alert. If ALERT =TRUE, then I can see "CALL" alert message as popup. Then I want to place order with Ordersend code. Is it possible?
how to make a mt4 indicator that is a .ex4 file popup alert send push notification
Hi, I did some searching on MQL5 market and the internet, and did not quite find what I was looking for.  Does anyone know of an EA/utility that can simply block trades such as NZDUD Short,  XAUUSD Long, etc?   The objective is to have this fonctionality on top of another EA that trades anything it...
lot size = 0.8 / 2; //success become 0.4lot size = 0.6 / 1.5; //fail to become 0.4 WHY?
How can i define ENUM_TIMEFRAME as variable without turn it into integer ?
  OrderSend question. (12   1 2)
For BT purposes only on MT4 If I use OrderSend is the order taken at the next tick? Is there a function to say place an order 10 mins before close?
I try to back test my expert advisor, but it keep sending error 130 / 138, very rarely it goes thru. I read somewhere that I can't use predetermined variable for backtest, I already try to change all the predetermined variable. Is something else piploss = pipgain  = 0.03 double price =...
#property copyright "Copyright 2019, MetaQuotes Software Corp."#property link      "https://www.mql5.com"#property version   "1.00"#property strictextern int BiggestCandleRange = 6 ;extern bool RoomToTheLeft = true ;extern int RoomToTheLeftCandle = 10 ;extern double RoomThreshold = 5.0 ;extern int...
Hello everyone. I found an interesting indicator on this forum (vq indicator) and I was willing to try it. When I tried to compile it, it throws me 6 errors that are all related to this line  for(i=0, int y=0;i<limit;i++) {if (Time[i]<TimeArray1[y]) y++;  SumVQ[i]=SumVQ_MTF[y];} The errors are:...
Friends, I have developed an EA, wherein the buy/sell order will be placed on meeting a condition in EA. But when I run my EA in strategy tester of MT4, on some days this EA is not placing order even though the condition is met on those days during back testing. On other days EA is placing...
Dear Guys I write a code on OnTimer() . EA open trade on time. so i write this code on there. but when i try to backtest this EA all code within OnTimer() not work. How can i do some thing that OnTimer() code work on backtest. Thanks.
This is a little script that closes all open charts but one in the terminal. I then try to change the time period but it gives an error saying it cannot find the chart. Any ideas please? void OnStart(){ long currChart, prevchart = ChartFirst(); int i=0,limit=100; while(i<limit) {  currChart =...
Please advise on how to change code to cause indicator to print numbers above price bar rather than within the body. this is the MAB_TD_sequential indicator available for download.  Please be specific as i am not a programmer.  I assume after the changes are made, i recompile, and it should go into...
  iATR usuage (1)
Hi,  In MQL4 After I do "OrderSend (Symbol(), OP_BUY, 1.0, Ask, 0, Ask - iATR(NULL, 0,14,1)*1.5, Ask + iATR(NULL, 0,14,1), "TEST", 123, 0, GREEN);" on a backtest, I reviewed the trades and it showed me SL and TP that are calculated using a different ATR value than the value from loading the ATR...
  Break in Indicator (16   1 2)
Is there a way to stop the indicator from drawing when a certain criteria is met? I am currently trying to program a D-Wave indicator and I am trying to figure out how to "stop" the indicator when the wave is completed. The attached code will currently have a line that goes from when the wave is...
(Hello), how to structure a function call to return two different variables? Example: // Functionint OrdersCount(){  for(...){    OrderSelect(...){      OP_BUY(...){Long++;}      OP_SELL(...){Short++;}      }    }  return(Long||Short);  }// Callif(OrdersCount(Long or Short)<1){OrderSend(Long...
Hi there, please can anyone help - im no coder and tried my best to modify this indicator to add Push Notifications on when the MajorCycle fires the Buy or Sell signal.... it works BUT the alerts never stops... it continues to alert on my mobile, what do i  need to add or change so that it only push...
I have some accounts on MT4 and some other on MT5 but i wish to use everything on MT5 is there a way to make MT4 accounts (live) log into MT5 Thanks for any ideas and possible solutions
This is the code i have to run EA based on an indicator which is connected by Icustom. Problem is it is fixed to put SL to object price 2 or 1 and i want to replace that with a fixed stop loss. Even though i implemented the min-max SL functions it didn't workout for me. Can someone...
Software: GT247 Trader (MetaQuotes) version 5.00 build 2078 (11 June 2019) When you have autotrade markers or lines or other annotations on a graph, then drag a new share on to the graph, the markers remain. In my case I have a common window that I drag my trades to, and after a while it gets really...
I want to ask you if it is possible to get the actual text written as a result of a call to comment() method. Thnaks!
  Advanced Cycle Analysis (132   1 2 3 4 5 ... 13 14)
Hi guys, there is meanwhile a growing community for advanced cycle analysis of financial time series that I decided to open a new thread to bundle these discussions a bit. Next to the wellknown thread Fast Fourier Transform - Cycle Extraction we have meanwhile also a lot of Goertzel Browser...
The EA is working in realtime, opening order and providing comments, it is still in developement. But I need to know how it performs in backtest in order to spot more coding errors if there might be. If anyone who can suggest a solution to this would give me a great deal of help as I am very new to...
Hi, I have a EA that I downloaded from a forum which backtests pretty well, it is a scalper with a small TP and much larger SL, when a buy position is opened and the market goes down it will open a sell position, the max opened positions is two, one buy and one sell, now I was trying to figure out...
Bruno, Do you have the right version of Brainwashing v0.2? It seems only you have. The version which I uploaded to download area does not work. Only version #1 is working (I am testing now on m15 timeframe).
  Brainwashing: system development (56   1 2 3 4 5 6)
Just to inform that Alex created the Brain washing EA. The second version already. Check in download area.
How to set the color of a moving average in an EA,since i cant find any parameter to set it double iMA( string symbol, int timeframe, int period, int ma_shift, int ma_method, int applied_price, int shift) Any suggestions? TY
  TMA&Cycles (171   1 2 3 4 5 ... 17 18)
Hi, As mentioned in another section ,the intention of this thread is to explain how to use centered Triangular moving averages to gain an edge in the decision making process prior to entering or exiting a trade. Let`s start by the simplest and most important point...How to decide the Half length of...
Hi, I am using Metatrader 4 Build 1170. I encountered something very interesting and I am not sure if anyone encountered this before.  I am running a few EAs concurrently on the same computer and basically the EAs are the same set of codes. However, I have used a very different OrderMagicNumber for...
I want to limit orders only one position for each entry point  but I don't want use buy limit or sell limit