MQL4 and MetaTrader 4 - page 179

hello could someone help me compile and fix these errors
I was just wondering if its possible to change the magic number of the remaining order , once its been closed partially ? for example if i have 1.0 lot open and its magic number is 140, now if this order is closed partially (0.3 lots are closed from original trade) then the remaining opened lot for
Please close this dumb question..... the last two lines, I should use poscount instead of i. I'm working on this code, using a CButton, my purpose: when new position (not including pending order) added to the current symbol, or stoploss changed in any of open position of the current symbol, this
I'm running MT4 on Windows 10. I prefer to close it when not trading so it's not using CPU/Mem, but if I've set the mobile push notification type of alerts on some of the charts I have open, does MT4 need to remain open and running all the time (even in the background) or are these alerts triggered
I did some search work, and the following code works with CButton font type: string FontType = "Calibri Bold" ; alertbutton.Font(FontType); However, my effort to make it an enum list failed: enum fonts { fntArial, // Arial Calibri Bold }; extern fonts FontType;
[Deleted]
Hello, How to add a day at a datetime variable ? My code : datetime dtDateTest = D'2004.01.01 00:00'; datetime dtDateTestPlusOne;  dtDateTestPlusOne = dtDateTest + ??????? ; Thanks, Tintin92
Hi, In OrderSend function (mql4), does the 'slippage' is in Pips or Points? for ex': symbol is EURUSD and I set slippage=5 in OrderSend, does that mean 5 pips or 5 points (which is 0.5 a pip)? Thanks
Hi- need help- my mt4 broker platform sets the day separation indicators from 12pm-12PM NY time schedule. I prefer my day separator to be set from 5PM-5PM NY Time. Is there a way to change this setting or must I use a broker who uses 5-5 on their servers? Thank you
[Deleted]
Hi everybody, I need help to solve the following issue I am struggling with.. The I use the iCustom function to import into an EA the values of the buffers of the " ShinNeAshi 2 " indicator, but I get only Zero value for all the buffers. I use the following code to call the first and second buffers...
Good afternoon dear forum users! I have reached a stage where it is necessary to objectively determine the degree of asset correlation for competent portfolio diversification and mismatching signals in different markets and sectors (not only forex), not a market neutral strategy, just different
Hi, my expert gives me the error 4051, so, there is some problem with the lot amount, but I could not fix it, can you help me out? The expert was working fine until I put this function into the order send. Thanks ticket=OrderSend(Symbol(),                          OP_SELL...
Hi everyone, I'm new to expert advisor programming and please, I need to know some code where the multiplier uses decimal numbers in mt4, for example 1.3 thank you, any information or recommendation is welcome
Hi! I am interested in an MT4 VPS, but I also want to run other apps on it. Can other apps be installed on MT4 VPSs (ie the ones you get directly from Metatrader, see https://www.metatrader4.com/en/trading-platform/vps), or does it just run MT4 and that's it? Thanks so much =)
Is manualGMTOffset work on backtest? I backtest for order open in London session by manualGMTOffset but signal show almost all time. What wrong
int pos=0; int counted_bars=IndicatorCounted(); actualyear=TimeYear(iTime(NULL,PERIOD_MN1,0)); // if(counted_bars < 0) // return(-1); //---- last counted bar will be recounted if(counted_bars > 0) counted_bars--; pos = 0; while(actualyear-TimeYear(iTime(NULL, PERIOD_MN1
I was just wondering if there is any way to identify the type of a certain pair (by type i mean to identify if its currency pair , or indices or crypto pair ) I tried Using this : Print ( SymbolInfoString ( "XBTUSD" , SYMBOL_DESCRIPTION )); I was hoping that SYMBOL_DESCRIPTION might give me some
If I use an EA that uses MT4 standard indicators (such as EMA, RSI, etc), do I still need to attach those indicators on the chart or the EA could still run without it
Hello, I don't want to see live values in front of indicator name. Can I disable showing them
Recently I asked a coder why I was having trouble implementing some sweet code he'd written up. His response was priceless. "If you are sitting at the old terminal, this is your and only your problem. It's a shame to still sit at the old terminal. While you are sitting at the old terminal - do not
[Deleted]
Is having a script that connects to the MT4 server and performs trading operations , basically can connect to MT4 server directly without running MT4 client platform, possible…? Something like a PHP script to work instead of the MT4 platform but not like a web application though, rather it should
I have officially moved to MQL5 although it's gonna take time to port all my code over. At least, I thought, I won't have the same problem with ChartXYToTimePrice that I was having in MQL4. And I don't! I now have a completely different problem lol. In MQL4 ChartXYToTimePrice worked in debug but not
My EA stop working when change timeframe on chart Not happen on FBS happen on Exness Why
  Error Get SL = 0  (1)
i want to create flexible stoploss range by confirmation of candlestick, but my code still error . Here is my code : int GetSLPip() { int pips = 0 ; double p = 0 ; double delta= 50 ; for ( int i= 0 ; i<=delta; i++) { // Counting Pips for SL Value double HighSL = MathAbs (High[ 1
Hello I am trying to calculate Risk based lot size for XAUUSD but its giving me wrong value , and couldnt figure out what i am doing wrong here is my code : extern double RiskPerTrade = 2 ; extern int StopLoss = 5000 ; //SL points double CalculateLot ( double StopLoss_) { double
Anyone know where I can find the source code to moving average ? I want to see how the "applied to" section is coded, especially the weighted close, and the typical price.
I'd like to report some legitimate bugs in MT4/MQL4 but the service desk has closed down because, from what I gather, they were being flooded with requests which were actually amateur programming questions and errors which should have first been searched, and if necessary, posted in the forums. I...
//TRAILING BUYS for ( int P= OrdersTotal ()- 1 ; P>= 0 ; P--) if ( OrderSelect (P,SELECT_BY_POS,MODE_TRADES)&&OrderType()==OP_BUY&&OrderStopLoss()<OrderOpenPrice()&&(OrderOpenPrice()+Ask)>MaxSL) {
Hello, OnCalculate only produce open/high/low/close. How can I use use other prices types? Like original MT4 indicators. I nead a clue, or reference to an existing indicator in codebase which I can get idea from it Thanks int OnCalculate ( const int rates_total, const int
Hello, I would like to add the option for getting the GMT-Time via WebRequest. On my VPS the MT4-inbuilt GMT-option does not work correctly. I have some code, but would ask for some help. The code give me a result with no information about the GMT. What should I change? I cannot get my head around