MQL4 and MetaTrader 4 - page 452

Hi, I made an arrow object for buy and sell orders and I use chart event click on these arrow to manage somes advanced functions. It is very strange because the area of click detection is not well fitted exactly on the arrow symbol but just next to. Do you know what could be the problem ? I try...
Is it possible to set OBJ_EDIT graphical component always on top? I'm currently able to show it on top for existing component ( for example it overlays a trendline ) but it doesn't work for new components ( the user is able to draw a new trendline which is drawn over the OBJ_EDIT component ). I'm...
  Renko Chart EA  (4)
Has anyone ever found a renko charts EA that fully automates the trading style? This would be very helpful. I have used google and I am not really finding anything. Thanks PIL
Hi all, my expert writes a Global Variable in this way  StringConcatenate(...,Symbol(),OrderTicket()); but when half position is closed on profit, the OrderTicket() is changed from the broker and the expert is not able to modify the Global Variable properly. Is there a way to rescue the link to old...
Hi All,  Been trying to get this code to delete a pending order. Basically I'm trying to set two pending orders, one buystop and one sellstop, and when one executes i want to close the other one. Trying to do it by naming them ticket1 and ticket2 as below but its not deleting any:       //if entry...
  Dynamic arrays  (3)
Hello. Is it possible to set array size dynamicly for an array like SomeArr[5][][12]? I mean first and third dimensions are known, but the second must be calculateted and set up.
Hi, Does somebody know what the order of tick numbers and position numbers (in trade and history pools)? Whether tick2 > tick1 => time of OrderSend 2 > time of OrderSend 1 ? Whether pos2 > pos1 => time of OrderSend 2 > time of OrderSend 1 ? I.e. are the ticks and position numbers generated in the...
I want this soft ,but I can't find it ,anybody want to share it ?
Hi I'm new-ish to the MT4/EA coding world, although I'm capable enough already to code entry/exit expressions based on multiple indicators/timeframes, change SL/TP, pending orders etc I'm wanting to outline my EA/Trading logic out here and have some more experienced coders/traders pick it apart......
Dear all,  can someone please help me upgrade my platform to be able to enter/exit trades with one click, and also move stop loss and take profit with just one click. 
i need Send only 1 order code int OrderInOneDay(int type) {    int Cnt=0;       int  totalHistory;          for (int i = OrdersHistoryTotal()-1; i >=0; i--)           {             totalHistory=OrderSelect( i, SELECT_BY_POS, MODE_HISTORY );             if (OrderSymbol() == Symbol() &&...
  Code mql4  (3)
Hi, I would need to add a line of code to the "pip value and spread" indicator which allows me to display the size to be used as a lever 1. Example: Cross to trade: AUDCAD Current pip value: € 6.72 Balance Account € 140,000 Lever I want to use: 1 Therefore .... Position Size: Lots 2.08 The operation...
Hi there, I've been working on my first EA over the last few months and it's now working well :) As is inevitable, I'd like to add some ways of interacting with the EA that is not really covered by the properties dialogue. These would be inputs to enable semi-automated trading. I've spent quite a...
I have an indicator loaded on 13 assets, each tick processes a series of data in D1, H4 and M30. In 10 MT4 the behavior is the same but a MT4 inside VPS did not perform a certain passage. Is it possible that with all these assets the memory of the MT4 fills up generating a block "momentarily even 30...
Hi, Under my EA the order failed to open saying in log "Invalid S/L or T/P" while SL and TP are set to NULL, it happened in very volatile market and spreads were widened at that moment. 1 12:01:09.942 '11111': order sell stop 1.20 GBPUSDmicro opening at 1.32476 sl: 0.00000 tp: 0.00000 failed...
  Closed Orders  (4)
Hello - I'm new to the MT4 platform. I had some pending orders that I thought were at a really good price; The price continued to fall and my orders were all closed (due to my margin). Since then (about an hour ago) the price has gone back up and I would now already be well above the 25% threshold...
Hi, guys! So I have this very interesting problem and dunno how to actually overcome it. Idea is this: someone buys EA that requires 3rd party integration (via WebRequests). Let's say I own this required 3rd party web service and I need somehow to protect my service to only allow web requests from...
Hi I amlearning how to program expert advisors. So far, it worked quite well. Last week,I started to create programs including orders. First Iwanted to test my program in the strategy tester which is included in MT4. Icould place Buy orders including SL and TP which worked fine. But the programalso...
Hey everyone, can someone please guide me on how to put this indicator in ea. //+------------------------------------------------------------------+ //|                                                   AMA&AMAsig.mq4 |...
i want to open buylimit or sellimit orders but at specific time only . example : set buy limit order 1.10001 from 6 am to 9 am only after that cancel the order . please check the code and give me the right code or correct it , please . if((D'6:00:00'<= Time[0]<=D'9:00:00') == true)      {...
Hello everyone, I wrote the code below that, in my mind, should move the endpoint of the trend line to the high of the highest bar, or the low of the lowest bar, but it doesn't. The end of the trend line is moved to the correct level, but not to the right bar, instead it is moved to the most recent...
Hi,  Can someone please send a list of brokers or your broker who uses GMT+0 time server?  Requirements MT4 offered by broker, Server is GMT+0 time I have searched sites that refine the search of brokers based on server time however the data is inaccurate. thanks
Hello, i have a Simple MACD Trend-follow-bot programmed but every Time if he made a Trade, he made it more than once. input bool MACDAktivieren = False;double MACDTakeProfit;double MACDStopLoss;int OffsetHunderterEMA;int TimeframeMACD;int buyticketMACDBuy;int buyticketMACDSell;bool...
Hi Forgive me but I'm new to MQL4 and need to know how you can place a text label on a chart that automatically updates as the price changes . For example, if you had a low time frame price channel on a chart that was changing pretty much constantly, how do you associate a text label with it? A
Hello, i've looked online for this type of indicator but cannot seem to find it anywhere. It's quite simple to code i think, hopefully one of you coders can help me out, i have no idea how to code it. The idea is this: 1. When a candlestick closes within the top or bottom 25 % percent of the...
Hello everyone, is it possible in MQL4 to insert a website inside a object window? void ControlPanel(){   string ControlPaint="Paint",        SecondPaint="Paint1";   if(ObjectFind(0,ControlPaint)<0)      {               ObjectCreate    (0,ControlPaint,OBJ_RECTANGLE_LABEL,0,0...
Is it possible to hide account holder name ( for example display "private"  etc.) on html statement generated by client MT4 terminal. Is there a feature on server side that broker can possibly accommodate such request ? Anybody with this experience
Hi, I hope that there is a moderator from the technical stuff of the Metaquotes who watches the questions and gives correct answer when there is no good answer from the other users. I couldn't find answer to the question described in the subject. With other words: Is there a supported way to open a...
  Take Profit/Stop Loss  (16   1 2)
If I send and open an order with a Take Profit setting and a Stop Loss setting. Is it then guaranteed that these will be adhered to? (assuming that the SL is not closer than the STOPS level of course) A big issue is this - I have noticed that connectivity between my metatrader and the broker...
I am trying to find something similar here in the forum but so far found nothing. My problem is to calculate a Take Profit that allow me to get what I traded so, if I risk US$ 100,00 (converted to the LOT SIZE and taking care of the Margin) on a trade I would like to get the US$ 200,00 in return. I...