Hello, I am editing in EA which is based on scalping, and i am normally using 1 Pips as Take Profits. Some broker have Stop Level above 10 Points / 1 Pips which provide an error to EA Invalid Stop and other getting failed. For this reason, i made nested if else statement to cover both type of
Today, I found that the pending orders of the MT4 platform cannot be deleted or modified. I hope MetaQuotes Ltd can inform the developer to modify the BUG
Hello, I am adding a GetLastError, which only print if error belongs to particular function. I am trying like : if ( __FUNCTION__ == "TrailingStopLoss" && GetLastError () != 0 ) Print ( __FUNCTION__ + " Returning Error Code for Buy Trailing : " + GetLastError ()); if (StringCompare(__FUNCTION__
Hi all I would like to know what to do to make MT4 load a little faster. For me it takes approx. 10 minutes after the click on the shortcut for the screen to popup. For me 10 minutes it a little to long for a program to fire up. The profile that is loaded only has 2 charts. I have 3 more profiles
Hi, friends! I am using MQL4 on Roboforex. Yesterday the terminal stoped working and I downloaded a new one and wanted to transfer my traiding robot Expert onto new terminal. I copied all the preset files and an Expert himself. But when I try to attach my robot to the chart I get an Allert "The
Take Profits and Stop Loss is Int Value or Double Value? extern int TP = 100 ; extern int SL = 100 ; //OR extern double TP = 100 ; extern double SL = 100 ; // ********************************************** // extern int Slippage = 3; pipettes = Point ; double TakeProfit_BuyEntry = (TP != 0 ) ? (Ask
I deleted the Metatrader4 file in open data files inside the application inside then uninstalled the application on my macOS big sur. After that i downloaded the ready-made mt4 package from https://www.metatrader4.com/en/trading-platform/help/userguide/install_mac Once installation done, i can't
Here is an indicator for anyone who is interested in using it. I created it both to practice some coding techniques and also to be able to have a look at some market dynamics that interest me. Maybe some of you will find it interesting as well. This was my first time really working with objects on
Are there principally differences between the way mql4 and mql5 handle out of range ? Or are there big principal differences in how the iHighest function of mql4 handles for example negative count values? Because iHighest of mql5 won't take those
Hello, I would like to draw a vertical line in the future , but I have problem because on some TF it' working fine but in other TF not. Also I see that changing the Symbol my conversion does not work . I attach my code. Can somebody help me
Hello, What does Error Code 1 means, i am getting this while order Modification. extern double Trailing_Gap = 3.0 ; extern double Trailing_TP = 30.0 ; if ( Digits == 3 || Digits == 5 ) Pips = 10.0 * Point ; else Pips = Point ; void TrailingStopLoss( int TrailingStopLoss_magic) { //
Hello, I am using ICMarkets and it have StopLevel = 0 for all currency pairs. I designed the Trailing based on ICMarket and code is really working amazing without any issue. Working fine with Broker having 0 Stop Level : double Pips; if ( Digits == 3 || Digits == 5 ) Pips = 10.0 * Point ;
Which one should i use. With Point : double Pips; if ( Digits == 3 || Digits == 5 ) Pips = 10.0 * Point ; else Pips = Point ; With Ticksize : double Pips; if ( Digits == 3 || Digits == 5 ) Pips = 10.0 * MarketInfo( Symbol (), MODE_TICKSIZE); else Pips = MarketInfo(
Hi, Does anyone have a proper indicator for Woodies System? the ones posted here... http://www.woodiescciclub.com/forum/viewtopic.php?p=11248#11248 ...they're not good... Could anyone please get a code from PFG they use for this? or exact! indicator rules and settings? Without a proper code and...
Hello, My existing code : void TrailingStopLoss( int TrailingStopLoss_magic) { // Loop through all open orders for ( int i = OrdersTotal () - 1 ; i >= 0 ; i--) { if ( OrderSelect (i, SELECT_BY_POS, MODE_TRADES)) { double TrailingStopLoss_entryPrice = OrderOpenPrice();
Hello, Instead of using classic if-else or nested if-else i am using like this for small conditions double TakeProfit_BuyEntry = (TP != 0 ) ? (Ask + TP * Pips) : 0 ; double BuyLimitOrderDifference = LastOrderPrice(OP_BUY, BuyLimitMagic) - LastOrderPrice(OP_BUYLIMIT, BuyLimitMagic); double
I have downloaded a new copy of MT4 and am unable o login to the MQL5 within it to install an EA I had previously purchased. I can login to mql5.com but only in incognito. The website doesn't load properly on normal browser conditions and I have tried Brave, Opera, Edge, Chrome. I have disable a lot
I want to ask you if it is possible to close all open orders and to delete all pending orders within a unique call to a method. Without the need to iterate over Orders MODE_TRADES. Thanks!
Can anyone help me with some code for an EA MQl4 - includes ZigZag indicator - sets LastLow and LastHigh peeks from the indicator in the ea variable - keeps it updated on changes I have been trying to get it to work for a few days now with attempting to get help from chatgpt but seem to keep going
Hello everyone, while operating with my expert advisor, I noticed that in brokers where the spread is more than 30 points (forex) the EA finds less opportunities to enter the market, compared to brokers in which the spread is less than 10 points. It can be noticed also in the strategy tester. If I
Hi I got this error in mql4 code..can someone help to recitify this? int ttcx = Time[0] + Period()*60 - TimeCurrent(); error/warning thrown... possible loss of data due to type conversion
Hi guys, i'm copy trading a trader. Now the copy trading works, but the trader has open old trades. As soon as i start the signal it opens those trades over and over, even if i close them. How can i prevent the signal from opening old trades to the current price??? I posted a screenshot and i
MetaTrader stores the experts logs under "C:\Programme\FxPro - MetaTrader\experts\logs". However there always are only the logs from the last six or seven days. Older logs are somehow deleted. Does anyone know how those log files are deleted? I'd like to keep all the logs. Thank you.
mt4 expert tab showing Error:0 while trying to load ea to EURUSD CHART. Please help me resolve the issue
Hello, Is it possible to know via a function like MarketInfo or another method the maximum of possible orders before getting the ERR_TRADE_TOO_MANY_ORDERS occurs? Of course I can count the number of opened positions when the error occurs but I'm wondering if there is a more clean way to catch the...
Hello guys, i can't connect to my MT4 accounts. I have one FTMO demo account and a live account tradenation. Both don't show open trades and trade history is empty too. It shows that it is connected on right bottom. Journal says i'm connected too. I tried uninstalling and reinstalling, that didn't
So there's lots of speculation about the future of MT4 in the USA. FTMO has completely pulled out of the USA. True Forex Funds has suspended activity in the USA, and they're specifically blaming a Metatrader licensing issue and they're looking at new platforms. But other prop firms say they're
I've noticed that prev_calculated often resets to zero, resulting in unnecessary recalculations of the entire dataset. I'm looking for a way to minimize the frequency of these resets. Could this issue be related to the 'Max bars in chart' settings? Thank you for your help and advice
I bought an EA, which shows as a purchase in MQL5, but as a demo only (and asks me to buy again) in MT4. No activation option appears anywhere. This is my first purchase of an EA, so not sure how to proceed. Any ideas on how to fix this would be very much appreciated

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.