MQL4 and MetaTrader 4 - page 91

Hi Guys? The below ia an MQ4 MultiCurrency Expert Advisor code for 10 Currency Pairs.However, the code compiles with 11 warnings. Warnings are:return values of 'Order Send' should be checked.Please how should I fix these warnings? Please advise me and I shall appreciate.Thanks!!! void OnTick (){
Hello to everybody. I use MT4 and I put my orders in an old school way ;-) I mean manual way : order stop market, with stop loss and take profit. I'm gonna have a few accounts to manage. I tried MT4 multiaccount but there isn't any charts. Is it possible to copy my manual orders from my MT4 as a
Hi, I am a starter. Using moving average.ex4, i change input lot to 1,2,3, but the tab 'Results" show the size still 0.1 . Can anyone explain the odd phenomenon? Can anyone help? Many thanks
  Please Help  (15   1 2)
Please help, I can't fix the code for moving pending deals Can someone help put the code to move the pending deals without showing the error in the picture Thank you for your help
Greetings Members, I have a question. How to get the minimized or maximized state status of the CAppDialog? Need to programmatically figure out whether the current window is in minimize state or in maximize state. Tried following way with global variable: int minimized_status = 0 ; //---Custom
  Search Patterns  (2)
Comments that do not relate to the MT5 have been moved into this topic
Anytime I download mt4 from mql5.com and install it into my laptop windows 10, it will install MT5 instead of MT4. I visited 3 forex brokers and downloaded MT4 from their websites. After installing them in my windows10 laptop, it could not connect to my internet connection and could not load charts
  OrderClose() issue mql4  (14   1 2)
Hi everyone I try to close some orders (buy/sell) with OrderClose() My code is this: void CloseBuyOrder() { for ( int i = OrdersTotal ()- 1 ; i >= 0 ; i--) { if ( OrderSelect (i, SELECT_BY_POS, MODE_TRADES)) { if (OrderSymbol() == Symbol ()) if
Hi please I need help correcting the attached coding mql4, there are 4 errors and 2 warnings. Thanks in advance
guiding me how to use moving as a trail stop
Hello, I am trying to write a code to compare last 2 fractals up... if fractal up [1] > fractal up [2] we get a sell signal . thank you in advance
for ( int i= OrdersTotal ()- 1 ; i>= 0 ; i--) { if ( OrderSelect ( 2 ,SELECT_BY_POS,MODE_TRADES)) { if (OrderType() ==OP_SELL){ OrderSend ( _Symbol ,OP_BUYSTOP, 0.02 ,Bid+ 50 * _Point , 1 , 0 , 0 , NULL , 0 , 0 ,Green); } if (OrderType()==OP_BUY){
Hello experts, I have a code that includes multiple IF statements (if inside if) however I have an issue when one of the conditions is not met, the related else statement is not executed...no errors received while compiling the EA. Please advise about the correct syntax & if anything is missing in
I coded this ea but there is something wrong that I can not solve. The EA should not place an order buy if the last order is Buy and it should not place a sell order if the Last orderType is Sell. Sometes it is ok but if there are many open order so there is something wrong(it place same order
I'm trying to return the current profit on an open order based on the order comment. Right now, my code below is getting the profit of all open orders as opposed to just the order with a specific comment. I have an order with order comment "Testing". So, what I want to return is the profit for only
  EA for Hull Trend  (17   1 2)
Is there any available EA for Hull Trend or HMA ?
Hi, kindly I need help to removing the above mentioned error from the following coding . <deleted> Thank you
  TickVol in MT4  (5)
Hello! I know that mt4 doesnt have a tick history. So I was thinking if I can make one. Like an indicator which can start recording, and displaying as a hystogram,as soon as it is loaded on the chart. I started to right something to record the ticks for the current bar into and EA : void OnTick ()
In order to implement two-colored line in MT4 custom indicators, I try to use two buffers, each with a different color. the code looks something like this: // if line should be red { if (buffer1[previous_index]== EMPTY_VALUE ) //this is to connect empty space between green and red line
  Sleep function problem  (24   1 2 3)
i wana build EA with Sleep() Function to delay 1 hour between each trades ..but i dont know why its dont work can somme one slove it plz?? if(LastClosed("CloseTime")==TimeCurrent() ) { Sleep(36000000); } //+------------------------------------------------------------------+ //|
  Font Size-MT4  (1)
May I ask; does anyone know how to restore the font size in MT4 to the original size? Mine has changed to an extremely small size. I'd appreciate any assistance; thank you
How to create objects with the same distance with the price in different time intervals? For example, the distances of fractal arrows at different time intervals on the pixel scale are the same for the price. With what function or coding method can this be achieved
I'm very puzzled. I programmed this awesome expert advisor that produces the resultson this image. Details can be viewed on the attached file ... I've been testing this on almost every currency pair that MT4 has. I'm using thesoftware as provided by InterbankFX. My strategy is similar to scalping,...
How can I define the fractal in the chart and use coding to assign which fractal to use
I just want to know how to recognize the rectangle object is on the current bar. Is it possible to know the rectangle is overlapping on the current or previous bar? This is to use buy and sell entry signal
On Mac Ventura 13.1 Out of nowhere mt4 stopped working on Mac for no reason, ive tried reinstalling and making sure its the most updated version, nothing is working. Every time I open it it shows the dot below the app before its about to start on the Mac home screen and then it just shuts itself
  Writing an effective advisor  (408   1 2 3 4 5 ... 40 41)
With the help of one of the topics in the MT5 section of this forum, the idea of creating an effectively working Expert Advisor that generates real profit was born. The idea is as follows: I start, give reasons why, then I make a starting code, explain all the nuances you need to know, you test it
I have an issue related to getting the difference between 2 devs over different timeframes during looping on the current chart bars, When the current bar of the current currect changed it affected on the previous bar not the current bar of the histogram I know that happened the because the different
  Consecutive Candle Indicator  (15   1 2)
Hey guys! So i was looking for a "consecutive candle indicator" and i stumbles upon a post by sharingan9. Then Mladen helped him out and the indicators works perfect. The only thing is that i would like the indicator to have a custom input like 5 consecutive candles OR 7 consecutive candles. I would...