MQL4 and MetaTrader 4 - page 180

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
Dear readers. Look the picture. I did the same set-up for testing. Normal MT4 (MetaQuotes Software Corp.) database at first, then below data from TickStory Lite. Bot are 90% modelling quality, but the difference in results are huge... How the heck to know, which is close to reality
  Financial issues  (1)
I can’t deposit money with my bank card into my account
I am trying to build a CSV file where the columns exceed the max number parameters that can be taken into FileWrite (which according to the documentation is 63). Is there a way to to split up the FileWrite so that I can write to more than 63 columns? The data types of my parameters include
Hi I am getting a 5002 invalid file name error. PFA part of the EA source file with single function for this file handling code only. Also attached is the log from Print for this EA file. I debugged the following - 1. Verified that the path printed in the log exists -
extern bool MON = TRUE; input string StartH1 = "03:00" ; input string EndH1 = "21:00" ; extern bool TUE = TRUE; input string StartH2 = "03:00" ; input string EndH2 = "21:00" ; extern bool WED = TRUE; input string StartH3 = "03:00" ; input string EndH3 = "21:00" ; extern bool THU = TRUE; input
hello friends. how i can change mt4 for only use 1 location server and dont conect other location servers. have it app or mt4 tolls? for example how use proxy mt4? my problem is few server locations for fbs broker always is bad guality (red conection status) and i use robot,robot need always
Hello. I have been struggling with this matter for two days now, and can't seem to find of any solution about it. No matter what I do, the values that I get from any custom indicator during backtesting of EA are always totally different from what appears on the charts. I have updated the M1...