MQL4 and MetaTrader 4 - page 115

Is there any builtin function of mql4 that can read the text label ( IndexLabel ) of the selected indicator buffer
Hello guys I am trying to run optimisation on MT4 with differents EA's but each time i get not results and this message: 2020.06.27 21:06:03.542 There were 2 passes done during optimization, 2 results have been discarded as insignificant Is there a third party software that can run various
HI All, I want to create one Robo-trading software. In NSE segment it is not allowed to do directly auto-trading via MT4 in India. So I want to create a robo trading software. How it will work : - I have to feed NSE Data to MT4. I have to create Customized Indicator (as per my strategy). Then I have
Hi, please help. (I am self-taught) I can't figure out why it's a mistake. EA buys or sells according to the last candle opean <closed or opean> closed When the loss is closed, the EA multiplies the next position until it closes on the TP. Please help. Error: 'selectOurOrder' - function not defined
Hi. I was using Stylo S55 for MT4 n I changed to P40. So every time I try to install MT4 on d P40 it recognizes d P40 as d Stylo S55 n therefore can't in stall. Please help
Hello, I am new to coding and to this forum and am seeking help with the below code: Trying to trouble shoot what i did wrong I am receiving the error 'int' - semicolon expected Any ideas would be very helpful thank you void OnStart () int dayoftheweek = DayOfWeek(); bool dayoftheweek() {
hello I have this indicator which I have modified a couple of things but I can't figure out how to finish it, this indicator has a schedule where it creates a rectangle from high - PRICEHIGH from 14 - 23 hours and I need how to make this part of the indicator work from 15-23 this part of the code
Hi, how can i solve that i get Ordersend error 134. When i use strategy tester and acccount balance is 10dollar so i get ordersend error 134. But here the ea have to check money before ordersend. So i have checked that with that function bool CheckMoneyForTrade(string symb, double lots,int...
Hi, I need some help fixing my optimizer so I can resume the optimization of my EA. My optimization results are useless because they are showing me trillions of dollars and insane profit factors. The actual backtest results for the parameters are completely different. Sometimes even negative. There
I am writing an MQL4 EA that I am frequently optimizing. Recently, the number of combinations are increasing exponentially. Soon my 16GB of RAM will no longer be sufficient, unless I want to wait months to optimize. I know MT5 has cloud CPU solutions, but I can't find anything for MT4. Can anyone
I have a large EA that works wonderfully on EURUSD 1 minute in virtual, in Mql4. My problem is that as soon as I get into reality, he loses money. I turned in all directions and I cannot correct the error. I think it should be fairly easy to fix. Thank you in advance for your help
Hey Guys i Just Tried To Cconvert an indicator From PineScript to Mql4 and i made this indicator but now i want to add some sideways market filter to it for more accurate signals i found some indicators called " Slope Direction " is there any way to tell this signal indicator to " Do Not Show Signal
Hi everyone, I'm new here, also this is my first day using MQL4. Is there a way to use MarketInfo MODE_STOPLEVEL to be the actual value of the min stop loss and take profit in the input and aftwards change the value based on user's input
There is no way to get to the point. I need to send orders asynchronously, I mean, I can't wait for a reply to be sent, to send another one, because I have more than one order to send at the same time (for two different pairs). How to send orders asynchronously with MQL4? Thanks
Hi Everyone. I have been using an indicator lately that I really like. Essentially the indicator Tracks Price Action and Volume and notifies you of trend changes. The only problem that I have is with the alerts. When it alerts you of a trend it literally states: "New Signal Current Trend Up" or "New
Hello there, i have a question: Maybe you know the super trend indicator. I want to use it for my StopLoss. But somehow this is crazy: When i ask for it´s value on the chart it looks very normal! It shows the normal price on the chart, that it should have. But when i ask in the code for the value...
// Exit orders, long trades if (MarketPosition == 1) { if (iBarShift(NULL, 0, OpenEntryTime) - 1 == 0) { LStop = OpenEntryPrice - MMFrL * MathAbs(iMA(NULL, 0, NMML1, 0, MODE_EMA, PRICE_LOW, 1) - iCustom(NULL, 0, "ZLTrend", PRICE_CLOSE, NMML2, 0, 1)); LStop =
  PSAR to closing trades  (14   1 2)
Hi guys, I want to ask how to close order using a Parabolic SAR. I have two logic to close the price: 1. comparing the previous bar with the current bar. double sarPrev = iSAR ( NULL , 0 , 0.1 , 0.2 , 1 ); double sarCurr = iSAR ( NULL , 0 , 0.1 , 0.2 , 0 ); //then comparing with the price if
Hi guys, I've been messing around with the Camarilla Indicator and I wanted to get the main pivot values for my EA, can I use iCustom() for that? or should I just pass the code to the EA? but where exactly would I place it? I tried to place it on the onTick() but with a condition of only calculating
Hi everyone, I am trying to show arrow once the bearish pattern is found but my code is not giving me any error nor even it is showing anything on chart. Please read the below code and your help is very much appreciated. Many thanks
I want to copy an EA, change it and make another fairly similar EA. The EA uses an .mqh include. I open the include in Meta Editor. I press F7 (compile). No errors. I drag and copy it with another name. I open it in Meta Editor. I make NO CHANGES to it. No change whatsoever. It is an exact copy of
Hi Guys, Could anyone help, i can't seem to correctly balance the parentheses. Any help would be appreciated. thanks Tim int SmallSMA = 5 ; int BigSMA = 15 ; int BuyOrderNumber; int SellOrderNumber; #define MAGICSMA 202006 extern double TakeProfit = 500 ; extern double Lots = 0.01 ; extern double
Hi guys, I have an issue with my EA where it works fine on the back test, but goes completely berserk on the live. What happens is when I back test, the EA places a total of 269 trades right? With a win rate of just over 60%. But when I released the beast into the lives, it placed more than 40
hi i have the a custom indicator that shows some arrow and line some of them suppose be delete but they are there as i open the custom indicator setting and close it without any change in the input the chart goes to normal and unwanted object deleted how i can prevent that
I am trying to do something along the lines of: If( *variable changes* ){ Buy=true; } I am pretty sure this would involve some type of loop, but I cannot seem to get it to work without doing something more complicated that involves multiple variables. Is there a simple way to do this
I have a leader-board style indicator that shows the most profitable comments from order history. The problem is if there's a tie it overwrites one of the values instead of showing both tied comments in order. This is how it looks normally. This is after I tried to fix it. int OnCalculate ( const
Hi everyone I modified MT4's official DMI+ADX indicator( ) to make it same as other other platforms. The change is, MT4 calculates the EMA of (±DM/TrueRange) for ±DI while my version is to calculate EMA of ±DM and TrueRange separately then divide them. The ADX part
Hello Everyone. Please can anyone help to add sound and notification alert to this indicator...really would appreciate it
Hi, I would like to add a sound alert to this mq4 indicator(it seems very simple to get it done but I am really not good at even the basic coding), is there anyone who could help me, please? thanks in advance! yours, shunfengcn
  Need help with coding  (135   1 2 3 4 5 ... 13 14)
Hi i am trying to code a very simple EA but i'm not a programmer and i've never made an EA before. I took the MACD Sample from MT4 and edited some parts and deleted all the rest that i thought i don't need. I'm sure my code is really horrible I would like the EA to work like this: My custom...