MQL4 and MetaTrader 4 - page 81

What's the equivalent of AccountInfoInteger(ACCOUNT_TRADE_ALLOWED) for MQL4? also what about the equivalent of? TerminalInfoInteger(TERMINAL_TRADE_ALLOWED)
Hi everyone, I work with a computer every day that I am not allowed to install software. Can I use MetaTrader 4 or 5 without installation (portable)
Hi all experts, I am new to MQL programming and try on some EA programming but facing problem whenever call to OrderModify(). There is no compilation error but on running the EA in tester will give Error 130 on OrderModify() call. Attached below my create order function code for review. Any advice
Hi guys! I was wondering, these numbers from MT4. What do they mean? I observe that sometimes MT4 is not moving smoothly. Like when I want to add an object or something, or moving mouse pointer over the chart, it is freezing for little moment. And I have observe that if I brake internet connection
Hi everyone, Noob to coding here but I finally completed my own EA without errors or warnings...(doesn't mean it will work, I know). Any thoughts on making my code better? When I tried to run it in the Strategy Tester it received no results and instead brought up the following errors/warnings
Hey Guys, can anyone please help me with the param //+------------------------------------------------------------------+ //| CCI DIVERGENCE.mq4| //| Copyright 2022, ISMAIL LEMIN| //|
Hello coders, I know that there are other threads where there is a discussion about this topic, I found the code of William Roeder ( https://www.mql5.com/en/forum/133792/page3 ) and I tried to implement in my code, but I'm not able to find the unique formula which works for forex (3 or 5 digits)
Hello everyone! I need help, I have made an Expert Advisor, and in my opinion it should not have problems but when I go through Backtesting, it gives me some errors that I am not aware of and that I cannot find in Metacuotes to solve it either. Could someone help me
I've having trouble setting up bollinger bands for rsi values What I've attempted so far for ( int a= 0 ; a< 40 ; a++) { rsi[a] = iRSI (Symbol(),Period(), 14 , PRICE_CLOSE ,a); bbrsiup[a] = iBandsOnArray(rsi, 0 , 34 , 2.0 , 0 ,MODE_UPPER,a); bbrsidn[a] =
1 bool BreakEven(int MN){ 2 int Ticket; 3 4 5 for(int i = OrdersTotal() - 1; i >= 0; i--) { 6 if(!OrderSelect(i, SELECT_BY_POS, MODE_TRADES))continue; 7 8 if(OrderSymbol() == Symbol() && OrderMagicNumber() == MN){ 9 Ticket = OrderModify(OrderTicket(), OrderOpenPrice(), OrderOpenPrice()
Can we detect that the scale of the price axis has changed when the price rises/falls outside the original interval on the price axis? I thought this should be handled by a function OnChartEvent with id CHARTEVENT_CHART_CHANGE, but unfortunately not
Hello, Does someone knows the code/script for compounding? I'd like to test when it's the best time to compound (per how many trades or days). Manually testing it is going to cost a lot of time I think (when you consider that I have some expertswhich make around a thousand trades per year).. And...
Hi, I'd like to know how to do this. I tried to use OrderSend and on the lots input I wrote AccountBalance() / 200. But after 3 or 4 trades on backtesting appeared a bug, it bought the maximum lots it could buy. So what should I do for compounding?
[Deleted]
If I want to risk 1% of my account for a trade, is there any code or function to calculate lot size
[Deleted]
So I've read many discussions that all conclude that compounding your wins is bad, due to the risk/reward equity ratio etc. etc. But my question is, now what?? Obviously if someone wins more they'll want to put that back in their winning system, but how do they do that without compounding? I am...
this is the code whit 2 errors #include <stdlib.mqh> int OnInit() { // Agregar aquí sus operaciones de inicialización return(INIT_SUCCEEDED); } void OnDeinit(const int reason) { // Agregar aquí sus operaciones de finalización } int OnTick() { // Obtener el precio y el volumen de la acción double
Hello, I'm looking to subscribe to a MT4 Signal but the trader has very low equity around $300. How can I subscribe to to his equity proportionally? I see no option in MT4 for this. I want to put in $600 and make my trades 2x his. Cheers, Eashan
I have two accounts open in my MT4 desktop, I bought a new cell phone android and Im not able to sing in on any of my two account from the new mobile. All my credentials are correct y doble check them both. Can someone help me please. I have no SIM card on the phone, just wifi
Hey there. I have some scripts I use to use hotkeys to place orders in mt4 using my stream deck while scalping. I didn't originally code it, but I did make some minor alterations to better suit my needs. I miss hearing the confirmation sound "ok" that one click trading makes when an order goes
Hi, I remember reading about this subject in the documentation but can't seem to find this subject anywhere now. The reason I ask is because I get error 4200 for ObjectCreate of almost the same exact object. Wondering of there is a limit etc. //----------------------B19 string name19= "B19" ; if
Everytime I use ErrorDescription function like here below I receive "Error: ERR_NO no error" message. Instead of error description I get stupid "no error" text. No matter what error number is, always the same "no error" text. What am I doing wrong? Anyone could help? Print("Error : ", GetLastError()...
Hello, I am new to MQL4 programming language and I am trying to write the SuperTrend indicator in Tradingview in mql4. My problem is that when I use the #properties strict code, my program does not work, but when I delete this code, the program runs smoothly. What do you think I should change in my
Hi All, The problem I encounter when drop my EA on USD/JPY & XAU/USD (2 symbols). On the USD/JPY it displays the stoploss of XAU/USD & then as price change's it displays the original stoploss (when trailing), so on & so forth. My code below, I tried changing a few things but no luck & my order magic
[Deleted]
Hi all, simple question: is it possible to set the position of object - whether it is in front of the chart or behind the chart - for each object separately? I know that the chart option "chart on foreground" exists, but that sets all objects to the background. Could the answer to my question be the...
Hi, on mt4 it is possible to combine two indicators in the same window, for example the moving average on the standard deviation. But how is it possible, by programming, to compare the position of these two indicators with each other? For example if the moving average is above the standard
hello guys i need help I was checking and testing the market, but I need a special indicator. I need 20,000 Tenkan_sen in one indicator. The periods are from 1 to 20,000. I know how to make an indicator as a beginner, but in mql4 it supports up to 512 buffers. On the other hand, if I want to program
Hello, i am trying to code when my ea creates a order and if that candle closes opposite way of signal, i want to close order before it reaches its stoploss. PS: if iClose-iOpen>0 it will be bullish candle, if <0 it will be bearish candle So i need to get info when trade candle closes. Do you
Dear All, Does anyone have a script (EA) that export automatically historical data (1hour, 4 hours, 1 day)? Thank you, Robert
  Larger fonts in MT4  (24   1 2 3)
My vision is getting even worse and I'm only just barely able to use MT4 with considerable difficulty now. I have the windows systems fonts etc enlarged, but it doesn't affect the MT4 client fonts. Is there anyway that I can (easily) make the fonts in MT4 larger as there is in the Editor? Thanks
  Drawing the straight line  (12   1 2)
Hello, I need some help with lines on the charts. Lets say, I found high of the day, or whatever, markered a support or resistance level from H or L of this Candle. Then, is it possible to set kind of loop which allow this support/resistance line/area to extend pararel with every bar which appears