MQL4 and MetaTrader 4 - page 358

[Deleted]
Hello, i wrote my EA. now to finish it i need just to count how many lots is used total from active orders. So maybe you have ideas what function should i use to get the total lots used at the moment from active orders. for exmp. order nr: 1.0.01 2.0.02 3.0.03 4.0.05 so i need a sum of all theese, i...
[Deleted]
  Invalid Stops  (13   1 2)
Hello, I'm trying to figure out what the cause of the error " Invalid Stops " is inside my EA. I have been reading this forum and googling around for days but have not found the solution yet, hence I'm creating a topic here. So, In my EA I'm getting this error when opening an order and modifying an
I like to leave MT4 running in background while I do something else. I make extensive use of Buy Limit and Sell Limit orders. Right after I add them, I right-click the chart on their respective SL/TP prices to add two alarms so I can go mind something else and be alerted when that trade operation is
Hello reliable gurus out there.....please can anyone help me code an EA that sets automatic pending order on a Moving Average price with sl and tp with the MA visible on the chart? What I want is when price is above the MA, the EA should set automatic buy pending order on the MA price on every new...
********************************************************* Average True Range Trailing Stops Strategy by Sylvain Vervoort Copyrighted material from Stocks & Commodities Jun 2009 *********************************************************
Hi everyone, I know this should have been posted before, but unfortunately I failed to find any reference. Basically this is the problem I am facing. Suppose I would like to open a buy trade when RSI passes 50, and I would like to use the last ATR value when the trade is opened as my stoploss and
Trying to reference specific bars based on their closing times on mql4. Part of my script is to look for On 1H chart - a 9:00 candle closed green at 10:00. On M30 chart – a 9:30 candle closed green at 10:00 On M15 chart – a 9:45 candle closed green at 10:00 On M5 chart – a 9:55 candle closed green
  Spread in mt4  (1)
When I use an EA that use points the spread in DAX is 100 points.Now I tryed an old EA that are not in points is the spread in the tester 10 or 100
  Pyramiding strategies  (12   1 2)
hi, i 'd like to start new thread about pyramiding strategies. i am searching solution from few months, and this is my result : i ' ve developed an EA based on keltner channel and macd. if you are interested to develop my project tell me. this is my back test (2008) and screen giapel
  Chinese in mt4  (4)
Hi,   I am a fairly experienced coder and I have sort of gotten stuck on this one.  I have a lot of text to put on a chart and I am using multiple labels. My client has asked for it to be translated into Chinese at some point. The client will be paying for a professional translation but he wants me...
Hi All, I want to learn coding in MQL4 but cannot find a way to get Yesterday Highest CLOSED and Yesterday Lowest CLOSED price? I can get yesterday highest and Lowest price but not its closed price. Can anyone show me how to do it? Thanks in advance.
Hi guys, Is it there an expert that can scan the chart and based on the horizontal lines on it to send alerts (push, email) if the price is near on of them (with N pips) ? I'm not interested on something that will draw the line and will monitor that one line. It will be AWESOME for something that
When the position closes, the chart shows no history. Without creating an Expert Advisor, this is want I would like to see on the chart. Thanks
Our weakness is disunity and hostility towards one another. Our strength is the persistent pursuit of victory. For all those who agree that classical thechanalysis no longer works in today's market, I propose to discuss ways of developing time series analysis and forecasting . Perhaps together we
As the title suggests is there a way to port something I created in MT5 over to MT4? At first it was missing some libraries and dependencies but now its becoming difficult. I know the "simple answer" would be why don't you just open up with a broker who supports MT5? Mostly because a lot of the MT5
OrderOpenTime() gives me 2019/12/01 I want to change format 01/12/2019 dd/mm/aaa OrderProfit() gives me 100.00 I want to change to 100,00
This is not a question , rather a note for anyone who will wonder about MT4's behavior when an order is partially closed . (title for people looking for it in search engines : What happens to swap partial close order meta trader . What happens commision partial close order meta trader) Observations
Hello, I've been trading with grid orders for some time now, but just realized there is a WindowPriceOnDropped() function that I'd like to incorporate. My standard order placement is written like this. Here is sample code for 5 orders spaced 5 pips apart, all micro lots, with 50 pip stops and 100
  Quantum trading system  (398   1 2 3 4 5 ... 39 40)
The phenomenon of retrocausality will help scientists solve one of the biggest mysteries of modern physics: Why can one particle instantly affect another, even if they are in different parts of the galaxy? Although the theory of relativity tells us that it is impossible to move faster than the speed
Hi guys, I'm new on this forum. I have an EA that under certain conditions opens multiple buy or sell orders, the first to market, the others are pending. I want that if the first market order goes to stop loss, all other pending orders are automatically closed. Can someone help me? I guess it must
I am running MT4 Build 1220. When I run an Account History report , the open trades are in alphabetical order, regardless of which column is selected to sort by. When a trade is added, it puts it at the end of the list. If I close and open MT4, the new trade is sequenced in alphabetical order. Other
I downloaded an expert advisor and launched it then i deleted expert advisor cause i didnt needed it, and i closed terminal. After a while when i opened terminal, all my charts were replaced with h1 eur/usd charts, i was so annoyad all my work with those charts replaced with eur/usd charts can i
  how to write a dll?  (61   1 2 3 4 5 6 7)
I'm a 2 years programming in MQL4, studied the tutorial from the site. now I want to learn how to write a dll for mt4. i wonder where to start to learn writing a dll. advise where to get help, what to read, first I would like to write a simple advisor with dll-key connection, which will create a
Hi: i am looking for help to stop a trade from reopening after a take profit. Normally I use a shift in the buy/sell open to prevent reopening a trade after a TP but this is not possible with the strategy I am using. What options would I have to prevent this? (Obviously the buy/sell open...
Why dont you add / update mt4 tester with time in seconds, also? = like on terminal... Thnx, Lauri
Hi guys so i just doing some reaserch to find MT4 Trade copier that will open based on percentage equity/balance from slave account. So in summary i cant find any trade copier (Free/Paid) that will open based on risk percentage equity model on Slave account. my best search that it will open based
  Slippage issue  (1)
Dear traders community, PLease, I need your help. I don't understand the "Slippage" code in MT4. When I send a stop order and that I put "Slippage=1". The EA take orders. However, when I put "Slippage = 0, Slippage = 50 ou 100" it does not take trades as well. Thank you in advance and good trading
[Deleted]
Hi, I'm subbed to a signal that always uses 0.01 lot. I'd like to increase the lot size used. For example if signal uses .01 buy I'd like to use for example .05 buy. Is there a way to do this? I tried to buy an EA "(change size volume lot signals") that multiplies by adding an additional order but...
Hi, I need to share data between 2 MetaTrader. One of them is installed on my laptop and the other on is installed on VPS. Is there any way to send data between these two MetaTrader ? please just give me some idea
The boys, my EA doesn't work anymore after entering OrderModifly. I share the code I'll wait for an answer thank you very much void OnTick() { if(NewBar()){ EseguiOrdineLong();} }///+------------------------------------------------------------------+ void EseguiOrdineLong(){ if (