MQL4 and MetaTrader 4 - page 54

  revese order  (5)
i need the mql4 script to do if any order (buy or sell) hit take profit, should place a reverse order
[Deleted]
double macd,macd_signal, macd_hist; int signal_period = 12; int applied_price = PRICE_CLOSE; int mode = MODE_EMA; int shift = 0; iMACD(NULL, 0, MACD_FastPeriod, MACD_SlowPeriod, signal_period, applied_price, mode, shift, macd, macd_signal, macd_hist); Hello, Please, I need a help to fix an error of
Hi, I was wondering if anyone has made an indicator which places level lines on the chart using the daily open as the reference point. I wish to place levels of + 45 and -45 from the Open. If anyone has this or is willing to make one i would be very grateful. Many thanks. napeharm
  Bug with Experts  (7)
When I restart MT4, sometimes an EA is gone from a Chart
Greetings! I can't publish a signal for the MT4 server ForeignExchangeClearingHouse-Demo MT4 sees this server perfectly and connects and everything works MQL Signals website cannot find this server How do I create a signal if this server does not see the site? MT4 sees it and connects
What options does one have if their strategy is based on objects drawn on the chart? See this link: https://www.mql5.com/en/articles/1512. Quote: "Draw objects are not really set. The objects are disabled in order to accelerate the testing." So I can't backtest my strategy?
code for yesterdays high and low: how do i change it so it gives me yesterday highest "close" not the highest price. and the same for the low. i want the lowest "close" not the lowest price. //+------------------------------------------------------------------+ //|
When running the command wget https://download.mql5.com/cdn/web/metaquotes.software.corp/mt4/mt4ubuntu.sh ; chmod +x mt4ubuntu.sh ; ./mt4ubuntu.sh This command is from: https://www.metatrader4.com/en/trading-platform/help/userguide/install_linux This is the terminal output as the process quits
I need help about that error, I tried everything
I'm facing a problem with Mt4 as the platform hang off and stope stream live data whenever the price data moves fast particularly at the open, or at the news or any big and quick move in the price data, any one knows how to resolve this issue
Hello guys just coded an EA but its not opening any trades in backtesting, so wondering what I did wrong here is the code below: #property strict // Input parameters input double TakeProfitPercent = 2.0 ; // Take profit as a percentage of account balance input double StopLossPercent = 1.0 ; // Stop
Where can I download MT4? When I MT4 download from MetaTrader site, it downloads MT5 instead. But I prefer MT4. Any ideas on where I can find MT4 software download
I am aware that these softwares are not designed to run effectively on MacOS. But still, is there anyone coding on MacOS and know a ways to run it faster
Since Build 1380, also with the current build 1400 we face this issue in MT4 that occurs either when changing the timeframe of an indicator or when terminating the indicator within the code. This is is clearly a BUG in MT4. That we talk about a bug is certain, since the code works without problems
Is MQL4 language still supported? There is memory leakage issue which makes me sometimes to spend many times to find where this problem is in my code. I have created smart pointer which sometimes should be converted to different interface type when it passed to class as reference. If MQL4 language
I have a mql4 function that places a sell order based on a signal and if a sell trade is found, it places 5 numbers of buy stop orders in a grid starting at 10 pips away from the sell trade with 10 pips distance between buy stop orders. I attempted to code a mql4 function that will scan to check
Hello programmers, P //XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX|| string Expired_com= "Demo Version HAS EXPIRED " ; bool ExpiredTime_ON= true ; int eyear= 2050 ; int emonth= 12 ; int expired_date= 31 ; //Expired Time if (ExpiredTime_ON) { if ((Year()>eyear)
Hi everyone :) Please help regarding solving / troubleshooting this error : "2020.12.26 08:46:04.507 Virtual Hosting: 6203020 obsolete version of "Communicator.ex4" cannot be transferred to the hosting server, please recompile it first" I rented VPS for my account on MT4 and unfortunately it will
Basically, when I attach the EA to GBPUSD 1M chart, I want the EA to open a BUY trade at 0.01 lot size at 18:00:00 hours and close it at 18:59:00. It then waits and open a BUY trade at 20:00:00 hours and closes it at 20:59:59 hours. There are no Compilation errors, and hence I am not sure why the EA
  Panel view  (2)
Hello! I have a EA which it loads a dashboard onto the charts which I use for trading. When I load this EA on personal computer it is displaying as expected. When I loaded on VPS , some buttons are missing, and it looks like resolution is wrong. P,ease find attached screen shots
Iam using MT4 and have a particular template I would like to view selected stocks on. Is there an easy way to scroll through the stock list one at a time. I tried to use the up down arrow keys on the keyboard. The highlight does shift through the list of the symbols on the marketwatch tab but the
Trying to sort out this issue, I see the recommended code below: (however i do not know where to add it, already tried but no result yet) bool CheckMoneyForTrade( string symb, double lots, int type) { double free_margin=AccountFreeMarginCheck(symb,type, lots); //-- if there is not enough money
Please could someone be so kind as to attach notifications to these two existing MT4 indicators for. For the IINWMARROWS indicator could a notification option be added for when a new arrow is printed and for the Solar Wind indicator could the notification option be added for one it changes from red...
  Programming  (2)
hi! I am trying to program an indicator which i can plot in my chart and it tells me if the market is either open or close. It consists in a rectangle, either green labelled open or red labelled close. I made the next coding but somehow I'm finding the 2 same errors constantly which are: "unexpected
Hello, I'm trying to use function pointer in my object, but i got "Pointer to this function type is not supported yet" error at compile. class OrdersManager { typedef void (*OrderCallback) ( int ); public : OrdersManager() { } public : void displayOrderTicket(
Hi, there, I hope you are all well. I'm writing an EA in mql4. The goal is to use iCustom() to get the values of a custom indicator . Here is what I wrote: double b= iCustom ( Symbol (), 0 , "SMC Indicator" , 2000 , "Smart Money Concepts" , 1 , 0 , false , "Real Time Internal Structure" , false , 0
Please I came across this indicator "NonLag_v7 created by" TrendLaboratory" here, and I am trying to turn it to an Expert Advisor but I have been having diverse challenges and error messages. the dominants' error is "out of array". If I try to maneuver to get pass the error, the Expert Advisor will
hi everyone, I've been trying to solve this problem for days now. but it keep give me the same error "'unexpected end of program" and "'unbalanced parentheses" hope that you will spot the error and solve it thank you in advance below the code void OnTick () { // Calculate the
Does anyone know the name of the MT4 version of this indicator? (in MT5 it name LT Day Hi Lo) the indicator explains the highest and lowest points of the previous period and today.. If anyone knows, please tell me the name of the indicator