MQL4 and MetaTrader 4 - page 95

  Waddah Attar Win Expert  (411   1 2 3 4 5 ... 41 42)
Hi, this is my last and new expert Sell when Up Buy when Down very simple good luck
Friends, I have a robot that I bought on the internet and they placed a TAKE PROFIT above the entry price. But if you try to do that using MT4 it doesn't allow it. How do they do it? In addition to the example in the attached image. The sixth order. It is a SELL order. And its selling price was
I am currently using the strategy tester , and I couldn't help but notice the OrderOpenTime() function returns the OrderCloseTime() value after the order has been closed . Meaning, while the order is open the OrderOpenTime() produces the right datetime value. No, I am not accidentally printing the
does mt4 allow you to use an old version of an EA or will it stop working if you don't update to the newest version? There is an update out for an EA I'm using and it seems to have stopped trading the old version.... do all EAs stop trading when a new version is released and you must update to
Hi All, I am creating an economic calendar indicator that display the event name in the object description of the vertical line. However if the character count exceed certain limit, the text will not be fully displayed for Object Description. Hence, I would like to seek recommendation on
hi everybody. i had some objectGet issue when optimizing the values. the code is working but the value returns as 0. if anyone could help. thank you. see code example and pic attached. //+------------------------------------------------------------------+ //|
  Mql4 short code  (1)
Under if statement, can I write multiple conditions with bracket, Example -: if ( ( example1==example 2) == example 0) & example 0== example 1) How I can write this type of multiple conditions under if statement. Will this work
Hello. I have two MT4 terminals running on a VPS at the same time, on the same broker, etc. The broker GMT is +3. I have an EA where I calculate the offset in the OnInit() function, that is only once, and then I use it for my news filter is order to compare the news time (plus GMT offset) with MT4
  EA copier slave  (2)
Please can someone advise me how to modify the ea to copy the SL aTP and not close the trade according to the master ea? Thank you
TimeDay( TimeCurrent ())!= 1 &&TimeDay( TimeCurrent ())!= 2 &&TimeDay( TimeCurrent ())!= 3 &&TimeDay( TimeCurrent ())!= 4 &&TimeDay( TimeCurrent ())!= 5 TimeDay( TimeCurrent ())!=( 1 || 2 || 3 || 4 || 5 ) I want to write a code that does not entry date of 1, 2, 3, 4, 5, but the codes becomes long. I
Hi, all! I currently have a burning question. When back-testing an Expert Advisor I use the OnTick() function to check for the entry/close signal. This works fine when back-testing on Open Prices Only , however I know that this won't be the case when it will be set up on a live environment since it
Hi I was wondering if anybody could help me? How do you release a handle on MQL4. I know the command on MQL5 but it seems to be different on MQL4
void Download_News() { if ( FileGetInteger ( "FFC-ffcal_week_this" + _Symbol + ".xml" , FILE_MODIFY_DATE , false )+ 4 * 60 * 60 < TimeLocal () || ! FileIsExist ( "FFC-ffcal_week_this" + _Symbol + ".xml" , 0 )) { string cookie= NULL , headers; string reqheaders= "User-Agent
This is just an information, not a question. Since I can't find the documentation in MQL4/MQL5 site, I decided to write it at here. If you try to show an ampersand character (&) in object's tooltip text like this: ObjectSetString ( 0 ,obj_name, OBJPROP_TOOLTIP , "A & B" ); It won't work, the "&"
Hello, I created an EA that was already approved or passed and saved it as a draft, but today I changed the version date of my EA and submitted it again, but it is no longer approving. For testing, I created another EA with the same settings except the strategy, but I noticed that it sometimes
Good Day guys, I know this is rather a weird question to ask but I need for my clients. I am currently running 50 mt4 terminals on a Dell laptop with 32gb ram and i7 6600u processor. The laptop is been pushed to its limits and I want to upgrade to a desktop pc which can handle 1000 mt4 terminals
Hi guys, As described in the title, I want to find the bar of one day ago at exactly the same time. So e.g. the time now is 20:23 on the 06.10.2017 which is covered by the 20:20 M5-bar. I want to find the M5 that covers yesterday's (05.10.2017) period of 20:20. How would you do it? Thanks :)
hi guys , how is possible find in yesterday in time frame (example 30 M) the bar that have a value = at XXX
  How to predict RSI Level???  (16   1 2)
Hello all. excuse me for my english. can anybody help me how to predict RSI level? actually i mean how to use RSI's formull in my code? for example: at EUR/USD chart i have this now: and RSI level with 8 period has 48.4325 value. i want to use RSI formull and see this: if in this candle price go up
Hi guys, Appreciate your help in advance: input int RSILength = 12 ; input int RSIMASlow = 50 ; input int RSIMAFast = 25 ; void OnTick ( void ) { int i; double RSI1[]; double RSI2[]; ArrayResize (RSI1,RSIMASlow); ArraySetAsSeries (RSI1, true ); for (i= 0 ; i<RSIMASlow;
Hi, can anyone tell me how do I use the mql4 code to insert the reverse function in an mt4 indicator? I would need to graphically invert the indicator upside down. Thank you
Hi Everyone, Below is my code. I want my EA to stop once it will hit the target. I am not talking about any particular duration just it will stop the EA. For new execution/initialisation of the trade, Have to remove the EA from the chart and again drag and drop it from the Expert list. So once the
Hi, everyone. How do I check if the content of a variable is numeric, especially the content of a text box object on the chat? I tried the following but it did not work: ObjectSetString ( 0 , "SimultaneousReleaseIndex" , OBJPROP_TEXT , "Four" ); if ( MathIsValidNumber ( ObjectGetString ( 0
Hi, Is there anybody who has the same problem or knowledge how to fix the issue with disappeared indicators. I have until now purchase 29 various indicators from different vendors. What I discovered yesterday is that only 6 of them showing up for download. Rest of them simply do not show up anymore
[Deleted]
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,...
Hello, when a stop loss is triggered or takeprofit or a pending order at all, this event (order activated,closed due to..) is not written immediately to the journal log. All other order events are written to the log once they happen. I want to write a trading journal and so i catch changes in the
Hello everyone. I am trying to code buy order execution when the Bid reach above a price that ObjectGetValueByShift will get the object is a Trendline double Price = ObjectGetValueByShift( "Trendline" , 0 ); if ( Bid >= Price) { int Ticket_Number1= OrderSend ( Symbol (),OP_BUY
The manual says about TranslateKey: "Returns a Unicode character by a virtual key code considering the current input language and the status of control keys." Does that mean I can print Unicode characters in my labels and buttons, for example? Apparently, not. I couldn't find a single Unicode
Hello ! How To Recognize PIP Size in decimal places ( PIP, not Point ) ? I had idea like this : string Instrument = Symbol () ; double PIPSize ; double PointSize = MarketInfo ( Instrument, MODE_POINT ) ; if ( PointSize < 0.0001 ) PIPSize = 0.0001 ; // for most currencies if (
This is the problem : I get an Array witch has collected the R/R of potentials trades . its name is "atd_RRCandid [Symbol] [SetUp] [TypeTrade]" . I have to precise that the precedent function has transmit the real data (not relative one) , like in Function( string fsSymbol, int fiSetUp, Int