MQL4 and MetaTrader 4 - page 181

Hi guys if I try to do a backtest on my custom Expert Advisor it starts eating diskspace like crazy within 5minutes easily 100GB, I have no idea why maybe the loops inside my code? #property copyright "Copyright 2021, MetaQuotes Software Corp." #property link " https://www.mql5.com " #property
  Math and Lotsize  (20   1 2)
in my code i have a fibo sequence, and multiply that by 0.01 to get my lotsize. simple enuf. But why do i often get some weird numbers? while other times, the lotsize is correct, while other times it is not? This seems to happen with many eas, and not just in mt4 either. in the example in the former
Dear readers. Look the picture. I did the same set-up for testing. Normal MT4 (MetaQuotes Software Corp.) database at first, then below data from TickStory Lite. Bot are 90% modelling quality, but the difference in results are huge... How the heck to know, which is close to reality
  Financial issues  (1)
I can’t deposit money with my bank card into my account
I am trying to build a CSV file where the columns exceed the max number parameters that can be taken into FileWrite (which according to the documentation is 63). Is there a way to to split up the FileWrite so that I can write to more than 63 columns? The data types of my parameters include
Hi I am getting a 5002 invalid file name error. PFA part of the EA source file with single function for this file handling code only. Also attached is the log from Print for this EA file. I debugged the following - 1. Verified that the path printed in the log exists -
extern bool MON = TRUE; input string StartH1 = "03:00" ; input string EndH1 = "21:00" ; extern bool TUE = TRUE; input string StartH2 = "03:00" ; input string EndH2 = "21:00" ; extern bool WED = TRUE; input string StartH3 = "03:00" ; input string EndH3 = "21:00" ; extern bool THU = TRUE; input
hello friends. how i can change mt4 for only use 1 location server and dont conect other location servers. have it app or mt4 tolls? for example how use proxy mt4? my problem is few server locations for fbs broker always is bad guality (red conection status) and i use robot,robot need always
Hello. I have been struggling with this matter for two days now, and can't seem to find of any solution about it. No matter what I do, the values that I get from any custom indicator during backtesting of EA are always totally different from what appears on the charts. I have updated the M1...
Hello there, I have an indicator that plot some right price labels by : extern bool My_Labels=true; //Hide or show labels And, i ask you if is it possible to control the "true/false" state by creating (in the same indicator) an external button on the chart ? Is it really possible ? Regards. EDIT :...
Hi All! I'm making my EA as a Copier. Everything is going well until now. EA is now running good in master mode, but in slave mode could only open orders and modify changes, but can not close orders by itself when master closed. Please help me to debug my code below: P/S: When i close orders in
h write this function string triger() { if ( iClose ( Symbol (),timeframe, 1 )> iOpen ( Symbol (),timeframe, 1 )) { if (( iClose ( Symbol (),timeframe, 1 )- iOpen ( Symbol (),timeframe, 1 ))>( iHigh ( Symbol (),timeframe, 1 )- iClose ( Symbol (),timeframe, 1 ))) return (
I am trying to produce the same result as OrderProfit() method by calculating the trade profit manually, but the result is inconsistent (25.73 vs. 25.74) . Looking at the numbers it doesn't seem to be rounding issue (unless mt4 is somehow internaly using MathFloor() on the profit rounding or smth?)
I am trying to Read values from a file but struggling for past few days (its the first time i am trying to read the file so pardon any mistakes ) I cant figure out what i am doing wrong here. here is the simplified version of the code: Here i am trying to read the values from bin file struct
Hi, I'm after a FX broker that support the use of signals from MQL5 with a leverage of 1:200 or more. I'm based in Australia and apparently the max leverage allowed here is 1:30 (unless using a PRO account which is not my case). Thank you Martin
  time filter  (4)
i use ea with martingal and i wana using time filter just for FirstOrder no for other trades .. some onecan help me.. ****************************************** extern bool UseTimeFilter=true; extern bool MON = TRUE; extern bool TUE = TRUE; extern bool WED = TRUE; extern bool THU = TRUE; extern bool
hi sir I want to know if it is possible on MQL4 to code a function that will close my trade and delete my order at the same time if a Take profit target with the given magic number is hit? is Yes, what should I do? thank you so much
  channel  (3)
does anyone have the mql4 file for this channel or know the name of the channel? How can I get the mql4 file please
is there a way on how i can count the open trades and pending order that have a take profit greater than zero
I do not understand one thing. Since Meta Trader, Windows, Android and all scripts, strategies and Expert Advisors for MT4 are written in C ++ or C # or similar C language. So far, Android has not created the MQL compiler under MT4 yet? I mean no MQL Editor for Android. Besides, there is no...
I am wondering if it is possible to have non-drawn buffers which are not shown in the color tab, but their value is shown in the data window. Below is a detailed description of the problem. I have an indicator which has four buffers. Two of them are drawn on the chart, showing some arrows. Indeed
Hi experts, when recompiling an indicator I see a couple of (red triangle) messages in the Experts log about x number of objects of my program class undeleted/left from the previous version's deinit I never used class pointers nor the new operator, I just declare variables of that class, I was
I can not download the free demo of my own product . Free Demo download is not available. It says "İnstallation Failed" What is wrong about it. I dont know which unit to ask that
Here is the code: #property strict struct MyRates { datetime time; // Period start time double open; // Open price double high; // The highest price of the period double low; // The lowest price of the period double close; // Close price long
Recently I'm excited to find some youtube tutorials about onchartevent and button and dialog,etc. in official library. I successfully wrote a code with button, as well as with button in a dialog. But then when I tried to code a dropdown list (not in input and ENUM..., I want the button in chart), I
This took me a full day of troubleshooting, including an uninstall/fresh install of Metatrader 4 before I managed to find the culprit. The problem is I don't have a clue what to do about it. Here's the code for an indicator, as simple as could be, only 2 executable statements, compiles fine. When I
I am trying to find the 2nd highest sell and 2nd lowest buy What is actually wrong with my comparison for populate the 2nd highest and 2nd lowest? double Highest2ndSell() { double highest2nd= 0 ,highest= 0 ; for ( int i= OrdersTotal ()- 1 ; i>= 0 ; i--) // { if ( OrderSelect (i
  ARROW problem  (1)
Hello, I have a problem with my code, it doesn't place an order when the arrow from the indicators appears Thanks for replying :-) Those are my code for INDICATOR and EA ////// EA ////// //+------------------------------------------------------------------+ //|
Hi guys, I was hoping someone could help me out. Coding is not a strong point for me but I am trying! I'm experimenting with basket trading and would like to try something out but I'm not sue how to do it. Assuming I have multiple sell orders spaced by x amount. When I reach a certain number of...
improper enumerator cannot be used double ism0= iStochastic ( Symbol (),Open_Red_Blue_TimeFrame,Stochastic_K,Stochastic_D,Stochastic_Slowing, MODE_SMA , PRICE_CLOSE ,MODE_MAIN,Open_Red_Blue_Trade_Bar);