Hello, I am attempting to convert a pine script code to mt4 expert advisor but I keep getting this error for my variables. I appreciate any help. Thanks #property copyright "Jacob Mastroianni" #property link "https://www.mql5.com" #property version "1.00" #property strict //--- input
Hello, I had this indicator and I wanted to convert it to an Expert Advisor. I tried to do it myself but it didn't work. Thanks! //---- #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 LawnGreen #property indicator_color2 Red #property indicator_width1 1
Whenever I am trying to download the MT4 from the website, it is giving me the MT5 download exe. How I can I get the MT 4 exe that I can work on it. Please suggest.
Hi, I don't want to use auto trading at all. but indicators which i use require to turn auto trading on. For instance, i have an indicator named as "Close All Positions" which closes all open orders. But it only works when auto trading is set to on. Now when i set auto trading on, some auto orders
Hi Guys, When the new candle generates, I would like to get the last one and last two iHighest. My code is double lasthi1=iHighest(Symbol(),0,MODE_HIGH,50,1); double lasthi2=iHighest(Symbol(),0,MODE_HIGH,50,2); if(Close[2]>lasthi2 && Close[1] > lasthi1) { return(true); } But it...
Hey folks, is there a way to open new orders automatically with an EA or Script from a single order. The first order is opened manually from the BUY or SELL buttons, but after that the script comes in and automatically opens multiple(maybe 10) more similar orders with similar SL and TP values. I
[Deleted]
After compiling an EA, is there a way have the EA run the start() function without having to wait for the next tick?
MT4 will evolve and will soon merge with MT5. There will be a single compiler supports both platforms. More information on the forum Upcoming MetaTrader 4 and MQL4 Upgrades - Big Changes Are Underway - MQL4 forum Что будет нового в MetaTrader 4 и MQL4 - большие изменения на подходе - MQL4 форум
Hello Forum! I was wondering if somebody would be so kind and add two buffers to the attached indicator. I would like one that appears when the new lower open of the day happens on the 1h time frame and the another one when the new higher open happens also on the 1h time frame. Presets attached with
Hi, I used char in symbol but I got value=0, If use string then I got combile Error: 'arr' - structures or classes containing objects are not allowed testtoarray.mq4 68 33 struct prices { char symbol; // symbol double price; // price }; //--- global variables int
Hello mates, I have an include file (named: Foo.mqh): //+------------------------------------------------------------------+ //| Foo.mqh | //| Copyright 2021, MetaQuotes Software Corp. | //|
Is there something like an alert for an x amount of pips for positions that are profiting? For example: When a gold position has 20 pips profit i would like to hear an alert, or when a silver position has 50 pips profit i would like to hear an alert. I did my best trying to find such a tool :) but
Which one of these is a current hart 1. The chart upon which the EA is attached. 2. The chart that is last clicked on the window. A little confused here. Any help
Hi, in my txt file I have: Direction:BUY;Magic Number:432;Price:1.03654 Direction:SELL;Magic Number:44234232;Price:1.05654 Direction:BUY;Magic Number:43233;Price:1.07654 if (Direction==SELL && MagicNumber== 44234232) { Alert( Price:1.05654 ) } I don't have idea how to do this from reading txt file
I found some link that explain about y=k*x+q https://www.mql5.com/en/forum/306293 "k" for the red line is 1 / 2 and for the blue line - 1 "q" for the red line is 2 and for the blue line 5 In general, "k" is a tangent angle between the line and axis x and "q" is a shift on axis y. For example, if you
Hi, This code is problem because if not exists returns 0. I think is problem because the code use for all OrdersTotal in the same time, but I need to get only ticketId for OP_BUY first, and OP_SELL first. So, I need to get Open price from ordertotal OP_BUY and OP_SELL. How to do this? double
Hello, My custom Indicator was working fine before 15th April 2022, and it stopped working suddenly. It still works properly on strategy tester, but messing up all points for all points on the graph before
I need to back test my EA since 2015 year to year. This is what I am doing now: I hired a VPS and run an optimization backtesting on MT4 strategy tester tool for one year. I import results to an Excel and order/filter the best of them. Then, I run a backtest on MT4 strategy tester tool for each year
does higher time frame has more control points than lower time frame in optimization
Is there an indicator for MT4 for automatic candlestick recognition that is visual friendly? Like this one here : (picture was taken from xtick professional software) Thanks! Question #2 How can I put moving averages behind the chart patterns (candlesticks), so it doesn't cover them but they go
How do I get the difference in pips between the 5EMA and 10EMA in every chart. That is: 5EMA - 10EMA in pips (that works in every chart)? This is for an MT4 expert advisor. Thanks in advance
Hi all, I've created an grid base EA and I'm trying to optimize it but PC never gives results (trying the start hour, end hour, pips and grid distance - Nothing). Any advice would be gold for me, thanks
Is there anyone in this group who can help me. I want my EA to open trades only at certain hours (not all the time). For example: I want the EA to be able to open trades only at 10.00 to 15.00
Hi I want to remove " symbol. I remove : using this Print ( "Raw results are : " ,result[ 21 ]); string sep_for_limit = ":" ; ushort l_sep; l_sep = StringGetCharacter (sep_for_limit, 0 ); string ltp[]; int p= StringSplit (result[ 21 ],l_sep,ltp);
My EA can run on real and backtest,it base on zigzag indicator. When optimization , it show array out of range and cannot optimization. Can zigzag EA optimize
Hello, I would like to have this signal sends me an alert everytime there is a buy or sell signal because at the moment, it sends a signal once, if more than 1 buy signal has been triggered it only sends the notification on the 1st time only, a sell signal needs to be triggered 1st before the app
Hello! So I have made this EA which is very simple, once a condition is met it will open a trade. And it will keep adding another 4 trades if conditions are met. All ticket numbers are stored in global area int Ticket1= 0 ,Tikcet2= 0 ,Ticket3= 0 ...Ticketx= 0 ; if (condition1) { Ticket1 =
Hello everyone! I'm starting to learn mt4 coding and working on an EA that is using iHighest and iLowest to plot these lines on the chart and I'm using these lines to calculate if the variable "Ranging" is either ZERO or ONE. This part of the code, to my knowledge, is working fine. The problem is
Hi all, if you have the following program extern int var = 0 ; OnInit() { } OnTick() { if ( var == 1 ) { < do something>; var = 0 ; } } If during operation of the EA the value of 'var' is changed to '1' on the chart, the <do something> routine is executed and the 'var' value is set

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.