Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1217

To post a new topic, please log in or register
Hi I noticed sleep(900000) does not work in strategy tester. What I would like is the start to run every 15 minutes and not on every tick. Howcan I do this? L.
Hi, I'm trying to write an Expert Advisor, tho I am not very far along. Could someonehelp me with some programming? What I am trying to do is have a trade open when the price closes between the 1and 2 standard deviation bollinger bands. I thought I had figured it out, but whenI went and backtested...
On the given site there are results of testing of the automatic dealer (Expert Advisor)for the program for Meta Trader 4. http://www.forex-expert.net I wish to learn your opinion.
double a[]; for (int i=0; i<Bars; i++) { a[i] = (3*Close[i]+Open[i]+High[i]+Low[i])/3; } ......... what`s wrong with the code above?the a[i] seems get nothing?when I used Print()to check the a[i], I found a[i] is zero,why? can somebody help me ? Thanks!
i have a multicurrency EA and i always get the mail that i have to much errors,but only the error 4106. this is a normal error and i read in your articel that this will be ok for multicurrencyEA. in the description there is a information about the fact of muticurrency EA. butuntil now my EA is...
How one can change a custom indicator to one of main indicators of MT4 In main indicators, one can draw indicator of another indicator (e.g. MA of RSI),but it is not possible for custom indicators
Here is the code:       ticket=OrderSend(Symbol(), OP_BUY, max_slippage, Ask, max_slippage, Ask-take_profit*Point, Ask+lot_size*Point, "Long Order", 31337, 0, Green);      write_time("OrderSend BUY");      if(ticket<0)       {        Print("OrderSend failed with error #",GetLastError());...
when I submit my personal details in the Private field the Message box alert : Selectlanguage what dose it mean? I can't finish the regristration. By the way:Passport number is necessary? Can idcard number be used? I don't have a passport, because it is no use for me . If Passport number is...
why my account is count in litigation benoit
What is the difference when coding to get it to run on a mini account rather thena standard account? I have a working program, but it wont run on a mini account. Any suggestions? Thanks
Would MetaQuotes please explain and/or actually look at the Terminal code and sort out or something... I have depended on how this function works... is this too much to ask? Like I read the docs and assumed that such a simple bit of coding would actually work as documented... how wrong [yet again] I...
  Hiding code (1)
I'm new to MQL4 but have been programming for over 25 years. Is there a way to distribute an indicator without distributing the source? If so, how does the user load it?
Hello, i completed my registration today in all details, how long will it take, that iknow all is ok or i have to change some little details (but dont think so, allrules are accounted). i hope for a answer. thanks
my mt via server by the proxy server , but i tried to send report by ftp it doesn'twork, click test , nothing happend, and the journal record nothing.
Hello again, As you know, I already downloaded RobotPowerM5_meta4V12, Copyright @ 2005 from this site. I tried to use it but, alas, I'm not capable with computer language or somethinglike that, so I don't understand what I must do after download it... :( So, how to use it in Meta Trader? Can anyone...
Please be informed that an article devoted to working under firewalls and antivirusprograms has finally been translated into English. Abstract: The most of traders use special programs to protect their PCs. Unfortunately, theseprograms don't only protect computers against intrusions, viruses and...
First I would like to say thanks to anyone who helps me with this EA. Im a newbat programming and have been working really hard to try and get an EA that willtrade based on the standard momentum indicator. My idea is to only have one positionopen at a time. If no position is open then the EA will...
I have a trading system that i have purchased, (I don't have the code) and I wouldlike to add a trailing stop automation to the trades.  Can I have the purchasedautotrader initiate the trade and then have on another chart window, have anotherexpert advisor monitor the trades and initiate the...
I have some real basic code here but I can't seem to get it to work because I donot know how to get the ticket number from current or open order. int start(){ double buyhigh = High[iHighest(NULL, 0, MODE_HIGH, iBarShift(NULL, 0, OrderOpenTime()),0)]; if (Close[PERIOD_M1] > Open[PERIOD_M5])...
Quick question. I think: A standard lot = $10 (per pip), (1 lot)... A mini lot = $1 (per pip), (0.1 lot)... A micro lot = $0.10 (per pip), (0.01 lot)... If the above is correct... Is there a such thing as a penny pip?
Indicator Alternative Ichimoku – Setup, Examples of Usage How to set up Alternative Ichimoku correctly? Read the description of parameterssetting up. The article will help you understand the methods of setting up parametersnot only of the indicator Ichimoku. Certainly you will also better...
I get these lines in the log. What could this mean and how to avoid it? 2007.09.19 00:01:01 Conquer inputs: TP=1100; SL=200; 2007.09.19 00:00:58 TestGenerator: unmatched data error (high value 224.5000 at2006.11.03 19:00 and price 224.5500 mismatched 2007.09.19 00:00:58 TestGenerator: unmatched...
TRailing stop code ; for(cnt=0;cnt<total;cnt++) { OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES); if(OrderType()<=OP_SELL && OrderSymbol()==Symbol()) //&& OrderMagicNumber()==MagicNumber { if(OrderType()==OP_BUY) //<-- Long position is opened { if(Bid-OrderOpenPrice()>TrailingStop*Point &&...
Hi, I'm unable to upload file for championship. My filename is aks.ex4. But it shows error as only latin alphabets allowed. kindly help.
If I try to express a condition in which a downtrend of 15pips aroused , is a following code right ? I think this code will be useful when we try to catch a trend of which a startingprice is unspecified ( for example when we begin the trade newly) . int y; if( Low[0]==Bid &&...
I have a 61 EMA line and would like to input a line 20 pips above and 20 pips below.  Can anyone help me with this?  Many thanks.
How far should one backtest a EA to determine potential profitability. 1 year? 2-5?more? I understand the overall nature of the market changes from year to year, so an EAthat works now might not work in the future, or might not work in the past. What are you guys' thoughts?
I want to make just a simple EA based upon an indicator that has "up"and "down" arrows.  All i want to do is trade based upon directionof the arrows.  How do I import this data from the indicator?  Thanks
int TEST1 [20]; int TEST2 [20][2]; int TEST3 [20][2][2]; ArraySize(TEST1) = 20; Great for 1 dimension arrays ArraySize(TEST2) = 40; As the is 2 * 20 elements in the array ArraySize(TEST3) = 80; As the is 2 * 2 * 20 elements in the array I want to get the number of lines/records in TEST2 and TEST3,...
Hi All! How can I make a code to know the bid price of a specific time? For example: I'd like to know the EURUSD bid price on 2007.05.03 15:35. What isthe code? Please, help me! Thank you!