How to OrderSelect in mql5?
i.e.
if(OrderSelect(x,SELECT_BY_POS,MODE_TRADES))
Hi All,
I wish to place a line on a chart and have an EA that automatically prompts the user to enter if they want alerts placed above or below (or both) that line at a specific number of pips (user defined)
Any thoughts on this? I am not very good with objects yet.
Cheers
Andrew
hi please can any one help me with this pending order ea. It should open one buy stop and one sell stop each side of the market. The problem it has is it opens a buy stop then a sell stop then another buy stop:/ if I change to the code so it has the sell stop first then I get two...
Hi guys, I have in mind very interesting money management system, kind of inverted martiangle - fixed stops when in loss but increasing risk when in profits with worst case scenario BE. I've tested it with manually opened trades and it seems very promising, however I'd like to automate it for simple
Hi,
I'd like to correct that error from my code :
Core 1 2016.02.18 16:01:41 CTrade::OrderSend: buy stop 10.00 Ger30Mar16 at 9475.0 sl: 9465.5 tp: 9499.0 [limit orders]
Does that mean that the order that should have been send is a limit orders or does that mean that the max number of pending...
I have purchased an mql5.com vps on an demo account, but now I wish to login to this vps for this account, how do I?
Hi,
I have one trade open on my account and if I subscribe to a signal what will happen to that trade? will that trade close?
I want to change an extern variable of a expert I'm hosting through MLQs virtual hosting. Is there an easy way to do this or do I need to change the value in the mq4 file and then re-synchronize everything?
Hi, i'm trying to use this dll. SendAdvancedEmail - library for MetaTrader 4 and i need some help. where do I copy this file to? i figured that i can import it using these codes below but I don't know where to put the dll file for a successful call. thanks for those who will help. #import
I'd like to build an EA (MT5) with indicator https://www.mql5.com/en/code/1984.
In indicator there are no buffers used, how can i get the values, i cannot use CopyBuffer.
PLS help
Hello,
i want to subscribe to a signal out of an EA.
I got it working, BUT after "Subscription enabled" (see the attached screenshot) the subscribed Signal doesnt sync the opened Positions :(
He did not even connect to the Signal Server! In this state he did not recognise trading actions from...
I wanted to know that i am having an Expert Adviser which is workable in MT4 Trader platform but i Just wanted to make it work exactly in MT5 Platform is it possible ? and if possible how i can do it please can any body or seniors tell me the exact methodology to how to make it possible work in MT5...
Hi,
I have to modify three things on pending orders: buylimit and selllimit.
1). OrderOpenPrice(),
2). OrderStopLoss(),
3). OrderTakeProfit().
Above three things are defined as double parameters:
1). double ooprice <- OrderOpenPrice(),
2). double osl <- OrderStopLoss(),
3). double otp <-...
How can I run/test an expert inside/from a script
i want to run an expert tester from inside a script and i can't find how to do it.
Dear community,
i debugged my EA (only the OnInit funcions) and it was bugfree.
Then I testet my EA and the tester showed me an 'array out of range' in a OnInit function.
How can this be?
The period of testing and the date of debugging is not the problem.
With best regards,
Larry
Hello, Can anyone tell me what the option labelled as "Enable Time Filter in Hour" is for? Does it apply to the days of the week selection or the time settings for trading? My coder that did this is being kind of quiet, so reaching out for help! Thanks, Lorraine
Example: My time limit is "2015.12.30. 00:00". And at the time of Backtest is 2016. So it will not work right away. How do? Thanks!
Comments that do not relate to the "Open Buy Code issue.", have been moved into this topic.
MT4 : Journal shows more OrderSend() calls with TradeContextBusy than the EA logged in its logfile
(2)
I wrote an EA for Metatrader4 and it logs everything that the EA does in a log file that is opened like that: filehandle= FileOpen ( "EA_LogFile.csv" , FILE_CSV | FILE_WRITE | FILE_SHARE_READ , '\t' ); before I call OrderSend() I check the following conditions: if ( IsExpertEnabled () && IsConnected
Hellow folks, The only way possible to get past data is by downloading it historical data centre. I am looking for a way to do it automatically. I am using a cluster indicator based on multiple symbols. The biggest problem is unsincronized amount of past candles available. Therefore, the indicator
Hi All,
I am new in meta trader and trying to code using iCustom.
I also tried to read a number of articles, forum and even meta trader definition of iCustom and still clueless. So, I need your help.
This is my simple indicator script:
#property copyright "Jeannnie"int...
Hi,
I'm trying to connect MQL4 with Python via C++. I've embedded Python in C++ with Boost.Python, after compilation in .dll, it doesn't interact with MQL4. I've put .py and .dll in ~\MQL4\Libraries, it's that right? Did I put it in the right folder or did I miss anything??
Thanks in advance.
The time frames below H4 are the same for brokers on different time zones . H4 and above come out different since brokers start servers at 00;00 in the time zone they are operating (it seems). So running an EA that make use of H4 and above shows different results on different brokers. I have tried
Hi,
I'd like to know more about SetAsyncMode.
First :
void SetAsyncMode( bool mode // asynchronous mode flag )
True activated for all transaction using the class, false deactivated ?
Second :
Which interest to not wait for the server answer, will it speed up the way...
Hello! I want to learn how to use Stochastic in a EA. But failed to find a sample EA with Stochastic. Can anyone help me ? Hope it's a simple one…enough for me to learn how to put a Stochastic in my EA would be great. Thanks a lot
Yes I know this might be the wrong place to post such a thing, but im extremely curious and I'd like to learn a lot more maybe even make my own EA, currently I know the basics of MT4 and forex trading, but I want to go deeper into automated, coding, etc. There aren't many people my age interested in...
I have noticed something which I do not know if its true yet, I would like someone to give their opinion on this.
I think Strategy Tester calculations on TimeCurrent() gives different results than live, for an example, If I send an order ==> record the time when it is sent ==> take the recorded...
Hello,
I had been looking through the documentation on the iStochastic and I haven't found what I am looking for, with the info in the documentation it wasn't clear to me how to implement what I want.
Im setting up conditions for which a trade can be opened. One of those conditions is if the...
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.