Download MetaTrader 5

MQL4 and MetaTrader 4 - page 883

To post a new topic, please log in or register
Hi, does anyone have any idea how I can better write the condition for OrderSend()? If the main line from RVI indicator falls down of zero line. Go short. If the line goes up thrue the zero line. Go long. i have this: extern string  RVIsettings="------------Relative Vigor I. Settings";extern...
hi it should basically open a new trade if the previous trade (no matter if its a sell or a buy order) has reached 10 pips. it should not be a take profit thing, so from the point on where the first trade hits 10 pips there will be two trades open. if second trade reaches 10 pips aswell another...
I have a zero divide coming up in my experts journal. Any obvious errors in the code below? //+------------------------------------------------------------------+//|                Copyright © 2009, SanMiguel, ForexFactory Forums. |//|                                        http://www.sidekicker.net...
Hi all, I want to create an automatic expiration datetime instead of my usual method of counters and checks. My question is: given datetime CurrTime = blahblah, how do I create datetime ExpTime = CurrTime + x minutes? I looked at the doc to try and figure out how to create a datetime, but it only...
Hi all i wonder to know if there are other special character like \n ( = line feed ) that we can use in string or comment. any documentation ? Thks
This is more of a DLL specific question for all of you programming experts out there. In my DLL, I have a few dialogs and want to make the platform the parent window. Obviously, I can use the user32.dll function to get the int value for the hwnd of the platform, but in my DLL, how can I turn the...
hi there, anyone can help me ? for build or make forex hedge robot, i have ebook that contain hedge system or mehod, the following future needed in robot, 1. robot can calculate spreads and make trade 2 orders(one lot for buy and one lot for same in one currency pairt at same time,)  with...
I do not know if someone can help me to make an indicator to be sendlng me an e mail when the signal occuer. I have built the indicator but i do not know how to make it to be seding email.Am using mobile pc but customise indicator is not possible on so I want to run it on vps so when the signal...
I have been using WindowsScreenShot() in strategic spots in my code to assist in debugging one of my EAs. This EA makes iCustom() calls to several indicators which I would like to see on the screen shots. Forward testing is no problem, as I already have the indicators on the charts. Backtesting...
  TD Sequential 2010 (40   1 2 3 4)
Best regards
Help! I have the Optimzation results of a partial run 'stuck' taking up the entire MT4 window/page. I can minimize and show it again when I use Ctrl-T. When it is minimized I can show the journals, market watch and navigator and the open charts. Even with all of these open and showing, when I bring...
Is it possible to export indicators from MT4 into Excel? I have the DDE server exporting the Bid Ask High Low Time. I would like to export a few indicators, Would it be possible for more experienced MQL programmers to get me in the right direction? Very Thankful Randy
Hi I've got a strange problem with my MT4. I was running single instance of terminal.exe with 20 EAs working (of two kinds) - everything was running smoothly without any crashes. I added another 3 EAs (still the same version of the one previously utilized) and since then I started to experience...
Hi Pros, When I test my trailing stop program, the " error occured 0" appears many times in the journal. Could anybody tell me how to avoid it? Thanks a lot
What does this mean? Make a minimum of 5 non-demo trades in the first 8 months of testing (2010.01.01 - 2010.09.01) and in the 3 months of the contest
Is init() function used only one time when the expert advisor is initalized or init() function is used more times by the expert ? I ask because I don't know where is better set default values for defined variables : on init() function or as an extern value.
Can anyone point me to an article or sample of code that loops through all open orders checks for loss of -10.00 Dollars or -xx.xx and the closes only that order? I searched but can't find anything ... I'm having a mental moment coding this... Just want to close the order when loss is -10.00 or...
Hello, I could not find a way to dynamically display MA line on EA chart in test mode. It only displays at stop test time. I tried to include Custom Indicator code in EA, but I get error "SetIndexBuffer function must be called from custom indicator". ObjectCreate might do the trick. Any other method...
Is it possible to use the DDE in MT4 to Export the RSI into Excel on any desired time frame? Thank You for any comments. R
Hi there, I am battling with a part of my EA related to Ordersend... Sometimes my EA opens a second order milliseconds after the first one. The part of my EA that deals with the opening of a long order is below... if(ticketlong==-1) // If I'm not already long... {//...
  simple code (2)
some one could help me to implement a code for do this. buy and sell simultaneously after close a profit position, and close the next profit position and then buy and sell again .... The code have to close a position negatif at 1.0 for exemple. thank you
New article Functions for Money Management in an Expert Advisor is published at mql5.com: The development of trading strategies primarily focuses on searching for patterns for entering and exiting the market, as well as maintaining positions. If we are able to formalize some patterns into rules for...
Hi guys! I came here because so many want to sell me their systems based on MT4 indicators or experts... which may look nice, but I don't like black box stuff. I prefer community developed stuff, such as the Firefox web browser, for an example. Examples: www.currencymeter.com www.sniperforex.com...
I want to use metatrader to back test and analyze data of symbols that are not included in my metatrader version; I don't need real time data, only historical
Question How can you select a ticket for a specific symbol irrespective whether there are other symbols opened ie. both GBP and EUR in the terminal window? What I'm finding is that irrespective of the code below, it selects the first trade opened ie. Eur and reflects the EUR Ticket? I use the...
New article Creating an expert Advisor, which Trades on a Number of Instruments is published: The concept of diversification of assets on financial markets is quiet old, and has always attracted beginner traders. In this article, the author proposes a maximally simple approach to a construction of a...
Hi all MQL4 experts, i'm going crazy on this one! I want to make one trade per candle so use the code below to set 'newcandle' to Time[0] once a trade has been made. 'Newcandle' variable loses its' value and returns to 0 when the routine is exited - so on the next tick the routine is entered again...
I have a friend who just started Forex and he does not know how to use MT4 platform. My question is can anyone point to a link, tutorial etc. of how to use MT4 platform, test and backtest EA's. Thank you.
Passing Variable Values back and forth between EAs and Included & Library files ? I'd appreciate someone pointing me in the right direction on this, Thanks (< 8)