I've wrote a DLL using Visual C++ 2003 based on a standard DLLSample project. My new function is GetCrossings. But when I try to use the function from a script I get an error: cannot call function 'GetCrossings' from dll 'crossings.dll' (error 127) When I press F1 the help isn't related to the...
[Deleted]
This brief discussion assumes that you have read “BeIn-Phase” ((https://www.mql5.com/go?link=https://championship.mql4.com/2008/news/366)and “On the Long Way to Be aSuccessful Trader” (https://www.mql5.com/en/articles/1571. The gist of "Be In-Phase" is… 1. There is a zero return curve that...
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...
[Deleted]
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...
[Deleted]
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
[Deleted]
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...
[Deleted]
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...
[Deleted]
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...
[Deleted]
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...
I wonder how much an advisor costs? On average... I've done some calculations and I've got about 5 quid for 100 lines of code. Sometimes more, sometimes less, but on average, this is the figure. Perhaps I'm underestimating my own labor or, vice versa, overestimating it. I would just like to hear
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
[Deleted]
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...
[Deleted]
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...
[Deleted]
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... {//...
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
[Deleted]
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
Thanks to all the contributors to this forum whose ideas, scripts and advisors helped me create my expert! Bottom line: 1) backtest from 01.01.2008 till today by post lot - FV=14. 2) alpari microreal - doubling in eight weeks (with variable lot). Questions: If I wanted to use my trade as an Expert
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...
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.