MQL4 and MetaTrader 4 - page 1210

To post a new topic, please log in or register
Can some one kindly help to comment on the following code? I got problem for the following code, the last thousands caculation is not corrected, and I had tried to use array initialize funtion and even a for() operation to initialize . but it did not work at all. it looks that the iMAonArray had...
How can I know if there are entry orders or not.
Is it possible EA can do this way? let's say EA open a trade, then EA will add trailing stop 15pips after +50pips profit.
Suppose I use the Hourly bar of a technical indicator for some order entry (this period is hard coded into the EA). eg iAC(NULL,PERIOD_H1,.... When testing using the Strategy Tester, shld I use the H1 or M5/M1 timeframe. I noticed the results are vastly different. I assume that M5/M1 are more...
Hi, is there a program/function available which can find the highest and lowest of the previous trading day (5EST to 5EST)
I use this code into start() loop and I get "Trade not allowed" every time. Any suggestion? bool trade=IsTradeAllowed();if(!trade){Print("Trade not allowed");}
hi, i am a complete newby to mql and, in fact, trading in general. trying to make some sense of how this all works. i am trying my hand at writing an expert advisor script. the idea is to look at 5 minute . at present the script dumps the time, closing price and 7/21 period averages. a sample of the...
New article Market Diagnostics by Pulse is published: In the article, an attempt is made to visualize the intensity ofspecific markets and of their time segments, to detect theirregularities and behavior patterns. Author: Sergey Kravchuk
  API? (4)
As I understood MT uses only MQL2 for programming & doesn't provide any APIfor programming in any other language (I'm interested in C#)?
Iliya
Forex system. This is a set of instructions prescribing open and close trading positions based on the results of technical analysis. Commercial systems can get rid of the randomness in the sales process. Follow the system will exclude emotions from trading. Therefore, anything that requires a...
How to append to an existing file? I search the documentation's file functions and find that the FILEOPEN only have modes of FILE_READ and FILE_WRITE. If I want to append some data to an existing file, what can I do?
I notice that selecting from the menu "Insert - Indicators - Custom", my custom indicator list is not updated compared to what I see in the editor and it is getting bigger and bigger even indicators are deleted and refreshed in the editor. How can I update/refresh the list in the menu? Thanks for...
hi friends pleas tel me how can i lern to automated trading
I am very perplexed as to why #1 Meta quotes would limit the buffers to 8 rather than 16 or 32.... it's the 21st century and we have the memory now.... secondly I have tried my darnedest to try to emulate the trend indicator "Bollinger Bands" use of levels. Through the levels one can resolve double...
Why isn't the volumes indicator available to call in MetaEditor technical indicators? I realise I can use ivolume to get the values but I wish to have it displayed on a backtest chart as a histogram and extract buys v's sells info. Am I supposed to write it myself and re-invent the wheel? Any help...
Hi Guys, I am just learning about forex and I don't understand exactly what MQL4 is. I also looked on a forex trading education website called ForexFace, which friends recommended to me. Anyone heard of it. I would be glad to get an explanation about MQL4. Thanks
To be frank enough, Metaquote has began a long journey, but at the present stage, EA Development cogently need a more strong handy interface to bridge bottlenecks and/or shortcomings of MT4 ticks data and MQL4 Development processes of EA codings. Isn't it dear co-developers?
  Going Live (9)
Hi, I am a newbie, and have prepared my EA. Now I want to go live. Can anybody let me know whats the procedure. I amy go with FXCM. What setups are needed on MT4 to allow my EA take control over Live trades. For mini trades, what should be the lot size fixed on my EA. Some borkers do ont allow 0.1...
Hello, I wish to have an alarm indicating when a Doji Star has been created. Is this possible? Thanks, Fred
New MetaTrader 4 Client Terminal Build 217 has been released. What’s new: MQL4: Fixed a compiler error that caused crash in Microsoft Windows Server 2008 operating system.MQL4: Fixed an error in the FileReadArray() function. When reading array lines, the number of read lines is returned now.MQL4:...
Hi!! I have some questions about optimization process. This is my case, I have to optimize two parameters: Period: 1 unit steps Sensibility: 0.001 steps. Currently I run optimization test for the two parameters at the same time in this way: Period: Start 1, End 41, Steps: 1 Sensibility: Start 1,...
what function is used to terminate the trades below a certain equity level. Say I want to stop out of the trading once my total account valuy drops below N during a trade. I know the quity function, but it is useful only at the time of opening a new position. I need something to be controlled...
I have created the the following code and placed it in the library folder, as well as the experst folder.  I also renamed it MyLib.mqh,  and I also renamed the ex4 resulting from compiling MyLib.mqh. : //+------------------------------------------------------------------+//|MyLib.mq4...
Can I use the same magic number on a bunch of concurrently open trades?  I would like to test a few startegies at the same time on the same account, and I would like to be able to use the same magic number on all trades executed by startegy 1, so that, when they close, I know which startegy to...
Hi there, I need help on this. I want my custom indicator to be tick independent and run every 10 sec. I looked at the forums and tried : int start() { while( !IsStopped() ) { WindowRedraw(); Sleep(10000); // my code } return(0); } And also tried: int init() { while(...
Hello, I have an indicator that makes alerts (signals) in metatrader. I need a script that can place the trade that the indicator has given an alert, in the direction with a stop loss and take profit that can be set in before, any ideas what/who and if this can be done? Thank you!
HELLO PROS, IM A NEW BIES AFTER STUDIES HOW TO USED EA AND HOW TO TEST IT, I DOWNLOAD SOME EA FROM THE ONLINE LIBERARY AND ATTACHED IN MY CHART BUT IT DOES NOT WORK, WHAT HAPPEN, DO WE HAVE SPECIAL EA FOR SPECIAL CHART OR WHEN SOMEONE CREATE AN EA ITS FOR A PARTICULAR PURPOSE OR DO WE HAVE SOME EAs...
Placing the curser on the currency line (Point) a small window appears showing open, high, low, close and VOLUME. On the M5 chart I sometimes see VOLUME 145? Does this mean 145 lots traded during the line segment? Is this representative on the entire Forex, or just a small percentage? What is...
We know we can create a trend line on the screen. But, is it an object that stays on the same position as it was placed. But, can we take a indicator like CCI or Stochastics and have them move and give them responsiblities like open and closing trades?
What will you tell about a demo the account? Increase in depot in 330 times for 2 hours!!! Working Orders:TicketOpen TimeTypeLotsItemPriceS / LT / PMarket PriceNo transactionsSummary:Deposit/Withdrawal:0.00Credit Facility:0.00Closed Trade P/L:3 393 973.85Floating P/L:0.00Margin:0.00Balance:3 403 973...