MQL4 and MetaTrader 4 - page 581

[Deleted]
  Select object on graph...  (13   1 2)
Hi, when I created programatically whatever object on graph - it is no select. But - I would like now my objects was selected... I don´t loss time select object. It is possible? Any idea? Thank you. 
[Deleted]
I use button to open a trade in dialog.mhq  . everything goes well on a little tick, but often fail at busy tick(I've widened the slippage). I use OnChartEven to catch it. I've been trying to get through all OnTick procedures with Ctrl keyboard, but did not improve. Is there a suggestion that I...
Whenever I shut down my PC and start the PC again, only the charts are visible in my trading terminal. All other paarameters such as NAVIGATOR, PERIODICITY, TERMINAL, STATUS BAR, ETC disappear. I have to start input such parameters again manually. As a result of this i have uninstalled and
void RemoveEAafterSL(){int total = OrdersHistoryTotal();         for(int i = total - 1; i >= 0; i--)         {         if(OrderSelect(i, SELECT_BY_POS,MODE_HISTORY))            if(OrderSymbol() == Symbol())               if(OrderMagicNumber()==magic)               {...
Hello,   Is there a way to retrieve the date-period over which EA is back-tested, from EA's code, at runtime?  I'm referring to Strategy-Tester's Use-Date fields (From, To).    Thanks .
Record Session High  = A current candle closes higher than the previous candles up to 6 bars back. The following code has been made to count the candlestick record session highs up to 8 and then start drawing objects on each candle to mark the overbought or oversold condition. But this code only...
How to select by pos and compare 2 orders at a time? How to make a OrderSelect loop? Ex. I have i Total orders for (int i=OrdersTotal()-1;i>=0; i--) {     I would like to loop comparison of (1st with 2nd) orders, (3rd with 4th), (5th with 6th), (7th with 8th), (9th with 10th) ....till  i, TotalOrder...
[Deleted]
Hey Guys ! I have been stuck at this point. I know that we can select the last closed order by comparing the order close time of one order with the order close time of the other order and check that which one highest . but i want to select the all closed orders of last day one by one and check the
[Deleted]
Hello! I hope someone can help me with this issue with a custom indicator. I downloaded this Point&Figure-Chart-Indicator: http://www.earnforex.com/blog/files/nbPointAndFigureChart.zip and it has worked well so far. But since I started MT4 this morning, it doesn't work anymore. It is initialized and...
[Deleted]
So after the last update the indicator value no longer appears when you scroll on to the indicator with the mouse to see the value that was on the candle for the indicator being used so for example.. Using a histogram indicator. I was able to up until last update scroll my mouse on the bar and be...
[Deleted]
//+------------------------------------------------------------------+//|                                            Torinex BarsSince.mq4 |//|                                       Torinex Consulting Pty Ltd |//|                                          https://www.torinex.com...
Hi Guys... I've tried to work this out searching the Forum but I can't seem to get a conclusive answer (and the markets are closed so I can't do any testing).... My question is:   If I Modify a position (not a TP or SL).... but the Price ie. I want to set a new OrderOpen price...(for a current...
[Deleted]
Hey guys, I developed a RTD based excel sheet with some market analysis tools. Every went fine on my original pc. Now I want to run this sheet 24/7 so I decided to put it on my private server pc (Windows Server 2012). Here the problem occurs. In opposite to my original pc after I start the Excel RTD...
I can not find the usd index (usdx ) instrument on MT4 terminal ,how can get it ? thanks.
[Deleted]
Hey Readers ! I have initialized two variables  initial_balance    // Account balance before trade                                              final_balance     // Account balance after trades are closed my idea is that if was loss last day than my lotsize for today trade must be increase.But i am...
Hello. Quite new to mt4. I'm trying to setup my mt4 with two accounts. One discretionary and the other automated. I've downloaded a few bots and its been working fine on my automated account. However the problem is that it also applies itself to the discretionary account as well and I can't
Hey guys im getting the error message - check operator precedence for possible error; use parentheses to clarify precedence FOR THE LINE if (!All_Trendline_Alert && ObjectName(li_28) != High_TL_Name || ObjectName(li_28) != Low_TL_Name) continue; can somebody tell me what im doing wrong as im
[Deleted]
Hi! I have 3 nested loops and upon a condition in the innermost loop I'd like to exit the inner two loops and continue the outer loop. Is there is an easy way to do this? //+----------------------------------------------------------------------+int Swinghighs[50];int Swinglows[50];int x, y,...
Hi, How can i save the cookie session fro WebRequest function? I need the cookie session to perform another request .  
Hi everyone, I would like to know if it is possible to set strategy tester to always start testing on the last completed bar on the chart, like Daily period if we choose today date to start. I need it especially for 5 and 15 min time frame. I have already try to set max bars in the chart to 1 or 2...
So, how can I call an indicator in a subfolder of the indicators folder through iCustom?  ie., Indicators\Projects\myProject\myIndicator.ex4
[Deleted]
hi all - I am trying to reference entry price (to generate a stop loss based on i.e. -1.5% adverse price change). I understand I need to use OrderSelect() and then OpenOrderPrice(),  but I am confused as to how to proceed. Should I loop through my blotter somehow? ultimately, I would like to...
[Deleted]
my ea  can run the sl and tp as well as i wanna , but only one thing is that when the OrderClosePrice is bigger or lesser than 400 pips but my T/P do not move to -200pips(because i want it be my stop lose)  my original idea is that for example i order a buy eur/usd at 1.12093 , tp was 1.12193...
[Deleted]
Hi Guys! I created a special indicator that draw information only when there is a trade. Like the examples below : if(OrdersTotal() == 0){//Do something} if(OrdersTotal() == 1){//Do something}  When i test that indicator in demo account the indicator work perfect. But on strategy...
  distance pivot point  (12   1 2)
hello, I have to write this simple code, but I can not figure out where I'm wrong. In the first row I say that the maximum must be lower than the pivot point, the second row I mean that the pivot level minus the maximum level candle should be less than 0.5 pips. Where am I wrong? Thank you...
[Deleted]
Hi, since the last update, my import function call is unresolved.  Here's the condiition: I have multiple account in multiple brokers, so I need to open different MT4 instance. The problem with this is that I have a script that works on keyboard shortcut. So instead of copying each script into each...
[Deleted]
  Forex Goile GMT  (7)
Hello readers !! Hope so that all are with a good health and wealth . This is my first time here. Hope so that i will learn something new . Guys I am having a problem . I have attach an indicator and also its pic . It draws daily five lines . I want to know the indicator values at all those five...
Can anyone explain why TimeGMT() method call in Strategy Tester is 3 hours behind? The only reason why I noticed this bug was because of Visual Mode in Strategy Tester. I noticed that the time of entry was wrong in Visual Mode, and when l started looking further into it I noticed that there was a 3...
-
//+------------------------------------------------------------------+//|                                                MaCross_EA_V3.mq4 |//|                     Revised by OldZ  2010-12-27 23:09            |//|                     Email: oldz.cn@qq...
Hi, I have an EA which has performed very well for the past two weeks in forward test. I know two weeks is not a long time, but it also performs well in back test. Results are consistent with back test. I am willing to share my EA with MQL forum for free or pay for changes, if a programmer can add