MQL4 and MetaTrader 4 - page 80

Hi! With help from some clever people, I've written a simple, but efficient tutorial for any newbie-ish programmer who wants to include C# projects in their MT4 EA. https://github.com/DennisGundersen/MT4_To_CSharp_Bridge Enjoy! Re Dennis
Hello all, anyone can help me with the idea of writing each pair closing price for each candle in one column only per pair. like column number one, first sell have the name of the pair and the below 30 cells have the closing price for 30 candles, i need it to overwrite the csv for a specific period
Hello, I searched but didn't find this specific question on the forums. I understand that it is possible to trade cryptocurrency pairs on MT4, but the account I have linked to it is only listing forex pairs when I attempt to open a trade. My broker claims I can trade crypto pairs with MT4 and with
I would like to display only the specified bars by RSI in order to lighten the indicator, but it is not displayed well. How to display RSI for only specified of bars? //+------------------------------------------------------------------+ //|
hello I'm looking for a way to retrieve the price for s specific time or timeframe. For example, the price, M1, between 4pm and 4:20pm on january 4th ?   Anyway to do that ?   Thanks Nicolas 
Hello, I was moving the entire Windows 10 system from 1TB SSD to a larger 2TB SSD (using Windows disk-image to transfer the entire thing). After doing so, the MT4 was like "reset to a new starting date" and I have lost access to all the messages originally existing in the Mailbox. The messages are
Hi guys I want to convert pinescript v4 indicator to mql4 .. But I am not very good at Mql4.can you help.. #property indicator_chart_window #property indicator_buffers 7 #property indicator_plots 7 #include <MovingAverages.mqh> double spike[]; double ma1[]; double ma2[]; double hullma[]; double
Hello, Has anyone tried backtesting from the command line ? In order to save resources I would like to know if it is possible with a command type : mt4 --backtest --datafile "EURUSDM5.fxt" --expert myEa.ex4 --config "presetEa.set" Thanks for your response Best regards
Hello, Im having some trouble building trend lines around a RSI indicator - what seems to be the problem is the "time" coordinate for setting  lines. The result is :    This is the first time i build such indicator ! Hope you can help ! The code is below :    int limit;   int...
I try to write an indicator which shows the direction of Highs and Lows. It should return 1 for higher values and -1 for lower ones. In the case of equal highs or equal lows it should neither return 0 (zero), nor EMPTY_VALUEs, but instead return the previous direction (the direction when the highs
Hello Guys , i want to Create a personal panel for trading buy but I have a problem... im new in Programming and The problem I have now is that : i want Calculate Position Size with My account Balance and my risk buy i dont know how to do that ... My stoploss is not fixed and I consider it according
  MACD EA Issues  (3)
I wrote a macd EA. I need the EA trade on the close of the histogram (candle), but seems not be working. I have tried using: Volume [1] Open [1] < Close [1] and Open [1] > Close [1] time. And a combination of all three. But its not working. What other way can it be done? On the image attached
Hi can anybody tell : why all function in different object behave like they have the same static variable ? the result is only : div thank you in advanced class sweep { protected : private : public : sweep() {} ; ~sweep() {}; bool
HI all, I'm trying to load the attached file. When I select it from Browse in History Center the window remains empty. Where is the problem? Thank you
Hi! I am struggling to make a simple indicator, probably by the lack of coding experience. My excuses for my silly mistakes! I am trying to get a indicator, similar to the AO, to show a bar of a different timeframe. So for example: I have the chart on a daily timeframe. But I want the indicator to
please whats the possible solution for this two error message on mt4 when i load my EA on my chart 1. Gobal Initialization failed 2. Invalid Ex4 file (7)
New article A Quick Start Or a Short Guide for Beginners is published at MQL5.community: Hello dear reader! In this article, I will try to explain and show you how you can easily and quickly get the hang of the principles of creating Expert Advisors, working with indicators, etc. It is...
I have 5 vps previously and I closed down 2 vps last week.  My EA (5 licenses) was used up in all previous 5 vps.  If I have new vps in future, how do I deactivate my EA licenses from previous 2 vps, and activate at new vps? Please advise.  Marcus Lee 
I was told by my broker that Metatrader in the latest update did not include the MINI TERMINAL, one click open positions & one click close all positions. I sure miss this feature and would like it back !! As now, it takes 2 clicks to open, and many many more clicks when you have more then one...
Hi. I have created an MFT indicator that for each candlestick in the current time frame, sums the volume of the bearish and bullish candles in the M1 time frame separately and shows it in the diagram. But my problem is that the graph is only shown in a small interval and does not calculate the rest
Hi, I have an MT4 running on my remote server with an EA. When opening a chart (with no EA on it) and placing a manual trade and a stoploss, the stoploss keeps going to breakeven after 1 second. When can be the problem?! its super annoying
Hi, I'm unable to open my mt4 platform. I've tried so many different things, but none of them seem to work. Does anyone know how to resolve the problem
Hi, I want to ask if there exists already a library for drawing objects and handling according to the error messages (wait, move,...)?
Hello , i built this code trying to check the results of the EA's in my account based on their magic numbers. i loop through the trades from the oldest to the newest for each magic number and perform calculations in order to calculate values e0 , e1 ,e2 . i will share the code and then explain the
Hi, I want to know today's closed total profit.(whole account) Here is the code. However, when I open a new account and run the EA, it shows as same as account balance like below picture. This is because there is no closed profit today? Do I need to add some code ? double ProfitDey( int type) {
[Deleted]
I've been programming and testing strategies in my spare time just for fun, but lately a problem with MT4 has made it impossible.  When I run a backtest, change the parameters, and run a backtest again, the second backtest frequently uses the parameters from the first one and so it gives me the...
[Deleted]
  Editor Go to line  (10)
Hi, actually two questions, first: When you got an error from the compiler in line eg. 375. How do you get to that line? I haven't found any "go to" line in the editor, so what I do is I write xxx in some part of the code, hit compile again and narrow down the line where the code has the error. Is...
Hi; I am using this formula to calculate percentage: Profits= NormalizeDouble ((OrderProfit()/orderProf)* 100 , 2 ); (orderProf is preset to $200). It works fine, except it doesn't display properly: Any suggestions? Thanks a bunch
Is it normal? Or is it a bug? const int GLOBAL = 1 ; class CTest { private : static const int MEMBER; public : static void method(); }; const int CTest::MEMBER = 1 ; void CTest::method( void ) { int arrOk[ 3 ] = { 1 + 2 , 1 + 3 , 1 + 4 }; // OK int arrNotOk1[ 3 ] =