MQL4 and MetaTrader 4 - page 304

To post a new topic, please log in or register
Hi there I use prerrt coomon logic to calc lot size extern double Depo        = 0;extern double RiskPercent = 80;extern double Lots        = 0;extern int    Magic       = 113355;extern int    Slippage    = 3;extern double StopLoss    = 100;extern double TakeProfit  = 50;int OnInit()  {...
Hello everyone, I have been working on some EAs lately and I want to merge these EAs and test and use them as a whole. the point is that if some of the EAs are losing, probably the others are profiting and the overall result will be positive too. I want the EAs to work completely independently and...
Hi,  I would like to  use the iAC indicator in my EA. The iAC indicators adds a graph with colors bars (green or red, reagarding of the movement). How to know in my program, which is the color of the iAC current bar and the previous one ?   Thank you fore your help  Max 
Dear sir,   I had developed an indicator using object create and object set ( that is INDICATOR WITH BUY AND SELL ARROW ) , my indicator works fine after compile i got the ex4 file but the ex4 not is working ( i had copied the ex4  file to the expert directory , i had also check that "allow live...
Hi guys,  I need some help please. I am looking at finding an open price for a specific candle as reference for a trigger; if the current price is a certain amount from that candle. I cannot use Open[], obviously. I am also aware that if it passes that price and comes back passed it and then passes...
gilmt5
MT4 is updated version 798. But there is nothing that has been changed.How can i stop update automatically?I don`t need to update.It is a good-for-nothing. STOP! USELESS UPDATE!!! It is really annoying.
Previous installers for mt4 allowed the user to uncheck "launch terminal automatically after installation is complete".  I just installed one from http://files.metaquotes.net/squared.financial.services/mt4/squaredmt4setup.exe  and it appears that the mt4 installer menu has changed slightly.  Now you...
hello   I'd like know how I should to do to get a customer support, to ask questions like how much is it the roll over taxes!?   thanks in advance   Adrian Wanamaker 
Hi guys, I have a problem with setting the x and y coordinates of an HLINE. I want to do it like a Label, that the Line is constantly placed for example 80 pixel on the x-axis and y-axis in a subwindow. Like when you set the parameters of a TextLabel on the mt4 platform.   Here is my code:...
Hi.  I wonder if other people are having the same sorts of inconsistent results that I have, or am I not using the optimiser correctly? (I'm new to this activity). I have 3 pairs of EA parameters, which I've called TP/SL, ma1/ma2 and p/q, and to get an optimised set I've optimised TP/SL and ma1/ma2...
Hi, I am learning about how to capture the value of a trendline and then use it as a trigger for a buy/sell order. So I made a very very simple EA. I have this small piece of code to place a buy order. The idea was that I would manually draw a line in a chart, change its name to "my_trendline" and...
Hi, I have problem with use MathPow(X,3) or even X*X*X. I use in this calculation: 5 closes of currency A and B mean1 of 5 closes of each currency mean2 of 5 currency A*mean1 difference mean1 and mean2 All above calculation  give  X.  problem appeaer if I try power X.
Hi quys, I have EA preparing for optimize process and my EA create new file for each variant input parameters EA. How create unique file name for every step optimization process? example: 1th   setting input parameters => filename: "optimize_step_0001.csv" 2nd  setting input parameters => filename:...
Please refer to the screenshot below after back testing. 3 questions on the strange things are shown in the picture too. I read iCustom usage and check my EA and indicator again and again, finally can't find the root cause. Please help urgently and thanks a lot !    (*. You can click the screenshot...
Hi, This question might sound basic... What can I do in my EA if I would like to be able to recognize a line in my chart. I mean, the idea would be to draw (by hand) a line in a chart in MT4, then the EA shold trigger an alert when, for example, the price touches this line. Not really sure if that...
I'm trying to write an EA that finds signals, display them on screen and user decides whether or not to trade them (besides, it handles all open positions and do some stuff). When I have done almost everything, Ive encountered two problems and I don't find anywhere a solution.    First of all, I...
Guys, Please help me. I have been using 2 scripts which was running on my previous opened demo accounts . however, when i use the same script with similar settings in new demo i opened today, it is not running at alla. I really can't understand the problem. Please help me to solve this.
I've heard that you need to enable on option called "Live Trading" to get the scripts to start running. However, the "Live Trading" button does not exist where it is supposed to be. I've seen many other screenshots of the . Also, the trading boxes will never update. Here's a screenshot of the...
extern double LotSize = 1;extern double StopLoss = 0;extern double TakeProfit = 0;extern double MALength = 5;extern double TrailingLimit = 0;extern double TrailingStep = 0;extern int MagicNumber = 1;extern double Buffer = 3;//============= Global Variablesint LongTicket;int ShortTicket;double...
TimeDaylightSavings()  . It depends on the time settings of my computer(local time). How to get TimeDaylightSavings on server time ? Thank you
hi,guys,I'm a newbie to learn mql4,recently,I downloaded mt4 from here,registerd a demo account and try the following code on EURUSD M1,my origial goal is to know what price function OrderOpenPrice() would return when the order is pending,so the BUYSTOP order price is set to be 5000, but i got a...
Cheers, i was not aware that decompiling job is not allowed, and my account now is banned after i post a decompiling job. How i return my account now?? Regards
In my indicator I create vertical lines with this code string line_name = INDI_NAME + "_" + (string)Period() + "_" + (string)time[i];ObjectCreate(0, line_name, OBJ_VLINE, 0, time[i], NULL);ObjectSetInteger(0, line_name, OBJPROP_STYLE, line_style);ObjectSetInteger(0, line_name, OBJPROP_COLOR,...
...Compiling passed if there is neither double quotes nor semicolon. ...Compiling failed if double quotes were completed and semicolon added. ...Please refer to the screenshots below.            
yesterday the push notifications from MT4 on my iphone 6 plus stopped working. can anyone help  please    thank you 
Hi!   I have coded an alert for my Ichimoku trading, all it does is check for available conditions, and if met it send and Alert(). It is working well, but what I notice is that when I open up the terminal for the first time each day, it sends through yesterdays alerts as well as today's alerts....
During coding and testing of my software I hit some issues with performance and wasn't able to find suitable answers here on the forum. Maybe the one or other could explain the behaviours that I run into: Say I have written an indicator that does XYZ. What happens usually is the well known...
Hi guys, If I place an order of let's say take profit 500 and stop loss 100. I want the order to break even when it gets to 100 profit (which is easy enough to code) however, I want the stop loss to move up every 100 pips (not trail) by 100 pips. So it will take incremental steps towards the take...
Hello, I would be very grateful if someone could help me with my problem. I need the amount of the balance in one of my indicators. Which I get with the function AccountBalance(). The problem is: when I change the Account in the MT4 (Login with an another account and the indicator is already in the...