MQL4 and MetaTrader 4 - page 130

  Empty Market tab  (8)
Hello, when browsing on the market on my MT4 terminal, I clicked on a indicator which interested me, but when I arrived on the page there was no information about the product. I thus went back to the original market page, but now nothing appears in this either. I checked the journal, and it seems
  Integer division  (6)
#property strict #define SOME_LENGTH 5 #define TEMP ( int ) NormalizeDouble ( MathPow ( 10 , SOME_LENGTH), 0 ) #define DIVIDER TEMP * 10 #define DIVIDER_CORRECT int (TEMP * 10 ) void OnStart () { int someIntegerValue = 12345678 ; Alert ( "using DIVIDER: "
Hi, I want to store stoploss in StopLoss manually also if I change. I need to get only first StopLoss, and then change in variable only first time. If StopLoss has been changed in the future, in my variable this not change. My code: double point_value = 0 ; for ( int Counter = 0 ; Counter <=
Hi, I can see on details statement Maximal DD not means floating, but this is for me very important. How can I calculate Max DD for floating in my EA for each symbol
  Mean in MQL4  (1)
Hi how would I find the mean equation ((Price1+Price2+...Price(n ))/nbars) in MQL4, would i need to calculate this or is there a predefined indicator
  MathPow Function  (6)
Hi this MathPow function keeps showing as 0, ideas? the negitive value is MathPow ( 2.71828 ,-B/A);
Hi all, I'm trying to allow the indicator I'm building to signal entries for me by printing an object (an arrow) over/beneath the bar that the signal happened at. Here's what I've got so far – it's not working, and I'm unsure where I'm off. My buySellSignal buffer is being filled with the proper
[Deleted]
Hello, I would like to check if my last three closed sell or buy trades were profitable, and change a string value depending on it. I have this code (MT4): for ( int i=(OrdersHistoryTotal()- 1 );i>= 0 ;i--); { OrderSelect (i, SELECT_BY_POS,MODE_HISTORY); if (OrderSymbol()== Symbol () &&
Hey I want to add a buy and sell alert, when the price breakouts of the box. Thanks for the help! Here is the Indicator(Not from me): // THIS CODE IS POSTED SO THAT LIKE MINDED PAY IT FORWARD CODERS MAY // IMPROVE ON IT AND REPOST IT ON THE FORUM FOR THEIR FELLOW TRADERS
Assume the account balance is £1000 in GBP. I'd like to buy a 5 digit market such as EURUSD (1.11270) with 50 pips (500 points) but only risk 1% so 50 pips = £10 so every pip should be worth or cost 20 pence for me. So what is the formula to calculate the lot sizing so that each pip cost me 20 pence
Today push notifications stopped working, im not receiving any notification on my mobile app. Iwant check it , Is it from mql side?! Because my setting hasn't changed
Hi, I have an MT4 EA with mq4 file and want to convert it to MT5. Who can help me or who can do that for me. Looking for an easy direction. Thanks
Hi, my trailing stop is activated when reach 1/2 stop loss or profit. Trailing stop skače between 2-3 pips. Code: void tStop( string symb, int stop, int MN) // Symbol + stop in pips + magic number { double bsl = NormalizeDouble (MarketInfo(symb, MODE_BID) - stop * MarketInfo(symb, MODE_POINT)
I have problem with string array. Its says "array out of range" when I loop the following, It will only open "NZD/USD". Why? string symbol[]={ "EURUSD" , "GBPUSD" , "AUDUSD" , "NZDUSD" }; string symbol2[]={ "USDJPY" , "USDCHF" , "USDCAD" }; for ( int a= ArrayResize (symbol, 4 )- 1 ;a>= 0 ;a--)
Anyone know if compatibilty issues with Gomarkets will be resolved soon. It has been a problem since Monday 22/08/22. Charts working on MT4 but no account details, no EAs, no trades from Gomarkets
Hi there, When backtesting in the Spread settings of MT4 you can custom select a spread - If I set this to '2' - does this mean 0.2pips? Or if it's set to 10, does that mean 1 pip? Thanks! James
Hi everybody, Coming back after 3 years , triing to run my EA which ran very well before, compilation are not allowed now, it let me 3 errors. It was running perfectly without any errors before. there 2 sames errors about an Array, and Error about Date. Is somebody could help ? Seems just to be able
Hi everyone, I'm quite new to Metatrader 4 and trading in general. Could someone help me answer this question please? - If I close or change (SL/TP) an open trade while the market is closed during the weekend, will ''the order'' take effect as soon as the market opens on Monday ? Thanks for your
<Decompiled code deleted> But the result was wrong
I was reading up on the push notifications, with an android phone. I have a custom indicator that gives buy/sell alerts, could the notifications be used to send the alerts directly to my smartphone?
int OnInit () { Comment ( "Today is" , DayOfWeek()); Comment ( "Balance =" , AccountBalance()); return ( INIT_SUCCEEDED ); } After entering this code I get this: (screenshot) I want "Today is" and "Balance" to be written in a row. How can I do that? (c) Sorry for stupid question, I am totally
Is there way I can login to MT4 with python execute a trade and logout. Apart from metaapi is there any Rest API service. Please help there thanks
Oanda recently "upgraded" all of its clients to the V20 servers, but the servers are giving a value of "true" even if the market is closed for: MarketInfo(Symbol(), MODE_TRADEALLOWED) This method for determining if the market was closed worked perfectly fine prior to the "upgrade", but now it's...
Hi I have this indicator with higher timeframe setting. When I backtest the indicator, it shows somewhat broken indicator. Here's the indicator on real chart, and here's when I backtest it, I tried another indicator that has multi timeframe setting and the result is the same. Every time I used a
How can I restore "volume" template? I unintentionally "removed" the Volume template, and now do not know how to get it back in the template menu. I already uninstalled and re-installed MT4 terminal
Please can anyone add sl tp in my script #property copyright "Copyright © 2014, Zulutrade Inc" #property link "www.zulutrade.com" extern int BuyThreshold = 40 ; extern int SellThreshold = 30 ; extern double Lots = 1 ; extern int MagicNumber = 33 ; extern string comment = "by example script" ; extern
  MathRand()  (5)
Hi all, could you give a criteria on how to use MathRand() function to open orders? Something like this: if ( MathRand() ....) BUY if ( MathRand() ...) SELL Betterif these two conditions have around 50% probability each one. For istance, if MathRand() is an equal number BUY, else SELL. Hope is...
Hello friends How can I save a photo from the web to my PC(MT4 folders)? I saw some users talk about using WebRequest (). Can you give an example? For example, if I want to save this photo https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_92x30dp.png in one of MetaTrader's
Hi, how to change this code to moving average setup? want to add 2-3 EMA with changeable value.. extern string SignalSetting = "---------- Signal Setting ----------" ; extern ENUM_APPLIED_PRICE ApplyTo = PRICE_CLOSE ; extern string Setting_ = "----------- Stochastic -----------" ; extern int Kperiod
Hi MQL community, My EA from time to time executes a trade when my division1 value is greater than 0.50. Is there an obvious error in my code? FYI, I run about 30 EAs in different pairs with similar code, however, they each use a different magic number. Also, I'm getting no error messages in the