MQL4 and MetaTrader 4 - page 1228

To post a new topic, please log in or register
When a Pending order type P is issued you can see that the order listed on Terminal > Trade tab has pendingorder type P listed. I have noticed that when the Pending order is activated and becomes market order that the order type listed isbuy or sell. My question is this: If OrderType() returns...
Hi, I am writing a simple script. The script requires me to make a series of pending orders depending on the previous order being opened. For example, i made a pending sellstop order #12345. only when this sellstop becomes a market order to sell, then i will make another pending say buystop order....
Hi, Basic question here... If I have a BUY order (lets say EURUSD) to be placed at 1.5800....Should I place it when Bid reaches 1.5800 or when Buy reaches 1.5800?? If I wait for Ask price...I may be missing some pips (the spread)... For which price should an EA wait for?? Thanks in advance,
Hi all, I m trying to run a backtest for a EA with the same set of test data on different PC, the fuuny thing is among 5 different PCs, 2 of them are giving a very profitable result, but the backtest result from the rest of the PC are all giving poor result, then I realised the trade opening time...
New MetaTrader 4 Client Terminal Build 215:MQL4: Fixed error of constant string concatenation (Expert Advisors and scripts compiled in build 213 must be recompiled).MQL4: Fixed error of the reinitialization of global and static variables of MQL4-libraries.MQL4: Fixed memory leak when resizing of...
Hello Friends If I have the chart open i get an alert to say, required pattern is found, How to make metatrader seach for a pattern in all opened not maximed charts. Or is there any way i can run a script or indicator which can run across all charts and timeframes to search for gartleys say for...
Hi, I'm trying to ramp up quickly in MQL4 and I had some help from the members of theforum. 1. Can I only test my EAs and indicators during trading hours? If not, how do Itest them? 2. Does anyone have the code for a really good MACD indicator with histogram? Ifound one but it didn't print out...
Secrets of MetaTrader. Adding Prices to Fibs The first Secrets of MetaTrader video discusses the process of adding price levels to Fibonacci Retracement chart studies in MetaTrader 4. This allows traders to easily view the price level next to each vital Fibonacci level, making technical analysis...
Hi, I have the following error using the Strategy Tester. TestGenerator: unmatched data error (volume limit 285 at 2008:04:15 15:23 exceeded). Where is the problem? I'm working on the following EA. Thank you. extern double TakeProfit = 30; extern double StopLoss = 20; extern double Lots = 0.1;...
Is it possible in MQL4 to do indicator superposition, for example: calculate RSI on the MA of some currency pair?
Hello, I need to calculate EMA, period 7, on (O+H+L+C)/4. I was searching the forum and found the following article with similar problem 'EMA on EMA on EMA......' Somebody responded that the standard Moving Average tool can do it and that no coding is required and HLCC/4 price can be used instead...
I'm new to programming. I'm building a simple EA. After entry conditions it places two long or two short trades. Here is where I get hung up: After the first trade takes profit, I can't get the second trade to move the stop loss up to entry plus spread for worse case break even. Then...
  Heiken-ashi Zero-lag Tema (91   1 2 3 4 5 ... 9 10)
Hello Traders! I developed new indicator! Found this formula in Trader Tips, it is a part of system "The Quest For Reliable Crossovers" Looks quite nice. Take a look at the picture - you will see what i mean. Why I'm posting few files here ? Well this indicator uses many buffers so i split them to 3...
Hi I wrote Alert but it only works when I open window with my indicator.It works only also when I jump beetwen charts windows, in other wordswhen I jump between charts time levels. It seems that indicator can notcount when whorks. How can I solve my problem ? Need help. Is itconected with...
Truth Consult (Guangzhou Truth Marketing Research Consulting Co., Ltd.) is a professional marketing research and strategy consulting company. Our business is focused on marketing research, public opinion research, and marketing strategy consulting. There are two business departments, Truth Research...
Hi, Can anyone help me ? This is part of the code: nameObj="_"+ExtComplekt+"LineR_" + countGartley; ObjectDelete(nameObj); ObjectCreate(nameObj,OBJ_TREND,0,Time[aXABCD[X]],zz[aXABCD[X]],Time[aXABCD[B]],zz[aXABCD[B]]); ObjectSet(nameObj,OBJPROP_COLOR...
HI seniors, I'm a junior here Just a quick check, is there any tools that can be added to MT4 platform, so that whenever we try to execute any order the system would need to reconfirm, coz most of the time i forgot to change the lot size end up i executed the order . Plz advice thanks
I want to write an indicator the draws fib levels that are not the default used by the OBJ_FIBO. I want to remove the 23.6 and add a 78.2. I have tried using the ObjectSet("Fibo", OBJPROP_FIRSTLEVEL+5, .782); code, but it does not work. Can anyone tell me how I can modify the Fib levels drawn by...
I want my EA to place both EURUSD and USDCHF buy orders simultaneously, then close when it's in profit (in any way) by 10 pips and then immediately place two new buy orders and so on. However, it wouldn't do anything when I place EA on a EURUSD chart. Could anybody provide some insight? extern...
The moving average EA is buying when its suppose to be selling, isnt the code suppose to diferentiate between buy and sell, how do i correct it?
Dear guys I need to send some price data to a dll. inside of dll, symbols are concatated to previous one and at lase forming a string like this: USDCHF;GBPUSD;EURUSD;USDJPY;AUDUSD;USDCAD;EURGBP;EURCHF;EURJPY;GBPJPY;GBPCHF;EURAUD;NZDUSD;AUDNZD;AUDCHF;AUDJPY;CHFJPY;EURNZD;EURCAD;CADCHF;CADJPY;NZDJP...
So do you know any brokers that continue demo trading on weekends? Regards
  Literature (2)
What books to read to learn to programme MQL4? Forex blog. Article about trade forex
CAN ANYONE TEACH ME HOW TO MAKE AN EA ON THIS 1 IM A NEWBIE I WANT TO MAKE AN EA BASED ON THIS INDICATORS TO HAVE A LONG POSITION WHEN THE TSR ISA ABOVE THE I-LRL AND TO HAVE A SHORT POSITION WHEN THE TSR CROSSES BELOW THE I LRL MANY THANKS IN ADVANCE
Hi im dennis im a newbie in mql4 im using the I-LRL-2 color indicator in my trading buying when the candle is above the regression line or slope and selling when the candle closes below the regression line or slope and its good. i just want to ask for some help of how i can put this indicator...
I would like to code slope of a moving average. i.e. enter a trade when a moving average is greater that 40 degrees. Can any one show me how to code this task? Thanks In Advance, ajone92
Hello, May be the subject will lead to some confuse, Sorry, but I can't find any other way to say it. Digits+1 broker is those who use 5 digits decimal for GBPUSD, EURUSD, etc (the common broker usually use 4 digits for GBPUSD). My code is : //---- input parametersextern...
Hello Everyone, Does anyone has an EA for Parabolic SAR that could share with me, I'm trying to test it with a new starategy that I'm working on. Thanks, Mike K.
Hello Everyone, I have been having some serious memory and CPU issues with my system every time I try to use one of the indicators called TriggerLinesAlert.mq4, I think I got it from the code base section…great indicator and great work to who ever created it. Since I started noticing this issue, I...
HEllo there I have bought Aoutotradingsolution but it not working with my broker I guess because my broker using 5 digital price. If anyone know how to set it? please help me to do so