MQL4 and MetaTrader 4 - page 40

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
Hi, I have this indicator that I want to use on my strategy. This strategy will draw support and resistance for the day. The indicator doesn't display value on the data window and no buffer I can use to retrieve its value. I tried to looked into objects list and it doesn't showed up. The only thing
My mql4 EA opens charts and closes them under various scenarios. The problem I have is once a chart is closed, it is still showing as an open chart via ChartNext(..) etc. even though the chart is obviously closed. For testing, the code below opens, then closes 3 charts, and lists the resulting
Hi guys i have find this indicator https://www.mql5.com/en/code/7933 by @Sameer , i want modify i want insert this future , cart overly like line .(choice candle or line , or line with area fill underline) i insert many part in code but i have 2 big problem and i dont know where insert hand
Where can I get the full list of OBJPROP constants values or how can I check which number represents which constant? On mt4 no errors for the below but for mt5 the below returns errors. ObjectSetInteger ( 0 , "MyObject" , 1000 , 0 );
is someone able to make the MT4 on start -up , to force show Tab "Trade " and not another one
Hi, I've been using https://sslecal2.forexprostools.com as my news filter source and it now not allowing access since last week. Anyone else having this problem
In mt4, I want to see max daily drawdown of all trades while they were open. How do I see that? I need to set daily account stop loss according to that. For example, if I have 5 trades open right now and overall they are in loss, say, (500), I have to find out max value of such loss for last one
"Hi guys, I have two functions. One is named '_ReturnHOCLVofXcandel', and the other is named '_PearsonCorrelation'. The 'PearsonCorrelation' function calculates the Pearson correlation coefficient. The first function ('_ReturnHOCLVofXcandel') is supposed to return an array with the opening prices
Hi guys, Has anyone experienced this issue? I was running Mac OS 12.1 Monterey when my MT4 from MetaQuotes suddenly was taking ages to load different Timeframes, when I check journal, i was getting the message that states, HistoryCenter: 2718 bars imported in 'AUDJPYM15' - BUT this is not always on
i wana get GMT with WebRequest can some one plz help string Read_URL( string _url){ string cookie= NULL ; string headers= "" ; char post[]; char result[]; string TXT= "" ; _url = " https://www.worldtimeserver.com " ; ResetLastError (); //--- download html-pages int timeout= 5000 ; //--- timeout less
if (OrderModify(Ticket,Open_Price,New_SL,TP_Order, 0 ));
please can any one tell me how to calculate price difference between two line of super trend or can send me the code of user function related adout price difference between two line of super trend
hi i try to use this code for fill but not work anyone have sume suggest ?? thanks so much #property indicator_chart_window #property indicator_buffers 1 #property indicator_color1 LightPink #property indicator_width1 2 double ExtMapBuffer1[]; int init() { IndicatorBuffers( 1 );
Hello, I'd like to use Stop Limit Orders in MT4. Is it possible to create a script for this? Example: USDCHF - current price: 0.89000 If the price reaches 0.89235, the script opens a buy limit order at 0.89110. I found this https://www.mql5.com/en/forum/213874 , but I have no idea how to create it
Enable News Filter does not work in MT4 build 1370. Displays "Downloading News..." then system hangs
if ( iTime ( NULL , TF2, 0 ) == LatBarTime) return ( 0 ); LatBarTime = iTime ( NULL , TF2, 0 ); for (i = HistoryBars + Len; i > 0 ; i--) Sig_A = iBarShift ( NULL , TF1, iTime ( NULL , TF2, i)); I have two timeframe, Tf1 and Tf2. How can I get the pinescript equivalent of
I have created one dynamic trailing stoploss but it's only working in backtesting how can I modify it to live trading. Also can anyone check whether I am doing right or not input int InpTrailingStopPoints = 500 ; input double InpVolume = 0.01 ; input int InpMagicNumber = 212121 ; double
anyone help me? here's the code: { if ( OrdersTotal () == 0 && iRSIm51 > 70 && iRSIh41 > iRSIh42){ int ticket = OrderSend ( Symbol () , OP_SELL , 0.1 , Bid , 0 ,Bid + 100 * Point , Bid - 220 * Point , "venda" , 0 , TimeCurrent ()+ 3600 * 24 , clrRed );} } for ( int i = 0 ; i <
I expected that ArraySize returns 6, but it returns 0! Why? void OnStart () { int myArray[ 3 ][ 2 ] = {{ 10 , 20 }, { 30 , 40 }, { 50 , 60 }}; PrintArray(myArray); } void PrintArray( int &inputArray[][]) { int arraySize = ArraySize (inputArray); Alert (arraySize); }
Hello folks! Is there anyone on this forum who knows how this indicator works? You can post here or you pm me. Thanks! fx5_neelyelliotwave_v1.2.mq4
From my understanding of MT5 instructions, to receive push notifications on the phone from my destkop, the PC must be kept open all the time. I would like an alternative to this, as I can't keep my PC 24&7 open and I wouldn't like to buy a VPS to keep MT5 open on it all the time so it can send push
hi i have a part of long script in this script i have created a edit box and i want change backgroung color green/red when some percent appear in the edit box i write a function for do that void _MinimiDiCorrleZione( double Percz, string SymbO, string Correlato){ if (SymbO == "AUDUSD" ){ if