MQL4 and MetaTrader 4 - page 312

Hello all! Iam novice on mql4, i would like to block the backtestof my expert advisor. I looked, but found nothing about this. I only see who i need to user "MQL_TESTER" So i would like to disable backtesting of my ea. Who can help me for only this little option to add to my code. Thank you
So ive tried many times to install mt4 on my PC but it always install mt5. Any reason why
Hi guys, how are you? i'm switching to MT5 and i need to have those 2 indicators i'm actually using on MT4. There is someone so kind to create it for me or at least convert them? Let me know and have a nice day. ciao Sam <ex4 file deleted >
I Had an amazing idea for a volatility indicator, then I coded up the indicators but for some reason its coming up as repaint I'm sure if we could fix this issue we will all have an amazing volatility indicator (I'm trying to run the indicator on the 5m chart, required_timeframe is period_current
hi im trying to add some external bool var to array i dont want to use the array resize meathod because it will shrink my array if(M1) { ArrayResize(TimeFrame, ArraySize(TimeFrame) + 1) TimeFrame[ArraySize(TimeFrame) - 1] = "M1"; } how to add them as they are extern bool trade_the5=False;extern
Hi, I am trying to learn MT4 EA programming but it makes me so confused , so i need help for a basic code to study on and learn the logic. What i need is a basic buy/sell EA which uses price and an exponantial moving avreage difference. Any help will be appreciated
HiI'm looking for some sort of program to setup external password for mt4 after for example -2% drawdown or 4 continuosly STOP LOSS. So when. Is activated you cannot play on mt4 untill you type password
Hello everyone, just a new member here intrigued to learn more about MT4. Apparently, when downloading MT4 for my Udemy course, I encounter a problem that my Strategy Tester screen is not showing all the features. I put the attachment below; it only shows expert properties and starts buttons. What I...
Hi, I created an indicator that generates a line using OBJ_TRENDBYANGLE in MT4. angle_line1="angle_line1"; angle=12; price1=25.10; price2=0; ObjectCreate(angle_line1,OBJ_TRENDBYANGLE,0,Time[1],price1,Time[0],price2); ObjectSet(angle_line1, OBJPROP_RAY, false);
Hi i want to ask how to convert string to bool something like this bool trade_m15=true; String trade=StringConcatenate(“trade_m”,Period()) bool test = trade What im basically trying-to attempt is i have array of time frames and i want to check if the user want to trade these timeframes or not, i
I don't understand at all. How is it possible? A line of code calls a functionwith: Print("BEGIN") at the very top. Below the function call there is: Print("FUNCTION WAS CALLED"); The program prints FUNCTION WAS CALLED but NOT BEGIN ! All files are freshly compiled and there is only one function
Hello traders, During the confinement, the AMF (French regulator for trading) disallow to trade SHORT on the France 40 (CAC40) indice. Because of that, my broker unactivate the sell for France 40 and in MT4, even in the strategy tester we cannot sell (OrderSend error 133) for all sell. I'm building
I am trying to close partial orders, see snippet of my code... bool PartyClose(int tik, double lot, double price) { for(count=zero_int; count<=zero_int; count++) if(!OrderClose(tik, lot, price, iSlippage, clrRed)) Print("OrderClose Error ", GetLastError()); else return
  ObjectDelete  (2)
Hi guys, on my costom indicator I draw a lot of hline bye this line code: if(!ObjectCreate(ChartID(),Obj_Name,OBJ_TREND,0,time[i],TG,time[i-1],TG)){ Qnt_Symb=FileWrite(FileOUT,"Errore creazione oggetto getlasterror ", GetLastError()); }
Greetings everyone am kindly and humbly requesting if there is anyone who can help,convert this indicator for me please thank you regards Domingo
Hi guys I'm struggling and hope that someone can please point me in the right direction. Once a trade is open, I would like to open another buy trade if the price moves 10 pips up or another sell trade once the price hits 10 pips below the OpenOrderPrice. For some reason my code isn't working. It
  New Candle Countdown Timer Clock  (58   1 2 3 4 5 6)
b-clock view Time(Minutes,Secound) how long to the last bar complete
I have an EA that i use for back testing and figuring out my strategy. I am using the 1.5 times the ATR for my stoploss and I am using $20,000 for my risk. Everything is perfect for 25 currency pairs, but the 3 pairs that have USD as the base currency are being calculated wrong. I can't figure it
hello i want and bot to do the following : if i place order Buy EURGPB at0.87060 (for example 0.15 lot ) Tg1 at 0.86860 (20 pips) Tg2 at 0.86560 (50 pips) Tg3 at 0.86060 (100 pips) Sl at 0.87660 if Tg1 hit i want to close 0.05 lot and Sl to be break even if tg2 hit i want to close 0.05 lot and Sl to
  PSR as exit  (4)
How to code this think I am trying this for last one month I am not expert level I am on learning If the PSAR trend is changed to positive to negative my Open buy positions will close and just opposite in case of sell Do I need to use switch case or just I can do with if function Thank you in
Hello Forum, I am writing a function in MQL4 where I want the lowest array of an RSI to be lower than a number I define. There is no error when I compile it but it won't execute. These are the errors I get from the Journal. 2020.04.28 06:55:22.813 2019.11.05 00:00:03 Testing pass stopped due to a
Starting today, when i save code i can no longer read it outside of MetaEditor. It appears garbled/empty when looking with a text viewer. My back testing system can no longer read from the code to configure the tests to run. Has anyone else seen this? version 5 build 2302 24 jan 2020
Hi, I have a 2d-array and want to get the max value of each column. The ArrayMaximum()-Function is for 1d-arrays only. In the picture you can see an example. The numbers are stored in an 2d-array. In TF5 the highest number is 71. Is there any function in mql4 to get to this value? I've looked over
Hi, So I'm working on this simple script, that reads through a txt file, where each line is in the form of " AUDCAD . 0.9076 a", so the pair, price and a letter meaning (a)bove or (b)elow. I want to use it as a price alert script. I manage to read the file, get the pair, compare it with MarketInfo
Dear all, I wrote an EA that allows a total of 5 trades to be opened at one time. However, I only want one trade to open per bar although not necessarily at the beginning of the bar. Therefore, the code written here (https://www.mql5.com/en/forum/216567) or similar variations does not work for me. I
Hi all, I've got an include.mqh file with a few useful functions that I'd like to provide to some people. However I don't want to disclose my source code as it took long hours to do it. The idea is for them to include my file like: #include <coolfunctions.compileExtension> function() {
[Deleted]
Hello, I'm trying to add Martingale to my EA, from another file that defines lots. But I researched and I couldn't solve a mistake, forgive me because it seems simple, please help ... EA code: #property strict#include "SetLotSize.mq4"#define MAGICMA 20050643extern int Frames=2;extern int
  this is weird  (1)
hi guys i have coded this ea and it work fine to some dgree m i been trying for the couble of days to figure out what is wrong bur i cant find it m i tried using some print statment in attempt to find the error but no luch , i dont even get ordersenf error or somthing from this sort to even start
I have an ex4 indicator that I downloaded, I would like to create notifications for this indicator when I have a signal (Up or Down). On Data Window I noticed that it has 4 Parameters and these only show values when mouse is hovered on a specific point of the indicator in the bottom Window. Some of
  Very easy to solve for you  (13   1 2)
hello everyone first of all thank you for read my post. I have faced one problem. I am creating custom indicator that buffer[] takes value of 1(for example buffer[i]=1) when moving average is increasing. I wrote code but this error appeared "SetIndexBuffer-no one of the overloads can be applied to