MQL4 and MetaTrader 4 - page 93

Hello, I created a trading expert adviser which trading thousands of trades with any broker and any pair. However, when I am publishing in the mql5.com market it is giving some errors let us say error 131 (volume problem - lots) //+------------------------------------------------------------------+
This is just some brain storming, I'm hoping for the community to chime in. I feel like I've soon written this code a 1000 times in different formats, mostly with nested if statements. int Total = OrdersTotal ()- 1 ; for ( int i = Total; i >= 0 ; i--) { if(OrderSelect(i, SELECT_BY_POS)) {
Is there a Period() equivalent that returns as shown in the actual chart or do I have to make this ? aka M5, H1, H4 etc. ? Or only in minutes like Period() ? Thanks
hi guys , i learned before to download with windows dll libraries ( urlmon.dll ) to download files , images or ... from internet explorer with URLDownloadToCacheFileW function . but now my internet explorer dont works! do u have any function to download this files with chrome
1. There is old bug where MathRand() used in this same loop not generating nothing new but it's still this same value https://www.mql5.com/en/forum/368587 2. Looks similar old error where usage of MathSrand() blocking trading.. and in any case of: MathSrand(TimeCurrent()); MathSrand(GetTickCount());
" The year 2038 problem is a time formatting bug in computer systems with representing times after 03:14:07 UTC on 19 January 2038" As datetime in MQL4 is double type, the maximum is of course in year 2038, which is just 15 years in front of us. Will everyone turns out using MT5 instead? Are MQL4
I have this code, which I'm must trying to show the daily drawdown. It generally works, but if the user goes in to change an input value, it resets the drawdown value. How can I get it to maintain the drawdown value? //+------------------------------------------------------------------+ //|
hi guys, i saw 2 different heiken ashi buffer numbers for 4 candle values while googling around how is that even possible! and which one is correct and how can i find correct buffer numbers from heiken ashi or other indicators?.... tnX for help in advance First Buffers: 0,4,2,3 double haOpen =
I need to make the EA work with only "one instance". I.e. I attach it to any chart for the first time and it works. If I then accidentally or intentionally attach it again to another chart, the second attachment should recognize that it's already running and do nothing. Leaving the label in a global
  Bad signals/service reporting  (218   1 2 3 4 5 ... 21 22)
I'm wondering, why so many users subscribe to this expensive SCAM GBP/YPY signal 1135? I subscribed, thinking it must be a nice signal with so many subscribers, and this individual(s) nearly blew up my account. Thanks, I reduced lots more than a half of what they recommended, I'm still alive. Well,...
In this thread I will try to describe about what the other forums and websites are discussing.
  PC slowing Down  (15   1 2)
I have been trying to optimize the slowing down of my EA and MT4 as much as i possible can and have found another way to do it but im not sure if i should or if its smart. Im running 28 MT4 and would need a few more. I just been reading about affinity and i was wondering if someone could maybe give
  erorr code  (2)
Hello friends I want to write a simple indicator as follows According to the close price of the week and day Or any time the amount of ATR of the same time Draw a line above and below the chart as follows high_line= close price+ ATR low_line = close price - ATR for mt4 #property
Hello everyone. I am studying MQL using chat GPT. I asked ChatGPT if I wanted to create a dialog where I could enter a number. At that point, I was introduced to a function called [InputDialogCreate]. This function was not available in my development environment. Does such a function exist? Answer
double Profit = AccountProfit(); for ( int i = 0 ; i < 0 ; i--) { double LowestProfit = AccountProfit(); { if (LowestProfit < Profit) { Profit = LowestProfit;
Hi, I'd like to know if open market order buy and sell at the same time with the same price (e.g candle open price) is possible
Hi. I use MT4 already more than 10 years. Recently I change my stile of trading and start using around 20 windows at the time. My computer start to behave extremely slow. A transfer between M15 and M5 takes around 30 and more seconds. I use Windows 8.1 Professional with 8Gb memory on a 6 cores CPU...
Hello guys, sameone know how to manage this situation? Basically in my ea before to open a new order i want check if i have another trade with that symbol open and in that case i want skip i new trade
In MT4, I buy one Ethereum for $1827.02 at leverage 1:1. My margin (as shown in the attached sceenshot) calculated by MT4 is half of the price ($913.51). Shouldn't the margin be exactly as much as the price (as I am using 1:1 leverage), instead of half of the price
Hello, please anyone help me write code in Mql4 for trailing pending orders . For instance when I open a buy position, I want my stop loss to be the same as my pending sell stop and trail them as market moves in an uptrend. Same for opposite Thanks
I have an indicator that tracks max drawdown during the day. I have it displayed on the chart with a text object. Problem is, that if the user changes an input in the indicator (to move the text to a different corner), I have to delete the text object and then it loses it's value. How can I create a
Hello! If I use this function double NormVol( double vol) { return ( MathFloor (vol/ SymbolInfoDouble ( _Symbol , SYMBOL_VOLUME_STEP ))* SymbolInfoDouble ( _Symbol , SYMBOL_VOLUME_STEP )); } and to normalize a double of 0.1294, it will result in 0.12 for a volume step of 0.01 If I
  tradingview code  (6)
hello guys I'm new here, could you advice me on how to convert trading view code to mt4 format
Persian farsi Hello, I wanted to send the following proposal and criticism to the creators of Metatrader in English. Thank you for your help and guidance. 1. Five shortcut keys in Metatrader F6 control is used to switch or jump to the next chart (next chart) if we have opened hundreds of charts in
Hi everyone when i trying to start the back test the maximum number of candle in back is around 900 (i get it with Command of Bar) how i can have access for more candle in past in the beginning of back test thanks
Hello boys! I've been looking for a long time how to distinguish the drawdowns and the various operations of the expert advisors on my account. if for example I have a total DD of $300, I would like to know if it's $200 from one EA and $100 from another etc. on the history it is easy using the
I will be happy if MT4 supports UTF-8 source files. Currently, MT4 build 6xx supports system locale codepage encoding and UTF-16LE. UTF-16LE is locale-independent encoding, but has the following problem: Some tools recognize UTF-16LE files as binary (ex. git). Not only tools but also some of web
According to http://www.metatrader4.com/en/releasenotes/215, first paragraph 1. Increased the maximum size of custom tooltips for graphical objects to 128 symbols. The tooltips are set using the OBJPROP_TOOLTIP property. Yet there seems to still be a 63 character limit on the tooltip [per line]....
Hello all :) Sorry for my bad english, I'm a little French ! I have an EA that was coded by a programmer for me, it is perfect but there have a little problem. It's a hedging EA, it opens ASK and BUY at the same time every X pips, and sometimes, when it comes back to the same place, it opens the
Hi I do a code in mq4 to show an arrow when: The Macd is above the 0 level line and the candlestick has the lowest closing price of the last 4, it will show a buy signal. And when the Macd is below the 0 level line and the candlestick has the highest closing price of the last 4, it will show a sell