MQL4 and MetaTrader 4 - page 65

  Open opposite order  (33   1 2 3 4)
Hi all, Would like to get from you help to deal with this issue; When an order is open and the price is under of the order open price I want to open an opposite order. In this particular case I'm try to use this code but without success. Could anyone give a help here? Thanks in advance Luis
hi, i would like to add a delay in seconds from the time my ea should open example: my expert now finds an opportunity but opens after a few seconds Thanks
Hi mates , When I backtested MT4 EAs from the market. The backtest report only containing maximum drawdown and realative drawdown. I want to know more like how often the EA reach a specific drawdown level. I can write mq4 code and make my own EAs print that info but how about EAs that I don't have
Hi, Is it possible to bring a specific chart into focus by Symbol Name with some script, when you have a few charts open? Mt4 Platform. I have scripts to do buy's and sell's for different instruments, but I can only get them to work correctly if the specific chart is in focus first. Even if I set
I am using MT4. It is difficult to see the various lines displayed on the chart, so always hide the 12th and subsequent lines from the latest candlestick. Please tell me the source code (MQL4) of such an indicator. Thank you
Description : Hello , I need your help with a challenge involving an `.ex4` indicator in mt4. This indicator creates trend lines on the chart, but I'm unable to access its source code or edit it. The issue I'm facing is that the trend lines generated by the indicator don't appear in the object
Hi all I have a function in MLQ4 to create a horizontal line and I am adding in a Text to the line. However, I want this to be moved to the right side of the chart (attached). I have tried setting up the anchor and alignment but none of these work as the text is being formed with the HLINE Object
For clarity for myself, at least, and anyone else that has an interest . . . .hst file format valid as of MT4 Build 509 The database header first . . . total 148 bytes intversion; // database version - 4004 bytesstringcopyright[64];// copyright info64 bytesstringsymbol[12];// symbol name12...
I keep getting this error in my code can anyone help solve this please. '[' - array required Thecash.mq4 56 14 '[' - array required Thecash.mq4 56 30 '[' - array required Thecash.mq4 62 14 '[' - array required Thecash.mq4 62 30 '[' - array required Thecash.mq4 76 14 5 errors, 0 warnings 6 1 if
Strategy Tester gives this message and quits. I have had more than a year's worth tick data collected on my brokerage account. Today, the tester stopped working all of sudden in between testing. The error message is: TestGenerator: deficient data 'AUDUSD1' (58 rate records) Is there anyone out there
Hello, This is driving me nuts! I can login to the MQL Website on my laptop. But when I'm in my VPS I cannot...! I even tried to register a new MQL account using a different email address, received the email, clicked on the 'Activate Account' link, entered the details....and it STILL comes up with
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