MQL4 and MetaTrader 4 - page 4

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 () ||
Hi guys like a title exist a free indicator for show me How much leverage am I exposed to? immagine i open a trade and i want know every time I open a trade and they increase I want to know how much the leverage is now i use by hend this calculate The exposure leverage calculation can be performed
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 );
Below are step by step instructions, of how to subscribe to a MΤ4 signal: 1. Register a MQL5 account: https://www.mql5.com/en/auth_register 2. Open your MT4 platform and go to Menu >> Tools >> Optios and click on the Community tab. There you put your Login and Password of your MQL5 account
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--) {
  Usefull links/threads/tools  (57   1 2 3 4 5 6)
The thread about threads: what's going around the forum everywhere ============ MT5, mql5, mql5.com suggestions for improvement thread ============ Requests & Ideas The beginning Requests & Ideas, the beginning - the thread Suggestions for Trading System thread After Requests & Ideas (MQL5
  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
  MT4 download  (17   1 2)
I want an MT4 download link, I do not want to use MT5... Most people want MT4 so why push users towards MT5? Why should I go through a broker? Stop annoying a lot of people and provide an option!!!
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
In my MQL4 code I am able to send plain text from mt4 to telegram with ease. However, I am having difficulties adding telegram emojis to my code so that it outputs within telegram. I have searched high and low and all of which I found were examples using php and or python. Tried using plain unicode
Hi! I've downloaded tick data from Dukascopy and whenever I try to backtest any of my EA's in MT4 I get the below error "tester cannot calculate prices". If i remove all the data from Dukascopy and simply get the historical data from my broker (IG) I can backtest the EA just fine, although just the
Hey guys, I have an issue with my EA/server (I don't know where the issue is from...). Last couple of months, I've used an EA through MQL5 vps service. The EA + 1 custom indicator worked fine (I could backtest normally) and it did work fine for a few months but then it stopped taking trades (without
0 19:00:00.105 '229232': instant order buy 0.02 NAS100 at 18386.9 sl: 18351.9 tp: 0.0 0 19:00:00.105 '229232': instant order buy 0.04 NAS100 at 18386.9 sl: 18303.5 tp: 0.0 0 19:00:00.105 '229232': instant order buy 0.01 NAS100 at 18386.9 sl: 18303.5 tp: 0.0 0 19:00:00.105 '229232': instant order
I got this error message: "12 leaked strings left" when I remove my indicator. What do I do wrong? Thanks for your help
Is it just me, or can 0.07 not be stored accurately?    Example double number=0.07;Comment(number);   This displays as 0.07000000000000001, therefore I can for instance send an order using a lot size of 0.07.
I have a question from a newbie regarding the MT4 platform! If my computer shuts down when I have an active order or position, will the trade stop? Or are they still on broker servers
Hi, this indicator working for audusd, can anyone help me to work for eurusd or gbpusd too... Why only working on below 1.0 price pair. Above 1.00 price pair not working. Please help me //**************************************************************************// //*** ZZ 2nd Coming ***
I am a somewhat newbie, been programming Mt4 for about 2 months. Anyways, I developed this Custom indicator , not sure if its relevant but calculates everything from BAR 1 to +, basically always ignores BAR , calculation is only relevant on closed bar. I have a developed an Expert Advisor that uses
Any body know the code for this strategy When I Click The EA the following steps i want its possible? Step 1 : Buy Order TP-20 pips SL-24 Pips Step 2 : Sell Order TP-20 pips SL-24 Pips Step 3 : Pending Order Sell Stop Price (First Step Buy Order SL) with TP-30 Pips SL-24 Pips Step...
Hello, How many Letters/Characters does MT4 OrderComment() supported. I noticed, if i enter big comments, than it became empty/blank?. What is the Limit
OrderProfit() - This will return only Pips value or Final Profit/Loss after calculating swap and commission also. Default Code : double CalculateTradeFloating( int A_magic_0) { double CalculatePL= 0 ; for ( int pos_12 = 0 ; pos_12 < OrdersTotal (); pos_12++) { OrderSelect (pos_12