MQL4 and MetaTrader 4 - page 302

Request to solve warning error in the code please provide a solution of the error !! {        OrderSelect(i, SELECT_BY_POS, MODE_TRADES);        if (OrderType() != OP_SELL || OrderSymbol() != Symbol() || OrderMagicNumber() != 2)        {            continue;        }        ordticket[orders][0] =...
[Deleted]
Hello all, I am new here. I was wondering, is it possible to integrate Indicator code into an EA, or if I could put a script in that would allow me to have the Indicators appear automatically when I start the EA? Thank you, abonifi1
[Deleted]
Dear experts, 1/ FIRST PROBLEM: My using indicator will draw many vertical lines and horizontal lines so to keep them in order I want to delete all these lines right after I added it (int INIT phase) then let it draws again (int START phase). But in that INIT phase, indicator can't delete all...
HELLO,please if someone can help i try make a EA to have a Working with custom indicators included as resources but without success.i have already read documantation but something i make wrong. if someone can help i appreciate it.i have upload the custom indicator and a EA which use ths indicator
Hi, My MT4 does not allow me to switch to another currency pair by clicking New Chart? I used to be able to do this. Does anyone know how to fix this problem?
  Deleted  (2)
Deleted
Hi I want to have arrows appear when 2 of my charts show green at the same time and when they show red at the same time representing buy and sell signals, How do I go about this?, these are custom indicators and one is .mg4 file format and the other is .ex4. ideally I would also like it to show exit
Hello, While making the Heat Map Multicolor indicator I needed some colors functions. I used the two functions rgb2int() and colorgradient() published on http://www.thetradingtheory.com/colors-in-mql4/ (thanks to zenhop for sharing). These two functions do what they say: the 1st one rgb2int()...
Hello, what is maximal deposit utilization rate? There is attach files. I took part in Liteforex demo contest. They let me trade with intial deposit 5000usd. You can see my trade history in one of these attach files. Every time i open trades with big lots sizes, my maximal deposit utilization rate
  MQL4 Programming  (2)
Hi There, I hope to learn the MQL4 Programming and its OOP, Please, if you have any ressources Thank you very much
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