MQL4 and MetaTrader 4 - page 300

To post a new topic, please log in or register
Hi all, i am searching an indicator of period converter because i need call M2 timeframe but i want only one chart open (M1 for atach period converter indicator) but not chart offline m2, and other chart where one indicator call data of m2 chart. I prove period_converter Opt indicator but no run....
Hi fellow MT users! Ive set up mt4 mobile Push notification and do receive them but i realised that these notifications are pushed to my phone only when mt4 is open on my com. Meaning i have to turn on my computer the entire day even when i am out. is that true? I a wondering if i used the Email...
10 20 30  seconds    time  charts      how    can  get   in  meta4?
  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. 
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...
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...
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...
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...
//+------------------------------------------------------------------+//|                                            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...
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.
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...
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 .  
Could anyone could help to confirm, what is the time using in strategy tester? I checked on the reference it MT4 documentation it state "When testing, the time is simulated according to the historical data. TimeLocal() local time is always equal to TimeCurrent() server time. In turn, the server time...
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
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...
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...
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...
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...