I have a problem with the below code , I am unable to get SL & TP to be working with the code as orders don't close at specific SL & TP //+------------------------------------------------------------------+ //| Moving Average.mq4 | //|
The following code compiles without errors or warnings: #property strict class CTest { private : int memberA; double memberB; public : void initialize( const int a, const double b); }; void CTest::initialize( int a, double b) { a++; memberA = a; memberB = b; } How normal is
Hello, In MetaTrader, we calculate MARGIN REQUIRED easily as follows: MarketInfo(_Symbol, MODE_MARGINREQUIRED) I tried to implement the same idea in cTrader, but I'm facing issues. How can I create the same function as MarketInfo(_Symbol, MODE_MARGINREQUIRED), but with cAlgo code? I created the
Hello people! Im wondering if someone could help me, i know how to change fibo level colors using "OBJPROP_LEVELCOLOR"... but how can i change background color of a specific fibo level? Like the i want to change the background color between 0 and 23.6 to red
Hello, I'm new to programming in MQL4, about 8 months now. This is the first time I've had to directly seek help and this problem is driving me nuts. I've written a zero cross indicator, generally the values should fall between -5.0000 to +5.0000. Given the daily chart, my indicator will start on
Hello everyone, I tried installing Metatrader 4 for PC on Windows 10 that was downloaded from a broker's website but it says that the software cannot run on my PC and that to find the version for my PC, I should check with the software publisher. I also tried downloaded Metatrader 4 for PC on
I'm still fairly new to FX trading and using/understanding the MT4 platform, but are there any security concerns with the short and generally insecure passwords used on demo and real trading accounts issued by myFXBook and the various brokers? I see most generate 7-8 character passwords with
i just want help what can i do to correcting the errors that the test report giving me when i uplode a EA to the mql5 platforme i verified the code over and over it look everything is so good but mql5 platforme tells me that is errors i can't understand
Is it possible for a custom indicator that when we check there is a buffer but when we use I custom, the buffer cannot be read? I mean is it possible some one build Custom Indicator but lock it so we cant use it as EA The problem is I have an indicator in the form of an up and down arrow and I
Hi, This is something I'm really stuggling with. I know my entry price, I know where my stop needs to be base on price but I just can't seem to get the lot size to calculate correctly. Are there any examples or tutorials that will help me get my head round what is needed? Thanks
I subscribed for one month vps on mt4 but my EA is not taking trades if my laptop is off. It is only taking trades when autotrading is on. May I know why vps isn't working. my EA is FRZ indicator automator v1.1
I am trying MT4 again for the first time in a long time, and I can't see a vertical price scale in the right margin on my chart. Also, I can see the line for the close price, but there is no price on the end of it. Any help would be appreciated. Thanks.
I paid a programmer to create a EA for me (I am currently testing the EA) that places trades in the direction of the previous candle or bar. The ea has time settings adjustments so you can target specific highly probably candles at the same time every day if you want. Does anyone know of any highly...
Hi, I have seen a lot of these threads without any suggestion on how to actually solve it except when admin got it working. https://www.mql5.com/en/forum/72835/page3 Can I get some help solving this for IC markets please? Thanks
I have 5 indicators. Can they all be put into one mql4 file. One of the indicators I only have a .ex file. Thanks Rich
Hello, what may be the reason of a conflict between indicator and EA? When i use them together my MT4 just freezes
Greetings sorry for the imprecision of this writing: I use an online translator, from Italian to English. I'm looking for a very simple trading system, just to backtest on past daily data, on the forex market, to verify my idea or intuition. I don't have to use it as an automatic trading system in
Hi, Is it possible somehow to check which MT4/MetaEditor version made the compiling of an ex4 file? Thanks
So I've been using this indicator for a couple months, During my manual backtesting it seemed to be great, But after using it live I have a strong suspicion that it repaints. I know nothing about coding so any help would be appreciated. Indicator is attached
Hi, I am new to this forum. I have just started to write my own EA.. I have the following codes.. if (Close[ 1 ] < B1S1Avg) // if previous close is below average price, then current price is nearer to sell level, so create a sell order to average up { //
I sent a MT4 expert to validation but it was returned with 1 single error but without any explaination of that error. This expert I originally programmed in MT5 and afterwards I converted it to MT4. The MT5 version passed the validation without any problems. Please refer to the sceenshot attached
Hi, I need to get if is candle bear and bull. I found some code but not works. bool bullish = Close[ 1 ] > Open[ 1 ] && Open[ 1 ]; bool bearish = Close[ 1 ] < Open[ 1 ] && Open[ 1 ]; I need to find if candle is white is bearish and if is black is in bullish Check attachment
Hi guys, I have developed a strategy and got it into MQL4 using ChatGPT but I don't have the coding knowledge to get it to work the way I want to, in fact it doesn't execute trades at all when I try to back test it. I would love for someone to help me get it to work on MetaTrader. I know the
This was fine before new mt4 builds but is throwing up "cannot convert type string to bool" when I try to compile now, any ideas? if((bool)response.getAttribute("error"))
Hi all.
I have recently used ChartSetInteger function to programmatically change sub window height (MT4 latest build 830). Once this code is applied to the chart, then I can't change sub window size manually afterwards.
It seems the code fixes the sub window height and even if I drag my mouse...
I have an EA that only places orders of the BuyStop/SellStop type and only integer values. Of course the variable type has to be double, but the value is always an integer. When the price is touched, the order goes live. In one of my brokers, that has been working flawlessly for days. In the other
Hello, I read that it should be possible with std::bind or the c++ Boost library to bind a function pointer to a class method. Unfortunately I couldn't find any examples of this and I can't do it without help. Suppose I have two classes and I want to bind a callback from class A to an instance of
Hi gang, I'm struggling to get some data I purchased importing correctly into MT4. Two different problems seem to be showing up. First is each day only imports from 10:00-23:59, while my csv file contains data for each day from 0:00-23:59. Second, which I'm assuming is related somehow, is that
iTime ( _Symbol , _Period , 0 ); Should return the current bar open time , but I have an issue where it sometimes returns the previous bar time. I didn't think it was possible. Maybe if I RefreshRates() ? Edit: Nope. Still happenning
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.