MQL4 and MetaTrader 4 - page 177

Hey guys. Does anyone know how to align the mt4 terminal time to match forex broker server time
HeIlo, I would like to become a Signal Provider. I cannot get approved, Would you have some tips for me? I have Traded Forex for 22 years and have an excellent showing. My purchase of multiple EAs and other items through this site has produced excellent results
I am making a trade copier , and i was just wondering if my approach will work : Terminal A sends and Order a1 to the terminal B , string that is received at the terminal B contains : tp,sl,lots,pair and ticket number Order a1 now I am planning to use Ticket number of Order a1 as the magic number
Hi    Can anybody help me how I can the low/high point of Zigzag indicator?  I need to set the stop loss for my position when created by EA  Assume my EA decide to open a position if it is buy I need previous Zigzag lowest point in M5  or if it is a sell I need previous Zigzag highest point in M5...
/// Parameters section ...... input double paramStopLossPoints = 20 ; input double paramTakeProfitPoints = 40 ; ...... void OnTick () {
  MqL4 Fractals  (12   1 2)
hi guys i'm new to mql4 and trying to write a code for the current four Fractals where i want some form of identification for the previous fractals. Problem is i'm stuck at the array. Please any help with the code would be much appreciated below is what i have been able to do. ***
Just to clarify I am asking for coding help (to learn) more than a quick fix for this particular issue. I am modifying an existing indicator that marks any range larger than a minimum value (minRange) over a lookback period. I want it to mark only the largest range of the lookback period. So I
I try to make a grid orders I have currency pairs group string EUR[ 7 ] = { "EURAUD" , "EURCAD" , "EURCHF" , "EURGBP" , "EURJPY" , "EURNZD" , "EURUSD" }; I send order all of them as follow void buy( string &pairs[]) { int i; int ticket; for (i= 0 ;i< ArraySize (pairs);i++) { ticket=
  seconds  (2)
hi guys, i need to set text every second but i also i need play sound every 5 seconds, do u have any idea? this is what i wrote, but it dont work correctly void OnTimer () { if (b()> d && c()>a) { double spread = Ask-Bid; ObjectCreate ( "label"
Hi guys, I try to code a function, that always return the orderticket for the order, which is currently the most profitable. Attached you can find my code, but there seems to be a problem, because if the most profitable order is colsed, the function will still return the same orderticket as most
  boucle  (4)
hello; how to boucle those 2 codes? Thanks in advance sir ///////////////////CODE1////////////////// bool ArrowExistBuy = (( iCustom ( NULL , 0 , "Divergence" , RSI_period,RSI_applied_price,LongArrowCode,ShortArrowCode,ArrowSize,RSIStyle,RSIWidth, bullishDivergence, 1 )> 0 && iCustom ( NULL , 0
We can get history of high, low, open, close and ... and use it in buffer in OnCalculate function. for example close[3] Question: Can we get all Ticks? for example something like this : Tick[3] But each candle has a lot of ticks, and I know this example is wrong, so something like this is right
Is it possible to drag MT4 charts off the platform and onto other monitors. I am sure I have seen someone offering the code to do this. I can code but not sure where to start with this one. any ideas
void OnTick() { double HighestCandle=High[iHighest(NULL,0,MODE_HIGH,144,9)]; double LowestCandle =Low[iLowest(NULL,0,MODE_LOW,144,9)]; double mcd1 = iMACD(NULL,0,12,26,9,PRICE_WEIGHTED,MODE_MAIN,1 ); double mcdL= iMACD(NULL,0,12,26,9,PRICE_WEIGHTED,MODE_MAIN,LowestCandle); double mcdH =
I want to learn and add a martingal with my code but it's not working well The first TP should move(but not close trade at especific value as my code now), The lot exponent should be fixed(eg:1.4) Add more position every Pipstep My code and the function I used
hi guys Im trying to get the magic number of my most recent Take Profit trade on history with this code int magicnumberclose() SHMagicNumberClosed = 0 ; for ( int i= OrdersTotal ()- 1 ;i>= 0 ;i--) { if ( OrderSelect (i, SELECT_BY_POS, MODE_HISTORY)== true ) { if
Hi, Is there anyways to code mql4 wich we can set expiredate remotely. I mean if somebody rent my ea and I will give expiredate remotely. Thanks
hi guys why this happening in my indicator? i m new, itried to copy some examples from macd, it works for previous times correctly, but see the pic i tagged please! #property copyright "Copyright 2021, MetaQuotes Software Corp." #property link "https://www.mql5.com" #property version "1.00"
Dear All, I want to become a registered forex broker in the middle east, and currently preparing a business plan for it. Can somebody please help me to find out what financial and technical resources do I need to consider. What are the market tools available to reduce the managment time and costs....
  object on chart  (3)
programatically , example , rectangle object placed on chart at a specified time like 10am. ObjectCreate("", rectangle, 0, 0 ). Thanks
Hi everyone I am copying strategies, but my orders are always as 0,01 lot not mather lotsize of the signal,... does any body know how to copy lotzise accodingly... of course proportional to my balance
[Deleted]
Hi With this code I want the expert to check the high purchase order. If the price of all the positions is positive, bring all the TPs to the high buy position. But this must be done before the price reaches a high order position But the code has a problem and it does not do that
is anyone able to help with email set up
Hi forum, I had a look at some exotics and noticed that they often have large spreads but their daily ranges are also much higher than the major's ranges. For example the USDMXN has around 30 pips spread but the average daily range of the last 5 days is around 1360 pips. When I take this into...
Hello, I am trying to read an indicator through the function iCustom, but it's always saying the indicator does not exist. When I load the indicators in the chart, they seem to be packed inside an indicator called Simplicity.ex4, which adds all of them from this indicator: When the indicator is
  Chandelier  (223   1 2 3 4 5 ... 22 23)
Candelabra is a trading system that requires no indicators or technical analysis, working on a clean chart, with a single order. It requires only 5 minutes once a day. Description: After the close of the daily candle of the previous day, open an order at the Open price of the coming day in the same
Hi I am trying to make a minimize button for my EA to hide the panel. I have done everything until now and it works perfectly however I am not able to set the small triangle as button text. I have tried different characters with hex code but it gives me question mark. I have tried StringSetCharacter
Hi everyone, I started learning mql4 3 days ago and decided to try building my first EA. But I've run into some problems that exceed my current ability. The Idea is that after 2 successive bear candles on the 1 hour timeframe , the EA will take a trade and risk 2% of MyAccountBAlance. The stoploss
Hi guys if I try to do a backtest on my custom Expert Advisor it starts eating diskspace like crazy within 5minutes easily 100GB, I have no idea why maybe the loops inside my code? #property copyright "Copyright 2021, MetaQuotes Software Corp." #property link " https://www.mql5.com " #property
  Math and Lotsize  (20   1 2)
in my code i have a fibo sequence, and multiply that by 0.01 to get my lotsize. simple enuf. But why do i often get some weird numbers? while other times, the lotsize is correct, while other times it is not? This seems to happen with many eas, and not just in mt4 either. in the example in the former