MQL4 and MetaTrader 4 - page 21

Hello, What does OrderType() > OP_SELL mean? There are a few instances in the EA I am working with that have some if conditions with OrderType() > OP_SELL . I understand that OrderType() == OP_SELL means it should be equal to a sell order, and OrderType() != OP_SELL means it should not be equal to a
Hello I will appreciate your help, I have written a function but it is not doing out operations as required. Upon launching EA on chart it should open buy position on break of previous high later on the preceeding orders will be on break of previous low. I f any of the orders hit sl the EA resumes
Hi, I have an Expert Advisor which work only with MT4 version 4.00 build 1400 but not with the next MT4 version 4.00 build 1408. I have a copy of my terminal.exe version 4.00 build 1400, but each time I copy/paste this terminal.exe file into the folder of my MT4 installation it run the update to
I am looking foir an indicator for MT4 that can calculate the annual average daily range of any currency pair. I have seen plenty out there with no inputs at all or some that can do up to 100 days etc, but want to be able to calculate the ADR for 1 trading year and have it just show in a corner as...
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(
  Woodies Cci Indicators  (47   1 2 3 4 5)
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...
Have a nice day. I use a Dialog (Panel) object derived from the CAppDialog class, whose position on the chart is measured by default from the top and left side of the chart. I am trying to change the " anchor point " (left, top) so that its position is measured from the top and RIGHT side of the
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
[Deleted]
Hi everyone, I'm starting to learn more about GUI panels using the appdialog box to add a panel to an indicator I'm writing. I have a basic understanding of how to create a panel and various buttons and labels. I just had one question about saving the location of the panel. If I move the panel on
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!
[Deleted]
On metaeditor Test Running not opening Positions any
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.