MQL4 and MetaTrader 4 - page 16

As you know there is the "Symbol" you select at strategy tester and the "Symbol" you define in your EA. Normally they are both the same. Today all of a sudden my EA started to work really slow. (I only use Open Prices).. I could not find the answer and I just checked if it would work fine at other
windows 10 or windows 11, two or three terminals are ok, but then more i add more lagging i get, page faults, handles, etc what to do? 1 terminal is using only 1% of CPU why can't I run many mt4 instances? r9 5950x 128 gb ram windows 11 6 TB NVMe SSD, german hetzner 10GBit uplink i am running 13
The stupidity here is unbelievable at times, I have the following: enum MinRSQ{ RSQ10 = 10 , RSQ20 = 20 , RSQ30 = 30 , RSQ40 = 40 , RSQ50 =
Hello, I am making a code, If Buy Order reach above 30 Point from Entry price, close Sell Order If Sell Order reach below 30 Point from Entry Price, Close Buy Order. int gRangeClosing_Automatic = 30 ; if ((LastOrderPrice(OP_SELL, gSellMagic) - Ask) / Point > gRangeClosing_Automatic) {
i mean everything, settings, layout, windows charts, logins, passwords, favorites, experts, codes, etc ,etc not possible? have to reinstall
EDIT #1: I've set the max spread allowed to 0.0 in the input settings following the recommendation of @ Fernando Carreiro (thanks!). I've also added a function to close the trades I'm opening on every tick (I wasn't closing them before). Finally there was an issue in the "RunChecksBeforeOrderSend"
Hello I can check if the mouse wheel is moved when the cursor is in my interface area, but I didn't find a way to get the wheel moving direction. Sorry I'm not sure if what I said was clear in English or not. I mean I want to know if the user spins the wheel upside or downside. Both of them gives
Hello, The last weeks I have been struggling to get my strategy tester to run simulations in the way I want it to happen. Basically, I want to test an EA from the TFs M30 up to H4 but when strategy tester is loading the data it only takes the M1 and sometimes the M5 to do the simulations. Did anyone
Hi guys, i want convert some pine Script indicator code to MQL4 but im beginner in MQL pls help me that is some code i want use it in MQL but i dont know how ... ` float p= 0 float q= 0 float m= 0 T=close-open L=high-low k=math.abs(T)/(L) atr=ta.atr( 50 )
Hi coders, I'm learning coding now. Pertaining to this post that quoted by "nicholish en" : https://www.mql5.com/en/forum/305424#comment_10829666 for ( int i= 0 ; i<symbols.Total(); i++) Print (symbols[i]); From my understanding, the "symbols" is a buffer to store all the open trades symbols. Let's
[Deleted]
  Chart Axis Fonts  (21   1 2 3)
Hi, How can the x & y axis font sizes be changed? The default font size is too small. The other charting programs I use have options to easliy change them, but I can't find anything in the help section that addresses this. Thanks for your help, Geoff
Hi, I tried to get the BUY and SELL's Lowest Net Profit or Loss (LLNPL) for each symbol in my EA, but I cannot get the correct answers ... My codes are as follows :- string arTrSym[ 8 ]={ "AUDCAD" , "AUDCHF" , "AUDJPY" , "AUDNZD" , "AUDUSD" , "CADCHF" , "CADJPY" , "CHFJPY" }; double bLLNPL[]
Good day, All. When optimizing an EA I’m getting are out-of-array errors, erroneous results far out of line of what they should be, and terminals crashing altogether. When I run a backtest for any of the passes that are a result of these optimizations, the EA provides what I would assume to be
to all mql4 masters i need help to modify this currency meter so it can draw a dot based on the level setting in this indicator, this indicator slope is repaint, but here i just try to get the histories of the price based on highest or lowest price of the candle when it reach the target level of the
//+------------------------------------------------------------------+ //| | //| Comprehensive MT4 Bot Code | //| |
Hello I have been trying to fix this issue by trying different platforms of MetraTrader 4 from differnet brokers and none of them worked. When I go to C:/ProgramFiles and there are all files templates,pairs etc, but there's not any folder with Indicators . I have searched by MT4 on Open Data Folder
Hello everyone. Is there any solution to know if a ticket is already closed without having to iterate all open positions
hello i have a indicator that does display the current risk with some math, it technically works just fine however after some time (mosly when i close positions) it just stops updating, and i have to reload it via template or change the symbol to make it work again, is there somethings i can do to
Which will be more effective, reliable and faster? Code 1 : void CloseOpenAndPendingTrades( int trade_close_magic) { for ( int pos_0 = OrdersTotal () - 1 ; pos_0 >= 0 ; pos_0--) { OrderSelect (pos_0, SELECT_BY_POS, MODE_TRADES); if (OrderSymbol() != Symbol () ||
Please double USDCADOPEN = iOpen ( "USDCAD" , PERIOD_D1 , 0 ); double USDCHFOPEN = iOpen ( "USDCHF" , PERIOD_D1 , 0 ); double USDJPYOPEN = iOpen ( "USDJPY" , PERIOD_D1 , 0 ); double AUDUSDOPEN = iOpen ( "AUDUSD" , PERIOD_D1 , 0 ); double EURUSDOPEN = iOpen ( "EURUSD" , PERIOD_D1 , 0 );
I haven't used MQL4 for a while , when i just get to use custom indicator when trying to get the method CopyBuffer , It doesnot exist among the built in functions, I guess my memory is not bad , It was there !! Is there the other way to get MLQ4 indicator buffer values
Hello, OrderDelete(OrderTicket(), clrViolet) , I am using this code, it should create an arrow mark object on chart with Violet but it not creating. Full code : void CloseOpenAndPendingTrades( int trade_close_magic) { for ( int pos_0 = OrdersTotal () - 1 ; pos_0 >= 0 ; pos_0--) {
  MT4 Push Notifications  (12   1 2)
Hi guys, I have been reading around but unfortunately I can't find any solution to my issue, so I would like to ask you for help. I'm currently using MetaTrader 4 Build 1090 under a Demo Account and for some reason I can't seem to get my custom indicator to send me Push Messages to my Xperia XZ. I...
Hi Guys, sorry to bother you with so "simple" question, but I can't find [for good time already] any way to move one [or more] indicator windows, up or down below main chart window without closing it and re-opening in desire order. By closing one indicator window and re-opening it I have to...
Please how to display the price that fibo has ? //--- установим количество уровней ObjectSetInteger (chart_ID,name, OBJPROP_LEVELS ,levels); //--- установим свойства уровней в цикле for ( int i= 0 ;i<levels;i++) { //--- значение уровня ObjectSetDouble (chart_ID,name
hi i want to change red color of high to low line in Fibo tool to none-color in mql4 script. how can do it ? thank you
//--- * short trade if (trade_ok==true) { if ( ( Ask- SMA_10day < buffer* Point *K ) && ( price_above==true)) { ticket1=- 1 ; ticket2=- 1 ; while (MarketInfo( Symbol (),MODE_ASK)-MarketInfo( Symbol (),MODE_BID)< 4 * Point *K) // spread < 4 { Alert (MarketInfo(
Good morning, I find it absolutely absurd that if I don't log into my vps for a while I can find myself with mt4 BLOCKED because it doesn't update. Incredible, that is, do I have to risk my experts not closing my operations just for an update? Are we joking? but who is the genius who decided that
Does MT4 has a function can convert upper case to lower case and vice versa? Itcould be very handy. cheers.
  MT4 Purchases Not Showing Up  (11   1 2)
Hi, I am having trouble with the 'market' tab on MT4 after I login to community, I am unable to see all my purchases on my account to download my products I have purchased, and this started occurring after I reinstalled metatrader, but also checked a different installation I have on MT4 on a