I would like to run this code once on Sunday at the opening of the broker. However, I have this EA running on 12 different pairs. Any ideas on how to run through the code just once for each pair? I thought about putting in the Hour and Minutes and seconds but it relies on a tick coming through to...
[Deleted]
i wrote one indicator and i want it to be sending email to me but it does send it. I do not know if i am going to do anything on the platform for it to be possible if am going to do anything,please help. Also is it possible to be sending it to the mailbox of the platform ? And what is the...
New article How to Order a Trading Robot in MQL5 and MQL4 is published at mql5.com: With the launch of the "Jobs" service, the MQL5.community became an ideal place for placing orders and providing programming services. Thousands of traders and developers visit this resource on a daily basis, and...
What is the best method to code for an event of when the MT4 closes a trade based on a set stoploss. For example, trade A opens, a stoploss is set, trade B opens a stop loss is set, when a stop loss is hit, I want to move the stop loss of the remaining open trades to the price where that stop loss...
[Deleted]
Can someone please tell me what's wrong with this code snippet, which is part of an EA I am trying to develop? The indicator "myIndi8" has eight "extern" parameters and eight buffers, four of which are up arrows (0,2,4 and 6) and the other four are down arrows. The indicator puts an EMPTY_VALUE into...
Hello fellow mql programmers. I'm trying to: 1) Calculate the total risk of all open positions function to be used with EA's I create in the future. 2) Calculate the total number of Un-Hedged Lots I currently have running. 3) Calculate the total number of Un-Hedged Points I currently have running....
[Deleted]
Hello Everyone I am having a problem with my ordersend() function, and I hope someone will help me. I have developed my own expert advisor with my own strategy. What actually happened, during the fast price movement my expert advisor does not place an order, but in case of slow movement it...
[Deleted]
Is it possible to call the MQL function from the DLL ? like calling AccountNumber() inside the DLL so I have a plan to call and check the AccountNumber() from the DLL file and not from the MQL (ex4 file) can someone guide me on how to do that ? thanks
[Deleted]
I need value of the last closed position for(int b=0;b<OrdersHistoryTotal();b++) if(OrderSelect(b,SELECT_BY_POS,MODE_HISTORY)) if(OrderSymbol()==Symbol()) { Comment("b = ",b," OrderTakeProfit ",OrderTakeProfit()); } But it somehow shows zero while 3 closed...
[Deleted]
have here a code for a working Swing Tradeing Strategy on EURUSD , on other pairs look like work also, did just testing EURUSD. Offering you this code for all developers, could be usefull for you to learn and develop own systems, i would be lucky if i could get such code years before. for more info
Tired of lost trade..why not see the actual trading making profit on ur screen..The trading with be soon will be close to avoid disturbance to the brokerage..but if you r interested to know the secret.. send USD100 via paypal to lansera@yahoo.com and the secret will be reveal..money send is not...
Hi, I'm new at MQL4 programming, and I can´t figure out how can I filter every tick from the open price. I want that my indicators and EAs run their routines only at the bar opening price, ignoring all the rest of bar ticks. The problem is that they continue to return me buy/sell signals on every...
[Deleted]
I accidentally removed the EA Box from Meta Trader and can't figure out how to get it back
I thought that a tick was an indication of a change in price BUT - I have an EA attached to EURUSDm 5 decimal place chart which does open trades on this pair as well as GBPUSDm without an open chart. if I Print(MarketInfo("EURUSDm",MODE_ASK),5); then I get the same value (eg 1.25567) printed to...
[Deleted]
Dear forum participants! In this thread I propose to discuss trading on different currency pairs during the day, in order not to litter other threads
-
I found a fun read here (article) on predicting EMA crossovers. If I understood it correctly, for EMAs, we can see a recurrence relation between yesterday's EMA and today's EMA, and by shifting this relation forward, we can solve to figure out the approximate price needed for tomorrow to close in...
Been trying this all day but now just getting myself more and more confused. Say that I want my EA to stop trading from 8:00pm until 6:00am the following day, how would I go about this? I have code for finding the relative GMT offsets for the broker, local time, London, NY etc all working correctly...
Hello everyone, i'm using the wininet.lib to reach user data from my server. On the machine where i have developed the c++ dll, it works perfectly. If I try to use the dll on another machine, there is an error "dll can not be found". Can anyone help my? Thx in advance
[Deleted]
Hi All I have been emailed Trade Protector 1.2 (loaded it to MT4) and it is not working properly/or i havent set the correct settings, I have searched for it but cant find it in the mql site. Does anyone have any info on it? or where it is located? also, i would like to set up EA and would be happy...
[Deleted]
Hi, I have some application development background and would like to get started in learning MQL4 and use it to program automated MT4 system. Appreciate your advice if you can point me to a good path to start. Thanks! fchia
We are using an EA we like very much but when the platform crashes which is alot lately (will not name UK based broker) the EA doesn't pick up the old orders, so if there is a floating loss, we may as well realize the loss and reset it. Thus, a crashing platform can cause the EA to actually lose...
On a different forum, I tried to discuss the topic of best countertrend system in 5MIN and perhaps even 1MIN timeframes (I haven't checked the 1MIN timeframe yet, but I plan to do so when I get better data, possibly tick data). I didn't get any responses at all. So I try here. Here it goes: I am...
Hello. I have a problem with my MetaEditor, I imagine that solution is simple... I think this follow code is very very simple: #property copyright "Copyright © 2010, MetaQuotes Software Corp." #property link "http://www.metaquotes.net" int start() { //---- MessageBox("Hello World","Test");...
This is a challenge for me as I am a newbee but I am sure most anyone with a little experience could re rewrite this indicator into the EA.... please help!!! This is an RSI divergence... I'd like to make entries where the arrows appear.. #property indicator_separate_window #property...
[Deleted]
Is it possible to reliably make an average profit of 5% of your bankroll each and every month? If so, what strategy would be best? For example… Take a position with 5% of your capital and hope to double your investment in one trade? What if it loses? Have many trades each month and hope to make a
Hi, I am trying to get my EA to read the x / y values from a manually drawn Fibo-retracement. I have searched and read the ObjProperties and the closest I seem to get is the OBJPROP_FIRSTLEVEL+n, however that only seems to return the price-level of the fibo. I would like to read the Time/Price of X...
The forum is already in a prolonged state of "starvation" for trade and other ideas. And here the moderators and money-grubbers of all stripes, in every relevant topic, send the questioners to .... JOB. Stop, let me read, discuss, accept the idea. On the spot, they'll figure out whether they're
Is there a way to draw a linear weighted moving average of the highs and lows of a Heiken Ashi candle? It often seems that the HA candles reach a higher/lower price than the actual candle - is this normal? Also, is there a way to get the readings of the high and low of a Heiken candle? For example,...
[Deleted]
Hi everybody I need your help with something I lost my demo account password so i looked in the mailbox for my account details. Nothing was there but i found the mail in the mailbox folder. The only pb now i that i do not know how to read it or how to "upload" it in the MT4 platform to have it in...

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.