MQL4 and MetaTrader 4 - page 576

To post a new topic, please log in or register
I am closing trades on a net profit basis with an EA. Also, I will have multiple orders open. It seems that one order could close and the next could order fail to close for some reason. How can I ensure that all orders close or none close? I will also be opening orders.  The same situation could...
The profit on all trades (net) exceeds the parameter to close.  However, the trades will not close. Please, a little help. Thank you.. 
I cannot change the color of anything in my charts, not lines (horizontal, vertical, trend or other), not candlesticks and not indicators. I can highlight the line and the color selection palate comes up, but when I select an alternate color it will not allow it and it remains the current color. I...
New article MQL5 Cookbook: Position Properties on the Custom Info Panel is published at mql5.com: This time we will create a simple Expert Advisor that will get position properties on the current symbol and display them on the custom info panel during manual trading. The info panel will be created...
i've noticed that mt4 chart doesn't count "saturday & sunday" unlike the big players/other platforms... Following is a chart from "UBS BANK" analysis: as a result,,there are considerable differences at chart readings,,,like: UBS bank: 200SMA is at 1.2953(support 1) While my GMT+1 Broker's mt4 shows...
Hi I got this free EA online and was trying it on demo for last 2 days. seemed to be working great when i realized that its only giving sell signals and till date no buy signals have been given. What could be the problem? where should i look in the file to sort it out? Thanks Abhi
Now the symbol-" USDJPY " price is as below: bid: 95.82  ask: 95.84 I execute the below codes in my EA: 1. OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,0,0,0,0,Red);                succeed 2. Ordersend(Symbol(),OP_BUY,Lots,Close[0],3,0,0,0,0,0,Red);              fail 3. OrderSend(Symbol(),OP_BUY,Lots...
Notification(PC -> IPHONE4 client) stop working 3 days ago!  Message can only be noticed/received when I open the iphone client. No prompt at all! Notification setting of PC & iphone client are correct! Anyone run into same problem?
hello, am sending an order using this statement TicketOrderBuy=OrderSend(Symbol(), OP_BUY, OrderQuantity, Ask, Slippage, Ask-StopLossPips*Point*PointFactor,                     Ask+TakeProfitPips*Point*PointFactor,"", 1, 0, Green);       where in this case PointFactor =1 , stoplevel =0 ,...
Hello !  I am behind a proxy server and after downloading MT4 setup file nothing is downloading.  Is there a way to specify a proxy in the MT4 setup or to get a link where a standalone MT4 version is avalable please? Thanks a lot in advance. 
Hi,   Im Having trouble to figure out what is wrong with my function, could anyone take a look and give any insights... here is the function. And i get the following error:   2013.03.14 01:15:16 Test EA EURUSD.arm,M12: OP_BUY SL = 1.2946 TP = 1.297 2013.03.14 01:15:16 Test EA EURUSD.arm,M12:...
Hello to all, I've just observed someting who disturbs me ... I've an indicator which records on disk, values and calculations of other various indicators. This indicator was developped with the 451 build of MT4 and works fine on a W8 system. All my files are correctly recorded in the folder ....
  Error 130 Issues (25   1 2 3)
Hey everyone, I have wasted an half hour trouble shooting the "invalid stops" code of myEA. I dont know why the issue persists. extern string Label1="===General Trade Settings===";extern int   TakeProfit=25;extern int    StopLoss=10;extern int    TrailingStop=0;extern int    Slippage=2;extern...
Hello Forum, I am wondering if there is a neat way I can define the following. I want to express a condition such as (using the diagram below) if the black moving average has been above the green bollinger bands more recently than it has been below the green bollinger bands but I am not sure how to...
RaptorUK: You don't have variables of HHighest, LLowest or Lots in your code . . . ? I'm sorry, your right. I had removed what WHRoeder told me to try because I didn't give me any values for the Highest, Lowest and Range. I just put it back in the indicator for your review. Thank your sir.
I need assistance in using the function from one indicator to use it in another indicator to display the same results at the left top edge of the main chart.  I copied and pasted the entire indicators source code below because I do not know what part of the code computes and displays these results....
MirTD
iam a newbee in MQL4.can anyone pls tell me the equivalent in mql4 of Amibroker Trough/Peak function.i have searching everywhere but coulnt find it.Tnx
Dear all,     The 'Sleep' command doesn't work in indicator. Is someone has a solution to make a sleep in a custom indicator ? Thanks in advance for your answer!
Hello, I have a demo account. I'm trying to go older dates to do some backtesting, the farthest it will go back to is 9/26/12 Is there a way to go back some more? Thanks in advance
Hi, has anyone come across this problem before? My OrderSelect function does not select the order with the index that is the first argument of the function. For example, the code below correctly shows there are 20 orders but shows the OrderTicket of the 7th order. GetLastError returns 0. The problem...
Hi, I'm a seasoned developer and ready to help you develop an EA. Its all in the attached doucment - ready it and go from there... Why am I doing it - I want to broaden my horizons a bit. I'm a proffessional software engineer but it is getting boring after 28 years of the same old rubbish. Doing...
if order total close  not have order trades get to  delete all pending buy stop and sell stop   i begin for MQL4 script and not good english  Thanks
Sometime I find there is something usefull in the deleted EA or Script. Shall I recover it after that? Thanks! 
Hi everybody! I'd like to know if someone knows how I can obtain the exact quotations at the moment I open a trade. I could get the information on the 1m chart but that doesn't give me precision in the price nor in the spread that is not fixed. My account is in euro and when I trade pairs that don't...
Hi: I need a solution for this problem. Imagine a Simple Moving Average EA running on a 15 Minutes Chart with a tight Take Profit and Stop Loss. Imagine than a new buy order has been activated because the 15 min. bar as closed above the Moving Average. Imagine that prices are rising fast and the...
Hello traders i'm reading this forum long time , it helped me lot of time , just before 2 days i came in advanced elite please help me with this , i can see here lot of good systems, but i dont know where to start , basically i'm searching 2 things to start i'm currently trading binary option , so...
Hello, I havefound out that I cannot read LEVEL related properties of Fibo Channelprogrammatically. Other channels and other Fibos look ok. This is asample script to reproduce.   int start(){   string nm="My Fibo Channel";   ObjectCreate(nm,OBJ_FIBOCHANNEL,0,Time[20],Low[20],Time[10],Low[10],Time[0]...
Hi How do I check if a sum or an other calculation exceeds the highest possible double (see https://www.mql5.com/en/forum/140395/page2) I'd like to do ...double MaxDoub = 1.7976931348623158*MathPow(10,308);...int chckMax( double x,double y){        if (x*y > MaxDoub) return(0)        else...
Hi, is there a EA out there which is able to do time based orders? Example: I want to set in the morning two times (9:45 and 13:30) and the EA should open a trade at 9:45 and close that trade at 13:30. Thanks
Hi i know that start() is called on a custom indicator on every new tick. What i want to do is to run the contents of start()  every time a new candle opens, no matters on what timeframe we are. How is this possible? Thanks   Athan