Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1193

To post a new topic, please log in or register
Please watch the following . if (OrderSelect(i,SELECT_BY_POS,MODE_TRADES) && OrderType()== OP_SELL) double a=OrderOpenPrice(); if (OrderSelect(j,SELECT_BY_POS,MODE_TRADES) && OrderType()== OP_BUY) double b=OrderOpenPrice(); c=a+b; In this case , is the last "a" (c=a+b)...
look at this picture please give me some advice.
We would like to ask your help on how to close more than one trades , to close themin one batch.
Can someone confirm if the Demo version is in real time as I am using the Demo versionin UK and the times do not correlate with my actual time
Universal Expert Advisor Template The article will help newbies in trading to create flexibly adjustable Expert Advisors. Author: Vadim Andreevich
So, I just started with MQL4 and am writing my first EA. It's an extremely simplyEA for USD/JPY. On initiliazation it's supposed to generate a random number, normalizeit so the number is either 1 or 0, and depending on the number it will place abuy or sell order. Then on each tick it checks for an...
... and have downloaded a couple of free ones to observe and learn from ... butcannot get them to actually run on demo Any help would be appreciated. Thanks
Hi I am playing around with some code, getting the hang of the MetaEditor. I have got 1) The "Price Channel" indicator code (from this site) 2) The Moving Average Expert Advisor code What i am attempting to do is retain the code structure of the moving average advisorand impliment the parameters...
Hello... i have used pda to trade , unfortunately i cannot add other indicator to my pda. I already check to my pda, but there is no indicator folder in MT4 folder. Normallyin my PC i only copy and paste other indicator into my indicaor folder. but in my PDA there is no indicator folder. Can u...
I want to get the GBPUSD's ASK and BID in my EA excuting in usdcad I learn to program as follows : TotalOrder = HistoryTotal( ) ; for ( i = 0 ; i < TotalOrder ; i ++ ) { if ( ! OrderSelect ( i , SELECT_BY_POS , MODE_HISTORY) ) { Print ( " ----OrderSelectfailed ") ; break ; } if ( TypeSymbol...
Principles of Time Transformation in Intraday Trading This article contains the concept of operation time that allows to receive moreeven price flow. It also contains the code of the changed moving average with anallowance for this time transformation. Author: Amir Aliev
Hi I just bought pda phone HTC touch ( http://www.htc.com/product/03-product_htctouch.htm) with windows mobile 6. I could not install MT4 mobile , error message - not compatible.How can I make this work? thanks
Hello. I can´t find the variable (if there is one) to define level description as we can do in the levels tab. Let´say we define a level as 50, no matter if you´re using properties or setlevelvalue. The only way seems to be writing the description in the levels tab, every timeyou plot the...
Note: This topic's old subject title was: MessageBox() Strategy tester's output ??? Perhaps for clarity reasons, I changed the title. For latest question, see entry below with the highlighted question. Let's say I was using Strategy tester. And let's say I was using my EA code: int ticket;...
Hello, Is there any way for me to back test my EA on 5 min timeframe started 1 January07, or even earlier.? My terminal now only allow me to test up to maximum 6 weeks.. Help appreciate.. Cheers
Hello everyone I'm running an expert on 1m chart. I have a problem when I start the MT while theexpert is placed on chart. The expert start computing its values based on the barson chart (which are not up to date when MT starts). I need a way to make the expert starts aafter the missing bars are...
What does it mean when an EA looks disabled in the navigator?
Is it possible to manage the opening of charts via MQL4 programming? I would liketo do the following: - Open a chart for a specific symbol - Set the period - Assign an EA and indicators Thanks in advance, Ed
Hi guys if anyone intrested to check the forward testing for ILYASI EA. please email usat info@pipprofit.com to send you the account number and password. to prepare yourself, Please download the meta trader from here: http://pipprofit.com/brokers.aspx?bid=2 regards,
If I choose SELECT_BY_POS in OrderSelect( ) , can I use OrderTicket( ) related with it later?
What is the correct way to handling exception for OrderSend() function ? Is the following MQL4 code a properly way? bool OpenOrderSuccessCheck(int result) { if ( result == ERR_NO_ERROR || result == ERR_NOT_ENOUGH_MONEY || result == ERR_MARKET_CLOSED) { return (true); } if (...
I am new to MT and EAs in general, and I would like to know if it is possible tocommunicate between EAs on different charts. So for example if I have several charts open, using different currencies, is itpossible to send comunications between the two instances of the EA? And I am a programmer by...
On the website of the Automated Trading Championship 2007, an Interview with Andrey Vedikhin has been published. Andrey Vedikhin, a Jury member representing Alpari (UK) Limited., has almost 15-year experienceon financial markets. The author of the book named Forex from the First Person. Now, he is...
I'd like to know why MetaTrader can't work with futures. All brokers that I've spokento told me MetaTrader can't work with futures. Futures may be implemented onlyas CFDs. However, NFA forbids the trading of CFDs. So, what's wrong with MetaTrader? Why futures must work only with JTrader, NinjaTrader...
hi im trying to plot iMA of a formula that yields rather a huge number for eachbars its applied on. Problem is that it constantly freezes. and MT4 Terminal crashes. So i dont knowif its drawing the iMA or not. thank you. int start() { int counted_bars = IndicatorCounted(); int pos = Bars -...
Hi All, I am new to this user community portal and I am wondering is there is a specificplace to log view and log know MQL4 SPRs (System Problem Reports)?
Question. Why is this code not writing the string to the file? int handle=FileOpen("my_data2.txt",FILE_WRITE,';');if(handle<1){ Print("cannot open file error-",GetLastError()); return(0); // same as return(false)} FileWriteString(handle, "Hello World", 5); //truncated...I know, but ignore...
Hi all, I was wondering if their exist a bollinger band indicator whose middle band isderived from an exponential moving average? or at least point me in the right direction. p.s I'm heading to the library to borrow a book on C cheers Andrew
I hope someone can help me with this code. I am testing an idea and need functionalityat this point (i.e. I know the code isn't pretty). The code is supposed to openonly 5 lots each time the previous closed trade was profitable. If the last closedtrade was a loss (stopped out) it should increase the...
1...118611871188118911901191119211931194119511961197119811991200...1250