I have a CList which holds trade objects (structs) My struct looks like this: struct trade { int ticketNumber; double stopLossLevel; truefalse isTrailing; fiblevels breakevenPoint; bool hasHitBreakeven; double distanceInPrice; double tp1; double closeAtTp; }; truefalse is an
Although this EA works very well, I think there is still room for improvement. For example, there is an error [modify Error 1] which does not interfere with its operation, but which I cannot fix. I did several searches to correct this problem, but unfortunately, I did not find anything precise, for
Hi, I need to login to MT4 web to extract my historical trades for my exchange's verification, but am struggling to connect to my trade account via Web Terminal. Can someone advise? Thank you
Hi Gents, I ran out of ideas to debug this as I couldn't close the last order (always closed most of them except the last active trade). This isn't happening often. It only happens very late at night. When I was monitoring it, it wouldn't happen. so strange. Would you please help me double check? I
Hello, I have a question. If I have EA orders running and my computer reboot, after restarting my MT4, would the EA still be able to manage the running orders? Thanks
Hi Guys, in my current EA I need to find out if a new order were closed. It doesn't matter if it's closed by hitting TP or SL... At the moment I use therefor: bool NEW_CLOSE() { bool new_close = false ; static datetime close_time = 0 ; for ( int i= 0 ; i<=OrdersHistoryTotal()- 1 ; i++)
Hi, how to correctly rewrite this line from pine script to mql4? Pine Script: SmoothedTrueRange = nz(SmoothedTrueRange[ 1 ]) - (nz(SmoothedTrueRange[ 1 ])/ADX_Length)+ TrueRange; mql4 error: '[' - array required 'SmoothedTrueRange' - invalid array access Thx
Hi I have a problem with metatrader 4. It is getting freeze every time when I am changing timeframes with some indicators and EA panel to trading. A few mates tested the same indicators , the same ea and all is good. But not for me. I installed new windows clean, and on clean new system it is the
A few days ago I received a PM to code an EA with the following parameters: -User decides initial trade direction (let's say long) and starting lot size (say .1 lot) -New position would be added every time the market moves x pips (say 10 pips) up or down away from the most recent position taken. If...
Hi I want to detect a zigzag 5 bars before. To find that I used this, if (zigzag(shift+ 5 )> 0 && zigzag(shift+ 5 )>Open[shift+ 5 ]) Alert (" new high"); if (zigzag(shift+ 5 )> 0 && zigzag(shift+ 5 )<Open[shift+ 5 ]) Alert (" new low"); when using this code, it only detects new low. The code is
[Deleted]
Hello All, I am using 30 symbols and 9 time frame in EA. I need to read indicator buffer. With according to buffer value i need to update arrow for each and every timeframe. I am getting issue of delay in updating of arrow. All code is executing in On timer(). Timer event used 1 second, 5 second,...
I have been trying for a few days to see if I can do it but I can't seem to get it working. Preferably the notifications have a pop up, email and push notifications abilities. Thanks in advance and please let me know if you need any more information
I want to modify this EA to keep the previous orders opened and open new ones, I tried to modify but only opens one order of buy and the nothing else. in what part of the code I must modify ? can someone help me
How can I watermark or my logo in the center of the MT4 chart
Hello everyone, I have a quick question. Is it possible to trade (test) other financial markets and instruments on MT4. When I click on 'Market Watch' I only have forex pairs listed there to trade or test. Is it due to my broker I'm not seeing any other financial market or is it due to MT4 not
need help stoping my ea from taking buy and sell trades on every signal ..it should take buy on buy arrow and sell on sell arrow
(11 1 2)
i cant figure out why its not working propably ..a little help please...... the problem is that ea is take buy and sell trades on same arrow no matter if its buy arrow or sell arrow .. ea is taking 2 trades opposite way at same time
Hello all, I have <Deleted> indicator from MT5 market. i want to know how to call icustom indicator in EA please all guys help me.. *** above code from my mql4 language i just want to know how to convert this code in mql5 please help me.. please tell me how to call icustom in mql5
Please advise. I'm getting push notifications from someone else. I did not give my MQID to anyone, I've only been using it on my VPS on my PC. So, (1) either someone mistyped his MQID into MT4 and consequently now made me receive his notifications or (2) someone stole my MQID from my VPS and is now
Hello fellow traders and coders, I have been playing around with mql4 for some time and do have some coding knowledge but I could do with a nudge in the right direction. I am looking for ways to simplify my trading journal and keep track of trade idea's I have in the pipline. One thing I would like
I know I can set SL within EA, but if multiple EAs open on multiple charts is there a way to set MT4 Stop-trading rule if say 5% of account deposit lost
THIS SCRIPT USING TWO POINT TO COMPUTE ANGLE OF TREND AND TREND RESULT. HOWEVER, THE MT4/MT5 SOFTWARE IS INCONSISTENT TO PROVIDE A CORRECT TREND VALUE. THE FIRST ANSWER ALWAYS A REVERSE ANSWER!!! IS MT4/MT5 A PIRATE SOFTWARE AND STOP USER FROM FINDING PRICE ANGLE? WHY ALWAYS GIVE FALSE OUTPUT? SAME
What can be done to show the surface trade with a horizontal line? In mt 4
Hi, I have orderSend and OrderClose. OrderSend works, OrderClose closes all trades. I need to close only last trade. So, If I have: I want to close trade in red box. for ( int Counter = 0 ; Counter <= OrdersTotal ()- 1 ; Counter++) { if ( OrderSelect (Counter,SELECT_BY_POS)) {
Hi there how can in override the Buy or Sell button of chart itself and how can i override the close button of each order orders and how can i override the modifiying an order in mql4
[Deleted]
Is there a way to set MT to send SMS to my cellphone through a connected cellphone or GSM modem? I need this option (instead of sending email) because my connection is lost sometimes and MT cannot send emails then
Hello, I am looking for a developer who can create a MT4 platform so I am able to see live/historical data using MT4 with US stocks, futures, commodities, etc. I'm not looking to execute, but only to view it similar to Tradingview. Thanks
Hi I'm making an account manager. this EA closes 50 percent of volume of every trade which has more than 20 pips in profit. But the problem is that I cannot keep track of which trade was partially close so that the EA doesn't close the entire volume. I tried using ticket number but every time you
[Deleted]
On the common currency pairs this spread code gives a correct value, Yet on some pairs USDZAR, USDSEK I get a high spread value = 186.0 How to correct this? all help appreciated. if ( Digits == 3 || Digits == 5 ) nn = 10 ; double spreadActual=(Ask-Bid)/ Point /nn; string
Hi, Tried to open a trade on MT4 (both laptop version and iPhone app) and refuses saying "Trade disabled". Any suggestions
Hi, I got common error order buy 2.00 EURUSD opening at market sl: .... Why I got this message? I have in common folder one file TXT and every second READ this file and when is new trade then WRITE in file. My trades order maybe in 1-2 hour. So where is problem? Regartds
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.