Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1167

To post a new topic, please log in or register
Hi all, I have this entry condition: Bid > High[1], were High[1] is the highest bid of the previous daily bar. I need a condition to avoid the trade if the Bid price forms an up gap with High[1]. How can I proceed? Thank you!
Hello everyone, I am new to metatrader and new to this forum as well. However I am very much looking forward to gaining new knowledge on MQL4 and MetaTrader. I was wondering if there is an indicator on the software of a rather modified bollinger band. We all know that the bands are calculated using...
I am wondering is it possible to measure the degree in mql4, I mean I have a moving average that draws dots, connected with a line, I need to be able to measure the degree the line is going up or down? Is that possible ? Thanks!
Hi All, I have a script that creates .hst files from .csv files. The default path for this process creates the .hst's in the experts/files folder. I then manually copy the created .hst's and paste them into the history folder. How can I eliminate this intermediate step and have the script write...
Hello It is possible to run a batch file (.bat) from a program mql4 EA? Thank you
Two years have passed since the first Automated Trading Championship. A lot of interesting information has been accumulated for this time: statistical reports, interviews with traders, useful articles. We present to you a selection of these materials that are divided into several parts. The present...
MetaQuotes: Dear Jurgen Weichert, Errors found in your Expert Advisors during checking: What is this error? One error? What is that? Big Lot? MarginCall? -- I restricted in three orders. The drop in U.S. influence in its currency USD. -- When the currency rises U.S. dollars and the euro...
Hello, Anyone has CycleIdentifer indicator which does not repaint. Thanks GK
  ADX(14,9) (2)
ADX (14,9) codes? Is there any MetaTrader's ADX indicator allows the user to smooth the value withanother second one: Standard ADX indicator of metatrader allows to use only withone parameter eg. 14, 20 or any number of period but doesn't permit to smooth thisvalue with a second parameter eg. 9, 3...
Hello There, I would like to know the posisbility of regenrating the MAGIC Numbers. I have an incident were my broker reset all my magic numbers for opened orders and My EA was unable to manage opned trades anymore. Your help greately appreciated.
MetaQuotes: Dear Jurgen Weichert, Errors found in your Expert Advisors during checking: What is this error? One error? What is that? Big Lot? MarginCall? -- I restricted in three orders. The drop in U.S. influence in its currency USD. -- When the currency rises U.S. dollars and the euro...
MetaQuotes: Dear Jurgen Weichert, Errors found in your Expert Advisors during checking: What is this error? One error? What is that? Big Lot? MarginCall? -- I restricted in three orders. The drop in U.S. influence in its currency USD. -- When the currency rises U.S. dollars and the euro...
Hello, Some programs would be easier if one could store information in a multidimensional arrays (MA). But, it seems some of the MQL4 functions don't quite handle the MAs yet. I'd like to do SetIndexBuffer(0, SarBuffer[index]); or SetIndexBuffer(0, SarBuffer[index][]); Where SarBuffer is a two...
Hi great guys, I'm new to MQL4 and would need help on some basic things that I didnot manage to search for in the forum. Here is my first tentative code for a scriptto close the current buy order if price crosses below SAR: int start() { //---- if(iSAR(NULL,0,0.02,0.2,0)>Close[0]) {...
Color Printing without Trend lines (Fib-lines) Error ? I am trying to print charts with color, but some trend lines are missing in the print out ! Do I have some ill-settings or is this a known bug @ MT4 ? Thanks for any reply ! :)
Hello, I made a little modification of the conventional ADX indicator, I'd liketo call it Smoothed ADX, please refer to the pic below for comparison, the upperone is the smoothed ADX, lower one is the normal ADX. I wrote the code in EasyLanguage,but i'm not that proficient in MQL4 programming, I was...
Dear Friends, I'm not a programmer, but I want to make mq4 based on rsi 14, on level 30 & 70 alert with a pop up appear "sell or Buy on every pair curency". So if I put this mq4 into eur/usd : when the candle reach rsi "14" into 30 area on eur/usd, it will be an alert with the pop up "Buy...
hi i use a system that has Multiple indicators,i have their codes. i want to write its expert but i don't know how read indicator values in my code. for example : there is a Momentum indicator in my chart and i want to know when it cross the smooth line? how can read this indicator value ?
Howdy, I am trying to accomplish a partial close of an order. After finding the order I use this to close some of it. if (OrderClose(_t,0.01,Ask,5,CLR_NONE))tsNumRetries=0; This is on an OP_SELL order. It shows the close in the "results" area of the back tester and it shows...
Hi. I am trying to cycle through a period of chart timeframes, i.e. 15, 30, 60, 240, 1440, using the array period[] = { 15, 30, 60, .....}, but also want to make a calculation of: for(int y=1;y<5,y++) { Difference = iHigh(Symbol(),period[x],y) - iOpen(Symbol(),period[x],y); } Where y is the bar...
Hi, what I wanna do is make an EA really stop itself, i.e. detach itself from the chart. How does that work? Is it even possible? If not, how to close the chart window it has been attached to? I tried to use SendMessageA(), couldn't get it to work though. best regards, Daniel.
How would i be able to do this? So the EA will only be usable on the accounts i want it to. So maybe add account numbers in the EA, so only those which are in it will work.
Hi guys, I need someone to make me an auto pilot trading ea that will use only the MACD and its signal line to trade any currency any time frame and I should have the right to change the parameters. We can negotiate the price. Interested parties should contact me at suwadbureau@yahoo.com for more...
After the verification of my Expert Advisor is complete, can I update it before September 17th?
I need indecator for S,R month,week,day.each time fram has to be in difrent color.and show as simple line. I need it to mark every single candle.so i can apply it on charth 15 min and trade. Moshe.
Hi there, I need some programmer to code the following idea I have.This strategy is based on 2 moving averages and Volume trading, but manually is difficult to trade since there are several aspects that influence manual trading (emotion, time to trade, etc.). I do not believe to be very dificult to...
hi, i have changed this MoveStopOnce so that it works off the stochastics crossing below 50 (sellorder) above 50 (buyorder), not sure if its coded correctly. it seems to work when the trade is in profit but i want to add to it so that it closes the openorder when the trade is < openprice. //MoveOnce...
Can someone advise me on how to get the mtf_bb_squeeze indicator to show up? Other indicators I have downloaded seem to work all right. Is there something missing in the code I need to input? Would really like to use this one. I tried it on forex Yen chart, 4 hour. I tried to put in either 0 or...
HI, from my experience so far,using mql4 platform for trading with different brokers, i observed that occassionally, i experience "no connection",and atimes i get "common error", my problem is that i trade with Expert Advisors, what happens to the trades placed by it whenever this problems occur,...
In the rules of the CS20008 it is not allowed for scalping (when 25% of Orders are closedwithin the spread....) when i search in google or other sites there are few descriptions of "what is scalping" But it seem that few traders have few oppinions. So,what is the oppinion here, what is scalping? I...