I need to add OrderOpen into my Listview Dialog. I put v_list_order() function in OnTick.Then I show repeat and repeat. bool v_list_order() { int total_v = OrdersTotal (); int v; for (v= 0 ;v < total_v;v++) { if (! OrderSelect (v, SELECT_BY_POS, MODE_TRADES)) continue ; if
I remember seeing a configuration you can use in MT4 that instead of showing the pips difference and price as you dragged the crosshair. It would show the profit and price as your dragged the crosshair. Does anyone remember where you configure this. Thanks in advance
why i'm tired ? ho, let me think.. maybe because people ask questions without providing deatails or maybe because people ask questions that can easily get answered using a quick Search (top right corner on every page) or google or maybe because people are lazy and don't wanna spend their time to...
Hi I have this problem that I don't understand how to fix it. void OnTimer() { if ( pipsMA < Tradepip &&useMA && checkMA( 0 , true ) && isAvailableOrder()) { double lot = _get_lot_size(Stop_Loss); OpenTrade( Symbol (), OP_BUY, lot); } if (
is this the right code condition? //bearish and bullish engulfing pattern bool C_DownTrend = true ; bool C_UpTrend = true ; bool overlay= true ; double C_Len = 14 ; // ema depth for bodyAvg double C_ShadowPercent = 5.0 ; // size of shadows double C_ShadowEqualsPercent = 100.0 ; double
some one can slove it why TralingStop and BreakEven dont work with sell strades extern bool MON = true ; input string StartH1 = "03:00" ; input string EndH1 = "21:00" ; extern bool TUE = true ; input string StartH2 = "03:00" ; input string EndH2 = "21:00" ; extern bool WED = true ; input string
+------------------------------------------------------------------+//| ProjectName |//| Copyright 2012, CompanyName |//| http://www.companyname.net...
Hi, Some of the trades disappeared from the account history tab in mt4 platform (not because of the period filter). Is it platform or broker-related problem? P.S: I have contacted my broker and sent them the report from the platform. They sent me the same report with no missing trades in it
Here's the correct one of phy code in start() function int start() { if(oldTime != Time[0] ) { // first tick of new bar found // do something useful oldTime = Time[0]; } return(0); } I'm trying to get and ea to open an order at the start of each bar, and no other time...
I want a code that stop placing orders for x of time after place one in mql4. void OnTick() { //--- if (OrdersTotal() < 1) { if(emafast(0) > emaslow(0)&& emafast(10) > emaslow(10) && emafast(0) > emafast(5)) //&& emafast(1) > emafast(2)) { if(histogram(0)<-0.0001
Hi All Senior , I am very new into Mql4 code . Would like to seek for advise about coding , Appreciate anyone can advise and teach ...... Thank you and sorry if the code is messy i wanted create an EA that following entry : Buy Stop order at last 3 candle high above 300 point ( include wick) entry
Hi dear friends Is any one knows how to make the below code that it work?? It should read from "Callouts1.csv" (File is located in ...\experts\files\) ------------------------------------------------------------------------------------------------------------------------- int Handle; string...
[Deleted]
Morning, Fellow MQL4'ers How would one kindly calculate the margin required to open a position taking into account the leverage (100:1), lotsize (0.10) and an exchange rate factor? I can't do an OrderSelect() function because there is no order to select. I do have a fantastic currency conversion
Thanks to raff1410@o2.pl for this great alert indicator. How would one add a delay to playing the sound alert? The sound file loops very quickly and can sound annoying.. #property copyright "raff1410@o2.pl" #property indicator_chart_window extern string LineName= "MyLineL" ; extern string
I have tried a variety of methods to fix this problem. Before, it had been affecting all the lower timeframes as well. A gap from Oct 1 to 16:00 Oct 4. I was able to get the data filled in for the lower timeframes, including the H1, but the H4, no matter what I do, refuses to fill in the gap. Why
Hi all, I've been hitting some roadblocks in my MQL4 programming , I understand how to code which we all know is the easy part... but I'm struggling to approach coding in the right way, what I mean by this is, how do I combine all the functions and variables in the right order to achieve what I
Who is thinking about this? Without being specific, has anyone implemented "combining the incompatible" into a single TS? Not an alternation of one with the other, but a complete and organic combination of a flat strategy and a trend strategy in a single TS... What are the principles and
What does it mean when initial margin is exactly equal to maintenance margin for a 1:100 leverage forex account in MT4? Isn't maintenance margin supposed to be lower than initial margin? Also, how does the 1:100 leverage play a part in such a case (where, initial margin = maintenance margin)
Hi, I am using the Solar wind joy indicator for my trading and would want to convert it into a multi-timeframe indicator. Can someone help me do that. I want it to diplay other timeframes as the Fisher indicator attached below
I have a problem with an EA, I did the back test and so far so good. At the time of the wheel a "dependencies" tab appears and the message "C:\Users\Leandra\AppData\Roaming\MetaQuotes\Terminal\1DAFD9A7C67DC84FE37EAA1FC1E5CF75\MQL4\Libraries\stdlib.ex4 " With the following alert message: " string
I wonder when MT4 log file is refreshed? I mean if I attach the indicator on the chart, and later, the signal alert comes, and I can see the history of signal alert in MT4 expert tab. But when I open MT4 log file, it is still not saved (refresh and overwritten) the alert message. My goal is to make
Please tell me your idea. How can we catch pop up alert message from MT4? Below is interesting idea. If we can catch popup alert, we can place BUY or SELL odder in MT4 without icustom code. How can we do this? https://www.hnajmafm.com/index.php?main_page=product_info&products_id=116741
[Deleted]
Morning all, Question question, I have an EA and I have a profile saved on the MT4 terminal. Is there a way to deploy the EA onto all charts saved in the profile with one / few clicks? A tad monotonous dragging the EA onto each individual chart in turn so just wondered if there was a quicker way
How do I get log with base 2. There are two options in mt4: 1. MathLog - which return natural log for a number 2. MathLog10 - which return log with base 10 for a value. In my program, I need to get log with base 2. How do I do that? What line of code should i write
[Deleted]
I have problem with finding trading server on my android phone. I am already using that phone for trading and now I want to add another account but I can't find trading server. In my Journal I see information Api: command https://download.mql5.com/cdn/mobile/servers/mt4.dat failed - is maybe that a
Hi all I've written a Zigzag-RSI indicator combining RSI values to standard Zigzag indicator. It works pretty well, except that drawing of RSI values does not update on chart (i.e. indicator window). I want it to be updated in each tick as it is for standard RSI indicator. Here is the code
Hi Forum I have a question, is it possible to create a code on MT4 without it being modifiable or fully visible to other users? The idea would be to sell it to third parties for them to implement. Many thanks in advance
I have written an ea that detects when a trendline is placed on the chart by an indicator. When the EA detects a new line has been placed on the chart it executes a trade function. However i have been trying to backtest in the tester and noticed that my OnChartEvent function will not work and
I just paid this indicator below. The problem is that when you click install on terminal (i believe this is the place to download it nothing happens). Can somebody help me? thank you c
I want to use LWMA (the official LWMA in Custom Moving Averages .mq4) twice with two PERIODS, one short and one long, and those averages will be in 2 buffers, SHORTBUFFER and LONGBUFFER, to print them. BUT, LWMA has a "static int" and so the results of the first SHORTBUFFER are messed up. The

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.