Hello there, I'm working on the converting the MT5 version of my EA to MT4 version, and it's not reacting the same on MT4. Basically it's an EA to do manual backtest on the strategy tester. As you know the OnChartEvent() function doesn't work on tester, so instead I'm using the OnTick() function to
Hi, Could you give me mt4 multiterminal platform and regular mt4 platform I could not find it on the web. Thanks in advance
if ( ObjectCreate ( 0 , "UpArrow" +Time[i], OBJ_ARROW_UP , 0 , Time[i], Low[i])) { ObjectSetInteger ( 0 , "UpArrow" +Time[i], OBJPROP_COLOR , clrDodgerBlue ); ObjectSetInteger ( 0 , "UpArrow" +Time[i], OBJPROP_ARROWCODE , 233 ); // Arrow code
haha gotcha! but actually, I can't run back testing on my EA's in the weekends, because I use 'MODE_TICKVALUE' in my calculations; and if the markets are closed, it pulls the 'live' value for that 'constant'; which is ZERO. you got me good, MT4. double tickValue = MarketInfo( Symbol ()
Hello, If there is another position with the same Comment, I do not want a new order to be opened. I wrote a method for this, but it is not working. I am getting a false response in the "if(OrderType()==orderT)" part, and it allows opening a position. There is only one open position and it is
Hi, I've been studying and coding EAs and scripts for a few weeks so I'm fairly new to MQL language. I felt a necessity to code an EA that creates a close button for every open position directly on the chart and at the right most corner of the screen, near the price level of each particular position...
[Deleted]
Hi Guys Please assist if you can. I'm new and can't get my head around this one. I have small account that I'm playing with just to get the idea of whats for what but I'm in a small dilemma at this stage. The account balance are 156 odd $ and my equity are still at 126 odd $. Free margin shows -86...
I have been trying to login to my MQL5 community on MT4 to download an expert advisor from the Market, but it gets stuck when I click on Login. I'm using Dipgate VPS with Chrome as the default browser on Windows 10
//+------------------------------------------------------------------+ //| 5MinTrader.mq4 | //| Copyright 2024, MetaTrader 4 | //| https://www.mql4.com |
Thanks in advance. "Modify" appears very often in backtest report as below and how can I hide it
Hello Friends, I want to be run MT4 Script on every 10 seconds repeat. Here is the code. Please help me, many thanks. //+------------------------------------------------------------------+ //| Shadow SL n TP.mq4| //|
Hello, suddenly, I cannot install MT4 on my PC anymore. I am using Windows Server 2012. When I try to install I get the message "Sorry, something went wrong: Please try again later". I tried he setup.exe from 3 different brokers. All the same error. MT5 terminal installs without any problems. Does
I want to add different color to text that is in same line, in a single ObjectSetString , For Example If the string is like this: This is Total Profit / Loss: $250 / -$20 Then I need to show like This is Total Profit / Loss: $250 / -$20 $250 => in Green color and -$20 => in Red color Is this
This is News Trader EA created by Igorad. Besides, we may use this EA to draw the lines with text on the chart when the news coming. Explanation of the settings and how to use this EA you may find in the next posts. ---------------------------------------------- Version 2. - Please find attached the
Hello, I am new here and new to MT4. I had several active charts with active EAs attached to them and their information windows were all visible. All of a sudden most of them disappeared but the EA name and the smiley face are still there, I can't for the life of me get them back. I even went as far
My mt4 terminal is so slow that it crashes, Sometimes i can close it with the task manager only. I uninstalled the program and reinstalled it, but it comes back as I deleted it. How can I speed up this very slow terminal? Or I can delete it completely, to reinstall it of course. Thanks for help
hello, i have created a Semi Automated EA that gives me signals. problem is that in the same time that my EA is Attached to 15Min charts in 8 different Currency Pairs, I need to keep changing the time Frames to Verify the signals. and every time that i Change the time frame, EA Automaticly Deinits
My grid ea uses count buy and sells and close all in profit It works perfectly on 1 pair When 2 or more pairs is loaded it gets confused Is it possible to count only for a specific pair? Please advise what must be added and where in the code below int Count_Buy(){ int OpenBuyOrders=0; for(int
string accounts[]; //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ int OnInit () { string url = " https://example.com " ; string
[Deleted]
Hello, Different brokers have different Margin call and Stop out level percentage. How to get that using MQL4 code? I am trying something like this but not working double marginCallLevel = AccountInfoDouble (ACCOUNT_MARGIN_CALL_LEVEL); double stopOutLevel = AccountInfoDouble
Hi everyone! I hope you are fine. I have a dumb question. I have problems auto-calculating lotsizes for CFDS -only on some brokers-. On *some* cfds, the tick value defined by the broker is wrong, or at least I think it is. For example, for the symbol SP500 at GlobalPrime.... MarketInfo(Symbol(),...
Hello, I just started learning MQL4 and am doing some small experiments. My request is to draw the line as "Dot" but I couldn't manage to do it. Can you help me with this? //+------------------------------------------------------------------+ //|
I want to get candle price data with iHigh and iLow. When I backtest EA in TF H1 and try to read TFM5 price data, but I can not. double price = iHigh ( NULL , 5 , 0 ); If I run this code in TFH1, why I can not get data
i am facing problem in signing in from mt4 android since this morning. i wanna know if this is happening in any other part of the world or not
Dear experienced traders, It seems not possible for me... Can I test 2 EA together in same strategy tester in one terminal? Thank you in advance and best wishes, Sky
I am looking for following tool/script. 1. close all trade, close all short trade, close all long trade in a chart. 2. open long/short trade total lot size, total loss/profit, avg price point dca. is there any free script available? kindly let me know please
void OnTick() { double vol=0.01; Print("AccountFreeMargin before:",DoubleToStr(AccountFreeMargin())); Print("AccountFreeMarginCheck:",DoubleToStr(AccountFreeMarginCheck(Symbol(),OP_BUY,vol))); OrderSend(Symbol(),OP_BUY,vol,Ask,0,0,0,"test",0,0...
Kaufman AMA ( adaptive moving average ) made specificaly for the new metatrader 4
Hello, What is the function equivalent to OrderCalcMargin from mql5, for mql4? Thank you
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.