MQL4 and MetaTrader 4 - page 118

To post a new topic, please log in or register
Thanks to Hendrick Stam for sharing this winning system and expert advisor. This EA (Phoenix 4 Contest) is currently 2nd place at ATC 2006 hosted by MetaQuotes. Phoenix_4_CONTEST.mq4: running live at ACT 2006. phoenix_ea_v5_6_03.mq4: the latest version. Hendrick: It’s time to start a new thread...
  DRAIN THE BANKS!! TheRumpledOne (956   1 2 3 4 5 ... 95 96)
DRAIN THE BANKS - LIKE A RAT! GREEN RAT REVERSAL TRADE 1) price within 20 pips of the daily low - that is OPPORTUNITY 2) red candle closes 3) green candle closes - note the high price of the green candle. 4) enter long at the green candle's high price 5) STOP LOSS IS 10 PIPS 6) Take whatever profit...
  EA problem. (2)
if close-open >0.01 on H4 chart,then we were in up trend. if close-open < -0.01 on H4 chart,then we were in down trend.  if close-open >0.005 on H1 chart,then we send buy order(buy signal). if close-open < -0.005 on H1 chart,then we send buy order(sell signal). Before I run the EA how can I tell EA...
I am looking for an alternative to the function of the home key to scroll to the first historic bar on the mt4 chart. I am on a mac and for some reason the usual FN+left does not function as a homekey in mt4. I have been looking online and going through the menu's in mt4 to no avail. The only way i...
2018.10.29 13:35:15.623 2905_2906.AUDJPY.25_10_2018.fv2 AUDJPY,H1: modify #49422381 buy 0.08 AUDJPY at 79.623 sl: 79.343 tp: 81.003 ok 2018.10.29 13:35:15.623 2905_2906.AUDJPY.25_10_2018.fv2 AUDJPY,H1: pPercent 1.5 why does the ea post this comment pPercent 1.5?
Just curious if it's possible to write a line of description in bold-texts. I'm talking about Program properties -> description
does higher time frame has more control points than lower time frame in optimization?
Please , how can a signal be sent to open renko bar indicator.   using icustom(); Not sure. 
  Input Box (2)
Is possible to code Input Box in EA.
Hi all, I am using MQL4 and I found out that ObjectGet doesn't support a chartId as you can see from the following screenshot: and therefore I am not able to use it on charts different than the one the EA is running. Is there a way to solve this problem? Thanks in advance.
I´m looking for an ea basket manager, to calculate the tp of the basket on one pair and run that tp at x pips on every trade. If one new trade is opened it will recalculate the tp of the basket. One good option will be if the basket is for Buys or Sells orders. A good option would be that the basket...
I searched the forum and did not find a solution to my problem, so I'm opening a new thread. I do not rule out that the solution has been published somewhere, but I can not find it. If so, please, let me know and provide a link to the solution. I created EA in MQL4 - a market scanner that works on...
How can ChartApplyTemplate() be use on Expert Advisor and reuse after short interval like 15mins. Is this more relevant in MT5? Anyone with much knowledge on this?.Thank you.
Hello all, I am versed in Java and C++ and have recently dived into MQL4.  I have 3 indicators that must all meet an agreement before triggering an alert/arrow, etcetera. I designed a trading platform written in Java that utilizes a webdriver in order to execute a series of trades using an online...
Hello there. I want to use the MT4 platform on the tablet. But when I open the MT4 platform on the tablet, the screen is automatically horizontal. I want to use the screen as perpendicular. How do I do this on my android system?
Please, Anyone knows the correct path for storage of MT4 templates. example path: path= 'MT4\terminal\files\example.tpl'. your experienced and correct knowledge  as well as suggestion of the above is much appreciated. Thank you.
In MT4, how can I see the name of my chart template that is currently applied? - indicators with ctrl + i - objects with ctrl + b - and templates? How can I switch templates with a hotkey? - indicators/EA' s with alt + [key] (from ctrl + n) - profile with ctrl + F5, profile name at bottom (see...
Hi all, I want to open only one trade at the same bar. I use M5 timefrime. My EA opens trades according to some rules. However, I want to open only one trade in a bar. Do you have any idea how I can do that? Best wishes.
i am trying to use Heiken Ashi to told trend of that candle i just want color or number of color index from hieken ashi  from Heiken Ashi code //--- input color ExtColor1 = Red;    // Shadow of bear candlestick input color ExtColor2 = White;  // Shadow of bull candlestick input color ExtColor3 =...
Hi, i have tried to download a couple free indicators from the Market into MT4 - with no result. When i do it from the website, the button "Yes, I have MT4" does nothing in Chrome, or in Firefox it gives the message that "there is no program associated with this kind of link", and the address bar...
  Double Entry (1)
Hi my EA have some issue that it can double entry the position with the same magic number..  im already using this logic as my header code but it can entry twice..  if (orderposition(100) != 0 ) {  condition of trade } can someone give me a hint how to make it not entry twice the same magic number...
Indeed, I created my own robot on metaeditor 4. After compiling it, I did not notice any error, but when I put it in backtest, I noticed that no purchase or sale order is not performed. I have tried it several times, trying to start it from the graph but still no order! Help me, please! I'm...
hello, I use metrader 4 for a very long time but since some day if I try to place an order my batch remains at 9999.00 and do not let me change it suddenly I can not do any transaction, and this problem comes back to my cell and web application trader too, my broker is ava trade, I do not understand...
How to know the lever of my account on MT4.I know how to see it on the Smartphone app but I do not know where I can find it on the computer version.Could someone tell me?
Hi all, I try to get values about an indicator called MACDMomentum.  I download it from the mql5.com.  It has values MACD (histogram), Signal (yellow line), Momentum (red line). I try to get its values for my EA. However, I don't know how I get them. The indicator code's is as follows; //---...
Hi, Im programming an EA that calls a Custom Indicator for values. EA goes something like this: int init()   {      Alert("Initializing");       itrend_1 = iCustom(currency,PERIOD_D1,indicator,0,1);      itrend_2 = iCustom(currency,PERIOD_D1,indicator,0,2);            trigger_1 = iCustom(currency...
Hello, i have a question. I found that lot calculation in https://www.mql5.com/en/code/viewcode/7749/105580/lot_lib.mqh Can someone explain me this? lot = _AccountBalance * 0.01 / iATR( Symbol(), Period(), 20, 1 ) / lotcost * 4 * Point; is this the same as i tried to use in my ea? int margin=(int)...
Hello Guys, I'm looking for open source historic data. Just EURUSD and GBPUSD I need, nothing very particular, last ten years maybe. Is it possibile to find something open source and easy to install, because all the sources I have found like TickStory or TickDataManager ask for a monthly or yearly...
My expert closes some orders NOT from TP and SL like it should, but for no apparent reason at price 0.00000, and in the journal it shows "close order#(order details here)....at price 0.00000" All the normal closes from TP and SL show up under the Experts tab instead of the journal tab. what would...
I am trying to close a Open BUY trade after it goes below 20 pips, but instead it closes after 1 pip. void OnTick()  {     double high = High[iHighest(NULL,0,MODE_HIGH,4,1)];     //Close Buy   if ((high-Close[1]) <= 20*Point)     {         if(IsTradeAllowed())         myOrderClose(OP_BUY, 100,...