MQL4 and MetaTrader 4 - page 234

"Dear Colleagues: I have been using my EA with a server, and after analizing results, I have seen some severe differences that I was not expecting, maybe I could get your help because this is a big problem for me. In order to understand how the EA should behave lets see how it was executed on my
Hi guys, An EA I am working on currently was found to be much less profitable on short positions vs long positions over the testing period. The simple solution to reduce Max DD and increase profitability is to either reduce position sizing for short positions or alternatively increase sizing on long
Hi, ‌‌Does anybody know the meaning of the following error: ‌EventSetTimer(xxx) error 1158 ‌‌ (‌xxx: time specified for the timer within the EA) ‌ T‌hanks in advance
  memory crash  (1)
Hi all, I had a memory crash while trying to create a Renko chart. I shut down the platform, but when I try to open I can do nothing because the memory is out of bound, the platorm is not responding. How can I solve? Thank you
Hi All, I am always charting on tradingview, but I want to code a strategy of mine into mt4. The standard Awesome oscillator on mt4 has only the option to apply the indicator on the current timeframe that the chart is in. This is fine, but to make the strategy I use work, it has to be on a different
  Counting bars including weekends  (82   1 2 3 4 5 ... 8 9)
There are two points t1 and t2, between them there are 25 bars, How do I know how many outputs there were between points, e.g. on D1, so that I can add them to the required bars
Hi, I wanted to try my news system in the strategy tester but I get error on the handle when I it comes to FileOpen.. Error code unknow error it say. Maby it can't open files in the strategy tester? Also when it checks! IsFileExist it can't find the file but it's there cause it manage to...
Hi All, I have an EA on a VPS, it seems loaded correctly, but it doesn't start properly because of the error: "cannot call dll", can someone help me to load dll in the correct path? PS: EA is coded in MQL4. Thank you very much! Francesco
[Deleted]
Is it really that important for a beginner broker to first trade using a demo account before entering live trading even though the trader has the knowledge and knows how to use the platform's software
hello please anyone can give me the code mq4 for how i and save value in register and read it thank you before
Hi I want to use the Force Index Indicator that's available in the mt4. When I look into the the mt4 docs about force index, the iForce doesn't have the fixed minimum and maximum value parameters while the indicator itself has those parameters. Is there a way to add those parameter in the mql4
-
  Synthetic VIX  (34   1 2 3 4)
Enclosed is an indicator I coded up based upon an article in the December 2007 issue of "Active Trader" magazine. The article was titled "The VIX Fix," by Larry Williams, and describes a formula that (quite accurately) mimics the VIX indicator on markets other than the S&P 500. If you ask about how...
  High-Low Trading  (3)
int LotSize = 1 ; double StopLoss = 1 ; double pips; int MagicNumber1 = 1234 ; int MagicNumber2 = 5678 ; double high = iHigh ( NULL , PERIOD_D1 , 1 ); double low = iLow ( NULL , PERIOD_D1 , 1 ); int OnInit () { double ticksize = MarketInfo( Symbol (),MODE_TICKSIZE); if (ticksize == 0.00001 ||
Hi Guys, I would like to use an ATR to define a StopLossArea, afterwards I would like to search for all Bars/Candles that are crossing this StopLossArea. In the next step, I would like to get the LowestLow from those crossing Candles as my final StopLoss. Unfortunately I'm not sure how exact I could
Hello, I want to find prices like 1.25100, 1.14000. prices that is rounded to 100, 1000, 10000, 200, 2000, 20000 etc. How can I do that? Can someone help me? Thanks
Hi, Im searching code to add on my mq4 indicator helpping me Alert twice: 5 min before candle close and close. May u know this code function. Kindly help me
Is there any way I can open a profile in MT4 when I have no trades open? During the night I usually have some open trades running for a couple of hours. If some of them are losing trades they will close the tab and a recovery is taking over those trades until they are solved. If they finally are
Here is the code ive used before but for some reason it will not place trades now. //+------------------------------------------------------------------+ //| Cortana.mq4 | //| Copyright 2021, MetaQuotes Software Corp. | //| https://www.mql5.com |
I'd like to know what anyone thinks about quitting my job and getting involved in trading. Rabota like a prestigious, S. not bad > $ 3000, the firm solid, one of the "blue chips" but tired, specifically tired of working "Uncle", like already vyrobatsya in my trade, the system was own, not the fact
Hello I have created an EA Dashboard now i want to insert it in a Dialog, Below is code for Dashboard and GUI( Graphical User Interface) //+------------------------------------------------------------------+ //| TTB.mq4 | //|
My EA is very slow because I am using "For loops" through a multidimensional array? Is there any alternative to Array? If possible I would like to have a dynamic 2 dimensional array with the following attributes: 1. Update the 2 dimensions of the array at anytime 2. Search values by fixing one
  Currency heat map  (159   1 2 3 4 5 ... 15 16)
CP6 directed me to a site with something like this on their web page, and asked if it can be made as indicator. Well, here it is (changed their approach ) PS : if you, by chance, get a display like on the lower displayed indicator, download and install the MS LineDraw font in the attachment and
Hello, I need help on combining two indicator which serves the same purpose (to change between symbols). The only difference is one will read the symbols listed in Market Watch as the source and another one needed to be set manually every pair that need to be view. I want to combine the source of
Every timeframe has a large "unit" period whose end/beginning is marked by a dotted line on specific milestones: - from M1 to H4 it's on every 0h00; - on D1 it's on the end/beginning of every month; - for W1 and MN, it's on the end/beginning of every year; I am not happy with the default dotted line
Hello everyone, I'm trying to code a very basic EA but I'm having trouble getting the function to work that checks the spread. I have tried calculating it manually as the code is now. I have tried calculating it with the MarketInfo(Symbol(), MODE_SPREAD) function. I have tried calculating it with
Hi, what I'm trying to do is I want to see historical bid price movement on every tick, Currently I using iMA and this is code that shows price closer that I am trying to do: double mA; mA= iMA ( NULL , 1 , 1 , 0 , MODE_SMMA , PRICE_MEDIAN , 0 ); // Near current price averaging mA= NormalizeDouble
Hi, I have built an MT4 whose entry signal is based on moving averages. It's working fine but the problem is it's picking only buy trades. I have tried to look for the bug in my EntrySignal() function but there seems to be none (No mix up in the relational operators). Could there be something i'm
Hello, Is there a multimerminal MT4 Multibroker? That is to say an MT4 where we can manage the different broker accounts at the same time? At worst case, there is a software where you can connect 10/20/30 to see only the balance, the equity ... but of all accounts at the same time Even if you can
Hello my dear coding and trader friends. So, recently I came across a new funny problem^^ Function of the code: Open New Chart --> Apply Template --> Take Screenshot --> Close Chart. But in 30% an error occures. ERROR 4024 . The Chart Opens, but It doesnt return the Chart ID. I've programmed a
hi am searching wick indi i can put in the % less or above 100 percent and then it shows me a arrow. i searched the whole web nothing found
This website uses cookies. Learn more about our Cookies Policy.