Download MetaTrader 5

MQL4 and MetaTrader 4 - page 781

To post a new topic, please log in or register
So i want to get indicator color on pre bar. ex: Print("T"); double v = iCustom(NULL, 0, "RSI_TCI",0,0); Print(v);
Hello, I am trying to write a indicator to draw high and low of Last/Current Month andLast/Current Year. With the help of the members here I was able to get the indicatorworking however there are couple of things I would like to get help with: 1. All the lines are drawn RED even though I mentioned...
I had an EA made a couple years ago, but it doesn't seem to be working anymore, I don't know if things have changed or what. It works on tester, but it won't place the trade in live mode. In Navigator, under Expert Advisors, my EA is greyed out while the MACD and moving averages are yellow and blue....
Hi team, I am an fx noob. Sorry if this has been discussed to death already but I have searched for hours with limited results. I am trying to evaluate if mathematical methods can realistically be used for probable consistent gain in fx speculation. I am writing a program in Excel/VBA to try to...
Hi All, Someone know if exist one script that it's avaible to open the orther from one master Account with MT4 and in teh same type open the orders in the others N MT4 accounts like a multiterminal platform If will be goods with the all types of orders like SELL, BUY, SELLSTOP, SELLLIMIT, BUYSTOP,...
Hello, I want to know requote new price when error 138 occured. Because some brokers provide wrong Ask/Bid price even right after RefreshRates(), and I get requote error continuously. I noticed that error messages on logs have new price. 2009.09.30 15:55:25 'account': requote 1.0803 / 1.0808 for...
I would like to convert time based candle chart into the price based candle chart. I am using MT4. Please help me to do this..
Hello Folks, I'm experimenting with some code and recently receive the error 128 - trade timeout. I tried to find a more helpful explanation, but couldn't get one. Can anybody please tell me and others what exactly this error code means? Thank you in advance. WorstCases
  orderticket ? (10)
hello. i need your help, is there function return ticket number of an order open in a diferent pair? it s like that if my EA is attached in "USDJPY" pair and i want get the price of "AUDUSD"pair i use the function Marketinfo . exp: OrderSend("AUDUSD",OP_SELL,Lot,MarketInfo("AUDUSD",MODE_BID),3,0,0...
Hello. Can someone please telll me what wrong with this script. It's suppose to open 5 pending orders... 5 above and 5 below current price. It never does. Thank you. //+------------------------------------------------------------------+ //|...
Hi every one, im fairly new to the forex and just purchased some auto pilot software, Click here to view if you like....its pretty good and easy to use for beginners like my self..... but before i understand it correctly can anyone give me some good websites to visit for detailed info on trading the...
Hopefully part of a company, looking for a EA code on a strat i had developed in Esignal. It is written in C++ for esignal. I can give the details for it. Looking for a editor or a company, individuals I will consider as well, this is a pay gig, not a simply project, looking for someone who is well...
Hi all, I need a programmer to code a simple trading system (MA crossover) Regards, Rich
Hi to everybody, I'd like my EA would open different pairs at the same time but now it opens only the first one pair not the second. Can anybody help me???? Thanks a lot in advance. My script is something like this: //---- input parameters extern string sPair1 ="EURUSD"; extern string...
hi all, i'm trying to learn how to code, but i faced a problem now. I tried to incorporate the EMA_Angle indicator into an EA as a filter. My code below works when I just go long if maAngle > EntryAngle_Threshold and short when maAngle < -EntryAngle_Threshold. int ema(){double maAngle;...
  Showing Pips (2)
Hello, Using MT4 with a EA i downloaded, the results are in the Terminal in Euro's. Is it possible to show the results in pips? Kind regards Mario
Hi All. Im new here and almost everything seems confusing. I trade forex and have been looking for is a simple ea(which apparently to me is herculean) which can do some work for me and hopefully reduce my workload and stress. I hope and pray i find a good shepherd here who is able and willing to...
Hi, Would anyone know how to display volume in the chart window? It is easy enough displaying it in a separate window, but I am having problems placing it in the chart window itself (at the bottom border). My code is listed below. If I use #property indicator_separate_window, it shows in a separate...
Hi, I would like to run my EA at one account on different timeframes und currencies with different settings. So I gave the EA in every chart a different Magicnumber for identifying the orders. The different Magicnumbers were shown in the orderlist, but the EAs interfere each other in spite of the...
Hello, I'm looking for a way to plot dots in my ea which shows the calculated trailing stops. I would like to displays dots like a parabolic SAR indicator. As I can see, ObjectCreate() is only able to plot arrows, lines, rectangles,... but not a dot or any other alphanumeric characters. I you have...
hello, is there a way to get,or programming, the internal mt4 indicators visible on the chart ? KR
Greatings MQL4 coders and a happy new year!, My current AE has a function like this: double FunctionName(double& Array1[], double& Array2[], double& Array3[]) Because of the use of that ampersand char (needed because their values are changed within this function) it seems impossible to declare...
i need to know how to show standard or custom indicators on a chart when an ea attached to the chart . can u guys help me out ...
Hi. I'm interested in controlling the scaling of a chart from my MQL4 code, for the purpose of keeping certain markings I am creating always visible on the chart. For example, say I am creating a mark N ticks below the low of bar. If the market is in a downtrend, and the recent bars are near the...
Ok, I'm not a total noob to programming and I've been working with MQL4 on and off for a little while now....although not consistently enough I might add. Here's the question. I have a couple EA's built and a few Custom Indicators and I would like changes made to the external variables of the EA to...
Hello and Happy new year. I have a problem activating some scripts. I tried to activate a script for buy, and it doesn´t work. Later I probed with modify and close order script of mql4, and it doesn´t work neither. Later I probed with an script with only alert function, and this worked ok. ¿why the...
I run optimization on an EA with 0.01 fixed lot size on $10,000 account for 9 years of 1H chart data, I have 120 passes so far - how do I pick the best ?? should I pick them by expected payoff ? or minimal drawdown ? or profit factor ... ? ? maybe some combination of those ? THANKS !!
If anyone has had a look at the rubbish data that MT4 downloads you'll know that its probably useless to backtest with. Personally I think its appalling that we should have to download such rubbish. So, does anyone know where I can get some good data that is useable for backtesting. Thanks
  EA question (4)
I like to modify an EA Currently I’m using the “present candle” and the “previous candle” Originally I have this: int start() { // M30 double ma_m30_white= iMA(Symbol(), PERIOD_M30, WhiteMA_M30_Period, WhiteMA_M30_Shift,WhiteMA_M30_Method, WhiteMA_M30_Price, 0); doublema_m30_white_pre =...