Can you modify this EA to move SL to Breakeven+5pips (lock 5 pips after BE) when it get 20 pips in profit? Thank you.
(13 1 2)
Can you modify this EA to move SL to Breakeven+5pips (lock 5 pips after BE) when it get 20 pips in profit? Thank you
i am attempting to modify an indicator for MT4, by @Mladen Rakic I want to add std deviation lines to this modified atr-SMA, indicator. All help is appreciated. Free download of the 'ATR adaptive SMA' indicator by 'mladen' for MetaTrader 4 in the MQL5 Code Base, See my coding attempt attached. The
I'm pretty certain the answer is no, since the reference specifies order property operation types are for the OrderSend() function, but I was wondering if you can select a closed order using the OrderSelect() function (MODE_HISTORY), then get a return value of the order operation type using
Apologies if this isn't the right place to ask this, but I've had little luck seeking help elsewhere. I have a demo account and a live account with IG. I used to use a strategy on my demo account that involved setting three take profit levels. Since multiple TPs isn't a feature in MT4, what I would
Hi guys is im coding an EA that will only trade on a given session but broker time local time and GMT is confusing me. Im making a function that will trigger my ordersend if the time hits a given session example new york session. Is this the correct steps i need to do? 1. Get broker timezone 2. Get
Hi, I was in a form and still did not get the correct answer after the overall search. I'm looking for a way to get the distance between the two pipelines between the two moving averages of 15 and 60 Is there anyone who can help me on this topic? Thanks Translated by Google Translator
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

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.