MQL4 and MetaTrader 4 - page 98

To post a new topic, please log in or register
Hi.  I would like help to make EA or as Indicator that can close pending orders when OLDER THAN x amount of HOURS old.  I have seen a ea that can close on time but that would close all pending orders and not the older ones only. Thanks for any help.
this program doesnt buy and sell on the chart and I dont know why, can you tell me the reason ?
hello, I have written this simple program but when I run it on the chart it does not sell or buy
Function call: Fun_New_Bar(); User defined function: //--------------------------------------------------------------------void Fun_New_Bar()                              // Funct. detecting ..  {                                             // .. a new bar   static datetime...
Hi There are indicators that show vertical lines at times of expected economic report, some sends an external http request to forex factory in order to get the time. How can I get the actual and forecast numbers show on the chart as soon as it is released? Thanks
Hello! I need a quick help with EMA calculation. I seem to be very close, however its incorrect around the 5th decimal place in EURUSD 1M. Any ideas? What's with this? Looks like something with the normalizing? Heres the EA that calculates the EA attached. Can you provide the correct way to have it...
Hi guys, I am a novist to MQL 4 but I have already coded some EA and testing. But I am not a professional or expert programmer so I need to an help. I would like to know how I can set the STOP LOSS for sell and buy market order using a fractal. I mena I would like to have  a STOPLOSS= fractals. I...
Hello, I have write this simple EA to buy and sell from the opening price but it errors me, can you solve it for me :( Thank you
Hi, Would like to program or pay someone to program me MT4 that will open trades and pending orders from signal from a web page. Everyday around 4 GMT this signal apears on a webpage: Example 1 – EUR/USD LONG (BUY Stop) @ 1.1730, SL@ 1.1695, TP1@ 1.1755, TP2@ 1.1780, TP3@ 1.1820. 2 – USD/JPY LONG...
  About Classes (2)
I want to make a graphical Panel using standard libraries, So I made a class for the whole panel then created an object out of it.. But I made the class on the same mq4 file.. I want to know what is more efficient, making a separate mqh file or making the class on the same mq4 file.. (resource...
Hey coders, I found a code about how to maximize a chart window by using SendMessage but I can't find something like WM_MDIMINIMIZE. I googled it but I didn't find a command to minimize a window. Can someone help me? This script is working fine to maximize a chart and I figured out that...
Hello I'm beginner.  When to use that input attribute? ( I will check at shot ) Thank you.
I want to know how to close the orders of same currency pair. For example, There are three open orders. 1. EU buy order with TP/SL 2.GU sell order with TP/SL 3. EU sell order with TP/SL 4. UJ sell order with TP/SL Once the #1 reach to TP,  how can I close #3 also at the same time? #3 does not still...
I am making a simple script, looking for pivots. My code runs just just fine untill a loop shows up. //+------------------------------------------------------------------+//| Script program start...
Hi I have MetaEditor version 5 build 1601. Is there a keyboard shortcut to fold a function body? How can I create one? Thanks
I'm trying to make the indicator send a signal when it arrives on the 8 alternating candle, does anyone know where the error is in the code. Then I would like to place when I get to the 8 candle alternating a graphic sign below or a square like in the photo to be able to analyze past graphics, I am...
Hi guys! I've developed my own Trading System, but I don't understand this: in the result tab under the Strategy Tester, there are some orders where the columns "Balance" and "Profit"  haven't data. I post here an image. What I'm wrong? Thank you
Hello everyone, I am new to MT4, just started to trade with it for 1 month. If i would like MT4 to send alert to me (by email, by alert sound, or by sms to my mobile) when my account balance reach a certain amount of profit or loss (says usd 100 profit or 80 loss), is it available to do so? If yes,...
Hi. I had this EA developed and can't get hold of the developer for help. The EA works great. All it does is opens a opposite directional position on a certain amount of pips on a specified currency. But when I close the position created by the EA and the original 1st position is still open, the EA...
Guten Tag  Ich habe zwei fragen und hoffe sie hier beantwortet zu bekommen. 1. Wenn ich einen Expert Advisor Backtesten lasse kann ich bei dem Datum nur zurück bis zum 01.03.2017 alles andere davor gibt mir die Nachricht "no history data avaible" mache ich hier etwas falsch ? 2. Wie macht ihr das...
Hi friends, I've coded to write some variables in different lines in a .CSV file. The file consists of 5 lines. Now I'd like to add some new variable to the end of the second line in my file. I'd like to know if it is possible to add some new variable to the end of the existing line in a file or not...
I'm looking for an ATR dashboard indicator that provides the ATR by hour (HATR) that has output buffers that can be read by another EA.  I want to isolate and output the ATR for each individual hour of a day by having it look back a certain number of days. Ideally, the indi would have at least the...
Hi. I recently downloaded this indicator from the elite section and find it really interesting. So now I want to get a bit better understanding of this indicator. It is pretty self explaining but it would be useful to know whats going on when the upper or lower dynamic zone are trending. I.E the...
Hi, Here is my problem. I would like to know how much will cost one lot (100 000 units) for a specific currency pair. For example  I have an account in JPY and I want to know how much will cost 1 lot for EURUSD in JPY. Therefore I need to conver JPY to EUR (base currency). Is there a formula...
Hi This error "invalid pointer access" is that I get from this code, any suggestion how to fix it? #include<Arrays\List.mqh>CList lineList;class Line : public CObject {public:   string name;   string description;   double value;   };//... stuffdouble p = 100.46;Line *line = lineList...
Guys,  I really need your help, I want to create an EA with the following strategy, Open Buy Order when the gap ( in pips) between EMA 20 and  EMA 50 is in the range of 5 to 10 pips and the EMA 5 is above all other EMAs, I have tried to create the following code but the orders are opened without...
Any chance that there's a kind person who can help me with the following pls :-) Want some code that closes orders after say 4 bars, regardless of whether the trades are profitable or not. I'm trading hourly bars, so figured if I hadn't hit a profit target or stop by 4 hours, I'd just close the...
Hello, i have a general question tothe Bolliner Bands. when i use the Bands in my EA BBHandle1h=iBands(_Symbol,PERIOD_H1,20,0,2,PRICE_OPEN); is this Band repainting? Main Line, Upper Line, Lower Line? and even,  when i do the backtest on M5, is the Expert calculating the H1 Price? thanks amando
  StepMa Trend Follower (11   1 2)
Currency : Any Time frame: 1 HOUR Indicators: : StepMa (Kwatr settings changed to 2.0),Macd Dot (12,26,9),Zig Zag, Let's İmprove it!!
Hi there Was compiling some code which had 'not seen light of day' for long time and [of course] got a few variable not defined errors. They were for stderr.mqh identifiers which I had modified ages ago to get length <=31. (many moons ago too, I shouted politely [hopefully;] at support rea: >31...