MQL4 and MetaTrader 4 - page 1679

[Deleted]
To whom it may concern, We are a Swiss based investment management company having developed an automatichedging/investment strategy for our clients and are looking therefore to becomean IB for a major forex trading house. Currently we are screening the market. Wewould be pleased if you could...
I know how to have the indicator update every new bar but is there anyway to onlyhave it update every new day? Also is there any function in mql4 that gives you market open and close times?I can't see anything myself. MarketInfo() doesn't give you this information. Cheers.
[Deleted]
Hi Can anyone help me. I am trying to write an Indicator called ROM200 to open upin a new window. I am new to this and even though a programmer myself, I do notknow C like langauges. Indicator I need For each closing price on a daily chart, I want to plot the ROM Oscillator calculatedas follows...
  Is the tester working correctly ?  (63   1 2 3 4 5 6 7)
I notice that the tester often overestimates profits. Some trades are closed with a large surplus in places where the price was not even ... as a result, put the EA in the real world and it loses. How do I feel about it? How do I fight it? I finally want to get accurate data from testing
On the website of the Automated Trading Championship 2006, the "Championship Report: Fifth Week" has been published. It briefly summarizes the results of the week. Hendrick scoredoff Vdiddi38 and took the first place. The third place was taken by ldamiani withthe same open positions, Sashken sank to...
  Offering the game !!!!!  (96   1 2 3 4 5 ... 9 10)
How about creating a bank of ideas.... Traders who have ideas should post them in this thread. Programmers who like ideas make Expert Advisors and send copies to those who gave them. As a result, everyone wins .... I have enough ideas for a book and want to share them all
I want to test my EA, but I haven't got enough history data (M1 or tick data). How can I get more data? I have downloaded M1 data from 09 10 2006 with MetaTrader (Velocity Trader). My EA uses GBPUSD , Daily. Could anybody send me history file? Or help me to download detailed data
[Deleted]
Hi all, I'm having a problem calculating the moving average of the RSI. I thought thatI had the code right, but, the values I'm returning from the code are differentthan what I'm getting in the indicator window. I've attached a screenshot (yes,I'm having similar problems with the Bollinger Bands...
Hello All I have been looking at some of the EA programs and their results and pleasantlysurprised to see some of them very successful. Iam looking for an EA for Live Trading. If any body has an EA and willing to SELL,Iam ready to BIUY for a reasonable amount I am not looking for extra-ordinary...
I was thinking that my ea (which depends on ms time) running with 200 others might not trigger correctly, because 200 ea's on the server and each one taking at least 20ms would cycle each ea every 4 seconds, which would kill my ea, but got to thinking, the system uses an interupt during each cycle
can ea work if a computer in state of off?
What is better for you ? 1. if you trading manualy, plz. post yr indicators and comments, charts etc.... 2.if yr tradnig using EA, plz. post everything statement, broker alowed scalping etc.. I hope that one of the moderators will follow my mind. Or this is another stupid idea ? 3. Or diffrent...
[Deleted]
  My First Expert  (2)
Hello guys, Thank you for the great site; I am trying to write my first expert; I would appreciate if someone can take a look at it and get me a feedback aboutit; its not that wow thing; I am just trying to get myself familiar with the properstructure for writing expert advisors; my expert should...
Hi I just wondering is there any way to find out if an order was closed manuallyor by an expert? Thanking you in advance,
Greetings, I'm trying to create an envelop around an SMA, so altogether I have 3 indicators i.e. SMA itself, the upper band and the lower band. In my code, indicator buffers allocates memory for maximum allowable 8 indicators. However, only 2 first indicators (out of 3) show up on the chart. The
[Deleted]
Greetings, Can anyone, please, help me to find answers to these questions: 1. What is the difference or relation between AccountFreeMargin and AccountMargin? 2. Is it true, that 'AccountProfit' and 'AccountEquity' are may have non zero valueonly for account that holds currently open positon? 3....
Dear Boaders, Does anyone has any idea how to code asterik * sign in the external input dialoqbox while we key in the numbers? The reason of doing so is because i have createda password to login to my EA for distribution and i wanted to mask it from preyingeyes. Thank you for any help. My code is...
[Deleted]
How can you make an expert end from within it own code?
[Deleted]
Hi: When I write on a a chart, is there a way to make that part of the chart showin the terminal. The backtester, for instance, re-creates a chart, bar by bar,and we can see it drawing the chart bar by bar, with the most recent bar alwaysshowing. But can indicators be made to do this? I guess I am...
Hello there, I've got some weird math here. Somehow substracting a double from a double, which are never equal BTW, produces zero. Could please someone explain this phenomena? Below is the code and output. double sixtySMABuffer[]; double sixtySMALowerBandBuffer[]; int init() {
[Deleted]
I posted a question about pointers to functions a little while ago, ('Pointers to Functions') and was satisfied with the responce I got untill I came across this in the documentation: https://docs.mql4.com/constants/errors ERR_WRONG_FUNCTION_POINTER 4001 Wrong function pointer. There must be a...
-
i mean the whole equity not trialling order by order if yes ..how pls?
  Bolltrade  (11   1 2)
sorry no speak english uniquement le français paire :eur/usd time: M5
I find int var1=StrToInteger("1024"); but hoe convert a interger to a string: int x = 1234; string xx = ?????(x): ????????
Hi, By some reason, Print() function doesn't output anything in the log in my newlyinstalled Alpari. However, it used to perfectly work on FXDD. Any ideas why itis so? Sorry for a bunch of silly quesion, guys, - I am completelty new to MT programming.
Greetings, I want to iterate through all bars of the timeframe which may not becurrent on the chart e.g. the current time frame is daily, and I'd like to iteratethough hourly e.g. iTime(NULL, PERIOD_H1, i). How can I get the number of bars on the hourly chart? Usingwhile(true) with break when some...
Greetings, Does anyone know if there is some function to get the current chart timeframe? I realize that this info can be obtained by comparing times of 2 adjucentbars, but this approach is definitely more involved. Thank youin advance.
[Deleted]
Could you please explain how works and how to use OrderCloseBy ? I have not found a clear explanation in the documentation neither any detailledexample. thanks
  int x = double y ?  (14   1 2)
int x; double y = 1.00000000; x = y; This is a simplificated code from one of my scripts, that behaves strange. I foundout why: When I do this, x will be sometimes 0, sometimes 1. I couldn't figure out yet whatdoes the result depend on. If I use x = NormalizeDouble(y,4) * 10000, then it gives...