MQL4 and MetaTrader 4 - page 72

Hi how is possible detect a minimum size for open a trade ?, i know depend of the broker and i suppose also of wallet balance margin e much more ?? , i suppose that this problem with this one line code minLotSize = MarketInfo(_Symbol, MODE_MINLOT); is possible resolve but unfortunately no because
  Error 130  (4)
Can anyone help with error 130? I've paid for an EA and the developer says he can't see anything wrong with the code. This happens when I activate the breakeven or stoploss, I send an image, please I'm looking for someone who can help I don't understand anything about codes, it doesn't make sense
May I know why all my signals created was deleted? What I've done anything wrong? Please explain. Can I create new signals
The MetaTrader 4 platform update will be released on Friday, January 13, 2023. It contains many fixes and improvements accumulated since the previous release a year ago. The update will be available through the Live Update system
I am trying to read a txt file and am not sure what the best way to do this in mql4 is. (I am not very familiar with mql4) In mql5 I use the following method to read the txt file and use that data as a string variable called NewsFile within my program: #resource "HighImpactNews.txt" as string
  ToR 1.02 - Trending or Ranging  (195   1 2 3 4 5 ... 19 20)
ToR 1.20 OK, the latest version of ToR now adds CCI on three timeframes, 1 min, 5 min and 15min with both Entry and Trend user adjustable. The calculation is done price typical so it will match up with woodie's CCI numbers. OK, 1.11 was broken, if anyone has it delete it and use 1.12 instead or the...
I am trying to use the result of WindowsBarsPerChart() in an MQL4 indicator attached to a chart. By using Print() I can view the result in the 'Experts' tab of the terminal window. As I navigate between other symbols' chart windows I see that the value varies despite the indicator being attached
Experts of the MT4 Forum : I have on hand a CSV file with 943690 rows of M1 EUR/USD data which I imported into MT4 via tools-history center, but after importing I found only 79124 records and then I can see quite a lot of breakpoints on the charts. What is the reason for this? How can I solve this
Do the Volume Array items have a Bullish Bearish property? Thanks
https://www.mql5.com/en/charts/17914343/gbpjpy-m30-fxtm-this-trade-still-end-in-loss-help-from-fxtm
hi guys i ahve this control in middle of script if (ij% 2 ){ if (VarOrder1 == 0 ){ VarOrder1=OrderTicket(); } } else { if (VarOrder2 == 0 ){ VarOrder2=OrderTicket(); } why return
I have two Internet connections. One of them is working fine. It's just a little slower. The primary one can log on to my brokers (two brokers) and update all the data in the charts, but I can't place or close any orders. When I try to open an order, it just hangs forever. After a very long time
[Deleted]
Hello, I have an EA that I am programming to utilize one of several different order close conditions. The conditions are: daily, weekly, and equity based (if equity gets too high or too low). These are all programmed and working successfully. I am also needing to add a monthly close feature that...
HI , I am having a bitter experience trading. I am new with only a few months experience and am unable to take full advantage of the features in MT4 simply as I am still new and secondly because of the broker as they are discouraging to use MT4. They allow to download from their website only,and not
CAN NOT search brokers and can NOT login to IC account via MT4 mobile APP
I have noticed I cannot access Market from any MT4 terminal. I am logged in but I just get blank page. I have refreshed and restarted terminal Can anyone help
the first test with gbpusd 1.7.2022 to 14.7.2023 Symbol GBPUSD (British Pound vs US Dollar) Period 1 Hour (H1) 2022.07.01 00:00 - 2023.07.13 23:00 (2022.07.01 - 2023.07.14) Model Every tick (the most precise method based on all available least timeframes) Bars in test 7461 Ticks modelled 29443782
Hello Everyone i have this function on mql4 to check if there is an opened order with specific magic number: bool CheckIfOpenOrdersByMagicNB( int magicNB) { int openOrders = OrdersTotal (); for ( int i = 0 ; i < openOrders; i++) { if ( OrderSelect (i,SELECT_BY_POS)== true ) {
hi i have create a line chart and i want fill under the line like the attach i think for have this effect i should painted rectangle under the line many rectangle , the question is how is possible find a end of screen ?? when zoom or unzoom the screen change , i never think at this problem anyone
Hi! I'm trying to call iMA in OnCalculate of a custom indicator: for (int i = start; i < rates_total; i++) { double fast_MA_prev = iMA(_Symbol, _Period, prm_MA_fast_period, 0, prm_MA_calculation_mode, i-1); // where prm_MA_fast_period=10, prm_MA_calculation_mode (ENUM_MA_METHOD) is MODE_EMA. //
Hello how are you I am new to learning the mql4 language, but I learned how to create a trading expert based on moving average crosses This is the code I use Now I want your help on how to write a trading code that commands the expert advisor to enter the deal buy, for example, when the price closes
Hi all, i'm restart to work with MT4 after many years and i have noted a big worsening in test performance. I don't understand why, it seems that the new versions of Windows works worse than the older but i really don't understand why. I already use the standard tricks (less bars, few variables
Hey, I have implemented this Queue that takes any type. I want to use like this since I don't know the max size at time of initialization: Queue< double > q; // Work q = Queue< double >( 20 ); // Where 20 is the max size of the queue This causes the following errors: " '>'- unexpected token", " '20'
Done. All questions here. No more questions in index 2 :) The previous ones are here. https://www.mql5.com/ru/forum/111497 h ttps://www.mql5.com/ru/forum/131277 Useful links to similar topics. Forum navigator and frequently asked questions (FAQ) FAQ subreddit Only "Useful features from KimIV"
Hello everyone, a question for those who understand about DLL. Is it possible for a DLL to implant a virus in the computer, through mt4 ? I ask this because I used an indicator that I found on the internet, which asked to allow DLLs, and a few hours later, I was logged out of my Windows account
hi as stated on my title, I put a button that closes all my open trade at the same time when I press it, but sometimes when I change my timeframe in mt4 it randomly activate without me pressing the button, here is the code of my button if (id== CHARTEVENT_OBJECT_CLICK ) { if
hi guys in my script i want open a trade at time it works only for short return me error 130 i suppose is sleepage but i set also 100 or 1000 and continue to non open i try also to open only a buy (because i open 2 trade buy and short in the same time ) but nothing anyone have idea why not? ?? this
//+------------------------------------------------------------------+ //| sma9ema45crosstp.mq4 | //| Zubair | //| https://www.mql5.com |
  Margin Calculation ?  (17   1 2)
At the bottom of the MT4 terminal when the Trade Tab is selected MT4 shows the following parameters: ---> Balance: Equity: Margin: Free Margin: Margin level: <--- My question is "What is the equation used to calculate Margin?"
Right, quite frankly, I have just about had enough of this.. I currently have a snippet of code which returns the standard deviation of a currency pair and displays this in an email which is subsequently sent. The standard deviation is calculated in the #include file called: chart_objects_correl.mqh