MQL4 and MetaTrader 4 - page 284

Hi folks, I am trying to retrieve history data from MT4 to build a model with. The problem I have is that I need to load the values of a custom indicator into a 3 dimensional array and when i try to run the Expert is history, it does not work, and gives the alert: "not eough memory for EX4 file" and
  iCustom problem  (1)
Hello, I have a strange problem. When I load my written indicator based on another iCustom indicator on the chart, two lines appear, although it should be only one. #property strict #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 clrYellow #property
// Pivot Plus Add-On (Personal) #property copyright "Copyright @ Malcolm" #property link "www.mql4.com" #property version "1.0" #property description "Additional Pivot Points for more market opportunities" #include <stdlib.mqh> #include <stderror.mqh> //--- indicator settings #property
Hello I'm new to mql4 coding so please assist me in understanding why the results from the iMA() are correct yet the iMAOnArray() is giving me wrong results compared to the ones i have on the charts. Please review my code and assist me in getting the results as expected. Code attached. extern int
Would anyone have a .mq4 indicator similar to these to match indicator buffers? <ex4 file removed>
just downloaded mt4, trying to set up trades for monday, when new order is selected it will not let me place entries. Please advise Ron
Hello, I have an indicator that I'm trying to use with the MT2 trading connector. However MT2 is not recognizing the signal even though I select the correct buffers. can someone please check it and let me know if something should be changed on the code? The way that indicator works is that if the
I want to know the concept for create same TP for 5 open orders. Example 5 buy orders and all have same TP. First open one order with TP and next orders will open by some distance with same tp. This TP will trail according to market move. Plz suggest
Hello, I am trying to HIDE OBJECT according STRING character in the DESCRIPTION (and not in the name). Can you help me please. I have done so much trials with no success. thank you again. //|--- for the string character in the name for ( int i_obj= ObjectsTotal ()- 1 ;i_obj>= 0 ;i_obj--) {
Hi I can't contact my broker and can't withdraw my money. What should I do
  4108 error  (1)
Hi, i am encountering "unknown ticket for orderclose function " error what should be done? here is the code (closing of orders); for(int x=OrdersTotal()-1; x >= 0;x--) //If you have open position { if(OrderSelect(ticket1 ,SELECT_BY_TICKET)==true && OrderMagicNumber()== magicNB1 && OrderType() == 0)
Counting open orders from an ae Guys I created this function that should count orders opened by an ea int OrdiniAperti( int MagicNumberint) { int count= 0 ; for ( int i = OrdersTotal ()- 1 ; i >= 0 ; i--) { int tcket = OrderSelect (i,SELECT_BY_POS,MODE_TRADES); if (OrderSymbol() == Symbol () &&
  validation ex4  (1)
Good evening, I have a problem validating an mt4 EA, <Deleted>, with the version for metatrader 5 I had no problems, can you help me? Thank you test on EURUSD,H1 there are no trading operations test on NZDUSD,H1 there are no trading operations test on GBPUSDcheck,M30 there are no trading operations
Hi all, thanks for getting in. A Gold EA is looking for two indicators, the one I can´t find is HLChannel.ex4. Any info would be very appreciated. Cheers
Hey, I wrote an indicator displaying me lines at highs and lows. Unfortunately, I get hundreds of lines as all bars of the chart are processed. I would prefer if the indicator just processes the last 500 bars or so. For the sake of convenience I've just inserted the part with the resistance. Can...
Hi Guys I have a custom indicator, which works fine when I attach it to a chart. When I attempt to get the values from the indicator, they are retrieved correctly as per the chart, when getting it from a script. If I use the same code that works in the script from an EA - I get values, but they are...
Hi! I am Latvian so I changed language to Latvian in MT4 and then I noticed, that one line is translated incorrectly. In Latvian MT4- OPTIONS-EXPERT ADVISORS there is incorrectly written "Atļaut padomniekiem veikt tirdzniecību" ("Allow EA make trades"), but it should be "Atslēgt padomniekus, kad
Hi, I'm trying to replicate a graphic Price Channel indicator and I've decided to right away copy and paste its code in my EA. The problem is that the indicator shows a value of 4 decimals when you hover the mouse on it, and I have no idea what's it doing: it's not rounding and it's not trimming
I am searching for someone to learn with, the wonderful language of MQL4 . I already understand and practiced a lot of the basis of MQL 4. &, like all, I have a few more things that I need to learn... I want to study, Share my knowledge, discuss things that one of us still didn’t understand and
Hi, every one when i apply the RSi and then drag the Momentum indicator to RSI subwindow the bottom subwindow will be happen but when i make an custom indicator like this code: //+------------------------------------------------------------------+ //|
Hi all, I have a strange error when my expert tries to close an order. I'm sure the condition is met, because I see the "Check" output in the Expert tab. The problem is that GetLastError() function return "0". if (Bid>= GlobalVariableGet ( StringConcatenate ( "Take_Profit_1_" ,OrderTicket() )) )
So I sent this "bug" to the service desk over 2 months ago, no response until it was closed out yesterday with no comment. I re-opened it today and asked if the bug was fixed. The response was "there is no bug" Here's the scenario (picture below). The backtested EA had an open sell at Friday...
[1] As you can see in the ERROR [3] gif, when I change the zoom level, the distance between the text labels and their corresponding levels change, which is not the desired outcome. The desired outcome would be for the text labels to remain a fixed distance away from their corresponding levels
I need help with my EA please, as you can see he has the parameters configured so that he only makes the purchase and sale, as well as closing them, I just need someone to help me and tell me how I can do so if this EA If you lose one trade, open the next one with twice the number of lots and with
Hello all i am experience some issue with an indicator that i am working on , can somebody please take a look and tell me why its causing this issue ? to put it simply the indicator is not refreshing Explanation: when i attach the indicator to the chart and leave it on, after sometime when i attach
Hi! I'd like to draw a fibonacci without click mt4 fibo button. It needs to my expert advisor. I'd like to use a simple button to start drawing. (Button code not good, but I think I can write to work good.) So, I need: click on the button, than click and HOLD on chart to start drawing fibo (fibo
The MT4 account is being entered, but it does not work. It has already been de-installed and reinstalled, but still does not work
Good afternoon friends, I am learning how some things work, and I have run into a problem that I do not understand. It is a multi-frame table for buying and selling (it is only a test to start a project). The problem is that if I use symbols , everything works fine, but if I use text, when I change
Dear Friends I am new to MQL4 language and trying to learn it, and building my own Expert for 2 Moving average crossover, I know there are some already built solutions, but I have some other logics to be incorporated so writing my own code, below is the basic version of my code where I dont see any
[Deleted]
Anybody had similar experiences with it