General - page 1968

Hey you all, 5 files. Put them in the experts directory Compile A.mq4 Compile B.mq4 Compile EA.mq4 Put EA.mq4 on a chart Watch the "Experts" Tab Search these 2 lines in the "Experts" tab: ScenarioA: 1 ScenarioB: 0 !!!!!! Error in scenario B: Lib B has a variable named b When the EA Calls Lib B...
First the suggesion. One of the key combinations I'm using often in MS VisualStudio is Ctrl+F3. It takes the marked text as the basis for a search without opening a dialog. Would be nice to have that. The two mini-problems ar related: First, sometimes when I type text, the dropdown list with
I'm trying to change the symbol properties to make the spread from the default 4 pips using MT4 latest build. How to do it?
How can I force the expert to recalculate everything when a new tick comes? This was an option in metatrader 3, "Update on every tick := Yes" Thanks Cengiz
I wrote an indicator which changes when 'refresh' on chart is called, is it possible to automate the refresh function within MQL4 code?
i have some propertys in expert what dose that mean #property indicator_chart_window #property indicator_buffers 6 #property indicator_color1 DarkViolet #property indicator_color2 Blue because i can't find it in the help
Hi all, I tried the function successfully for indicators but it always returns 0 for experts. Anybody has some idea? Regards, PQDzung
Hey, I'm a little stuck here while making a modification in broker interface. Now I need to write a function that correctly recalculate the OHLC prices of candles in metatrader platform. Metatrader 3 chart combines both Bid and Ask price in the same candle (High of candle is the highest ask...
Would be good if you could fix up real-time and historical bar data in MT4 - not vaild, poor quality
Why do you check suffiecent no. of bars at end of program - this should be done first, so experts can calculate properly - re MT4 trend follower example. you have done the right thing tho in MACD example
I discovered that there must be some lower limit to the expiration parameter of OrderSend; ie, the order can only expire more than X minutes from the current time or the OrderSend() fails. What is X (the number of minutes or seconds from the current time)? The following code would work on a 15min...
HELP!!! Hi all, I hope somebody can help with the indicator that I'm working on. I'm using the ObjectCreate fuction to create a vertical line when certain parameters are met. I want to take it one step futher than I have it, but I don't know how. What I want to do isn't really about ObjectCreate....
  Breakpoints?  (1)
Breakpoints - is this for future option? or it is working somehow? Regards Rafael
... create an Elliot Wave Indicator which would "identify" and "number" the Elliot Waves directly on the MT-4 Charts? If any members or MetaQuotes Staff can do this, or if anyone knows of someone else who would be able do this, please post here or drop me an email. Thanks in advance...
  Chart duplicate  (1)
How can i duplicate a chart with all loaded indicators? is there an easy way?
Hi all, One of broker in my country v interested to get metatrader 4 as his terminal . Is it possible to implement any V-SAT data feed into metatrader server and to manage trades via Metatrader4 can any one advice what will be budgetory cost for broker integaration i heard from some brokers it...
Hi all, I can't for the life of me figure out how to change the item zone used for the charts and data window. I am trying to set my forex charts to EST isntead of the default. Thanks for your assistance!
What is the diference between an "Indicator" and a "Script"?
Could anyone make me a "Truncated" Moving Average Indicator for MT-4 (or simply provide the script). By "Truncated," I mean the moving average lines would only extend back for about 15-20 bars, rather than back to infinity. Other than that, it would just be a typical MA with simple, exponential,...
I have the problem that my Expert Advisor keeps firing multiple orders during a bar. I tried to limit the orders to the beginning of the bar by using: ... datetime prevtime=0; ... if(Time[0] > prevtime) { //execute my OrderSend function } ... prevtime = Time[0]; .....
I need some help urgently... Please contact me at benwiid at mweb dot co dot za
Hi, The Start subroutine is called by the system every tick. If I count limit=Bars-counted_bars then limit is usually i0 to i2, or i0 to i1. which is repeated for a period of time frame, in my case M1. I do understand updating and building of the current bar i0 however, why is it necessary to...
hi, have all MT 4 Broker webservices ?
  Strategy tester.  (107   1 2 3 4 5 ... 10 11)
You can kind of tick the box. There is a strategy tester . It's not realistic to work with, but it's fine for a tick. And speed tests for different languages were they checked in the tester? I think the difference in speed tens of thousands of times. For example, the tester I wrote does a half year
Could one of you fine MQLII programmers tell me what statement can be used to to sound an audible alarm on a custom indicator? It must be compatible with a MQLII Custom Indicator. Your help would be very helpful. Dave77
I want to know what kind of script I would write to access and determine whether the most recent order was closed by a stoploss or takeprofit. How would I go about doing this?
Is it possible to trade more than a single financial instrument from the same expert. If I try to set symbol in OrderSend function to anything else than the symbol that was set in the strategy tester, I get the following error: unknown symbol name ... for OrderSend function. For instance, if...
WHICH MODEL. TICK, CONTROL, OR OPEN PRICES REFLECTS MORE CLOSELY THE RESULTS OBTAINED IN REAL TRADING?
I've been having problems using arrays in experts. I did a simple test below to load closing prices into an array in an expert and then print the results (output in the expert tab) - and all I get are 0.000000 instead of the closing prices. So apparently nothing is getting loaded into the array!...