MQL4 and MetaTrader 4 - page 1218

To post a new topic, please log in or register
New article Expert Advisors Based on Popular Trading Systems and Alchemy of Trading Robot Optimization (Cont.) is published: In this article the author continues to analyze implementationalgorithms of simplest trading systems and introduces backtestingautomation. The article will be useful for...
Hello: I have been having many problems with the strategy back tester. I start a new demo, down load all of the data from 1999 on all time frames. Then I run many back tests and optimizations for my EA on different time frames. Then after a bunch of testing, all of a sudden I get mismatched chart...
Hi, I just started to programming in MQL and I wished to write a EA to detect divergence of stochastics against the price. I would like to open a trade when the stochastic main crosses below the signal line while the price is making higher high on close of the current bar. I tried but it seems that...
WHO WANTS TO: 1)AUTOMATED THEIR SYSTEM SIMPLE<50$ MODERATE<100$ HARD<200$ COMPLEX>200$ 2)ADD ALERT TO INDICATOR: 1 INDICATOR COMFIRMATION ALERT=20$ 2 INDICATOR COMFIRMATION ADD 10$ MORE EACH INDICATOR ADD AFTER FIRST INDICATOR WILL BE CHARGED FOR 10$ 3)ADD A LITTLE FUNCTION TO CUSTOM INDICATOR SUCH...
After attaching an Expert Advisor to a chart, must I have the computer on 24 hoursfor EA to activate the trades? I'm asking because I attached an EA to a chart yesterday,then I turned off my computer. 24 hours later I turned my computer back on andthis EA already opened a position while my computer...
hi, glad to know u are reading this my trading strategy is combining 2 ema cross-overs with parabolic sar, and i don't forget to use take profit,trailing stop,and stop loss for all my trades. now,i would like to write an ea on this strategy of mine,but i don't understand anything in meta trader...
For example, what was the High of the minute bar for 6:15 GMT on Wednesday, March 26, 2008 (EUR/USD)? Or find info for a range, for example: What was the Low between 10:00 - 15:00 EST on Thrusday, January 24, 2008(USD/JPY)?
As I am typing this ... if i try to make a correction by pressing the backspace key it will kick me back to Documentation and whatever I was typing is lost. Only way I can make correction is by using left arrow key and then delete or by highlighting and correcting. This problem only happens on this...
Is there a way to programmatically get a list of all the symbols the broker supports?
I've tried searching but can not seem to find the information. I would like to take the charts that I use on my laptop and use them on my desktop computer?
Hello, I need to execute an exe from an indicator. I have searched around and found ways to use shellexecute to open a document, but not a way of executing an .exe with no shell mapping (the application i want to use sends messages to IM clients from the command line) Is there any way of doing this,...
00:03:22 '303313': trading by experts is prohibited 00:03:22 '303313': trading by experts is prohibited 00:03:37 '303313': trading by experts is prohibited
Is there a new line command for comments?  So instead of: comment 1 comment 2 comment3 I could have: comment1 comment2 comment3 Also, is there any way to change the color of parts of the comments?: (white text)comment   (red text)1
1. How can I tell if start is being called the first time in an EA? Is there a way you can tell which day you're on (Bars-1 or 0, eg). 2. If I have more that one buy of EUR/USD (eg) how can I calculate the average cost of my position given what I paid for each order and the lot size of that order?...
Hi. Somebody using Hawkeye Trader system?I am interesting of the result,because toolkit is very expensive. May sombody has EA for Imran Sait System? I'm searching Expert Advisor made with the Imran Sait System, doeascan some one can send it to me. grzegorzuklejewski@wp.pl Sorry for my english. Have...
Hi All, I am a beginner here. Can someone suggest me any artiles or forrum topics about how to use strategy tester. I am trying to test some code using historical data. I am trying to use the visual mode but when I select the check box and start the testing it is completing the test with in seconds...
Greetings, It seems that the x-axis is locked and we can only plot charts on time. Is this correct? If this is true (and I hope it's not) I can't use MT. Time distorts visions like gravity distorts light. This would be a terrible hindrance to be stuck with having to view market data with the skewed...
attached pic is K Kines of EURUSD ( Period of 2008-02-07-----------2008-04-28),I used in another currency tools . A:=MA(CLOSE,1); B:=(LOW+HIGH+CLOSE)/3; C:=MA(B,5); D:=HHV(C,10); E:LLV(C,10); and I want port those codes to MT4 platform,but it does not work like the pic ? thank you !!!!! #property...
This always results in 0, no matter what the market does.  What is going on?//find average body over the last 12 1 minute barsfor(int j=12;j>=0;j--){   BodyAve += MathAbs(Open[j]-Close[j]);      Count++;   BodyAve = BodyAve/Count;  }
Hi I want my ea to only open positions between 05:00 GMT to 17:00 GMT but to close them, if they are open and need to be closed, all the time. The idea is to avoid flat market, and assian session. Can this be done???
New article MetaEditor:Templates as a Spot to Stand On is published: It may be news to many our readers that all preparations for writing an EA can be performed once and then used continuously. Author: MetaQuotes
Hello! I would like to know how support and resistance levels are calculatet? Are there more then one support and one resistance levels? I looked at codebase but I don't know which is the best indicator, can anyone help me? Thanks, by!
Hi everybody I've got a file (var.txt) with some variables //************var.txt*********************// double high_d1 = iHigh(NULL, PERIOD_D1, Current + 0); double low_d1 = iLow(NULL, PERIOD_D1, Current + 0); double highp1_d1 = iHigh(NULL, PERIOD_D1, Current + 1); double lowp1_d1 = iLow(NULL,...
I am looking for a EA or a function callwhich can read an incoming mail. I want to set up a system where execution take place based on areceived mail alert. Please let me know if any one can help.
For example, if you are using 1 minute bars, call this fucntion when time changes from (DD:HH:MM format) XX:XX:X1 to XX:XX:X2. If you are using five minute bars, call this function when the time changes from XX:XX:X1 to XX:XX:X6. ???
I am simply trying to calculate an average of volume over the last 12 1 minute bars.  I also notice that when I change timeframes, any EAs I have running will stop (unint 3).  Anyway around this?  I'd like to keep the EA running as I change timeframes and keep the averages based on 1 minute info no...
new fibanacci number-expanding AB=CD pattern-expanding pivot lines (ready for publishing) Introduction I'm going to give an idea of more detail of fibonacci number that can be used as expanding pivot lines or use it as an expanding AB=CD pattern. Your Title new fibanacci number-expanding AB=CD...
i know this has come up a few times but i cant find a clear answer in the other topics or articles. .. I cant use gmail for SMTP because i cant disable TLS (or atleast not aware how to disable it) so when i try to connect to gmail i get : Mail: 530 5.7.0 Must issue a STARTTLS command first...
Hello, I would like to know the expression to calculate : In my EA I would make something like this : - I try 1 lot - If the free margin is not ok, I try 0.9 lots - If the free margin is not ok, I try 0.8 lots - and continue until have the minimum lots to open an order Have you got an expression to...
Hello! I would read two string from file,(file.txt),but don't work for me,I recieive two error message:Too many Opened Files,and File was not found! the file.txt in tester/Files folder. Here is the code: extern string FileName = "file.txt"; int init() { return(0); } int deinit() {...