MQL4 and MetaTrader 4 - page 53

where the best place to include this code below? i want to get phone notifications with the quantity of divergences, or names of the divergences (indicator attached int timeframeInSeconds = Period (); string timeframe;
recent I downloaded a MACD_OsMA_4ColorH_2LVar__mtf.mq4 it is "Copyright © 2004, MetaQuotes Software Corp." MACD_OsMA_ColorLH.mq4 but after I compile on my MT4, it could not generate a MACD indicator chart. After Compiled it, 0 errors please help me solve this problem
I have some logic that needs to pause until the next day or week starts. The code and logic works great when I'm running MQL5, but recently i tried to port it into MQL4 and every time i run it in the strategy tester, it would freeze as soon as either of the fuctions are called These are the
i am try to make one indicator code but in this get some error
Hello coder ... pls help us this following code to add it averaging function input Ture False If Ture EA open all order avg price show in chart in the price and line also and all order set TP in avg price + Set tp how much in TP tab thank you
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
  help  (1)
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
  Indicators  (1)
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
  Version check  (12   1 2)
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
How to fix OrderSend Orror #138
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
  How to get bull/bear candle?  (17   1 2)
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"))