[Deleted]
Hello i am new to mql programming I want to make an expert advisor using high-low over the 30 previous times and make an average of their difference. Any help?
Hi I have a strange problem, that is OnDeinit not run when i delete my indicator from chart. The following code is a example of my indicator : #property strict #property indicator_chart_window int OnInit () { return ( INIT_SUCCEEDED ); } void OnDeinit ( const int reason){ Comment (
Can anyone modify and fix this EA , it doesn't activate SL , kindly fix it so SL can activate/Function well,
Hi! I have an OnTimer() function that calculates a new value for a variable every 5 seconds. This variable (a double) varies from 5.0 to 50.0 (approximately). 1) Is it possible to chart this variable every 5 seconds? If yes, how? 2) Is it possible to chart this variable in a scrolling sub-window (5...
Hello all, So i wanted to make a simple EA, that I can insert into my charts when I want to sell/buy. The StopLoss, in my EA is set at 50Pips, however when I test/trade it is always ~20Pips ...could someone be so kind and check it out? /give me a hint what am I doing wrong? Please check these EAs
Hello all, hope this note finds you great! I need to get the chart history data for multiple symbols in an EA, but I have to open the chart for each symbol at each timeframe manually and scroll the chart to the extent the data is available. I am trying to automate this process such that in MQL, we...
Hi, I'm new to MQL4 and am trying to learn. I need help trying to setup a basic EA. Keep in mind I am doing this one so I can learn how and not necessarily because it will be profitable. I want to set up an EA that opens two trades simultaneously, one buy and one sell and as soon as both trades...
The indicator with "Green Arrow" is Osagie Trend Scanner V20 and the indicator with the "White arrow" is Osagie Trend Force v30. I want the indicator with the "Green Arrow" to give me a "Sound" and "Message" alert when it changes color from Blue to Red (Sell now) and from Red to Blue (Buy now)....
I got this EA developed. I am struggling to edit the EA to only focus on the first opened position with a certain magic number. Currently the EA focuses on every opened order with the magic number related to the EA. The EA opens a position for you of a different currency when the currency on the...
I have a profitable strategy . just needed some help. i attachd 5 days high low indicator . Indicator rules _________________ ALERT INDICATOR S1* S2* S3* R1* R2* R3* 5 DAYS HIGH* 5 DAYS LOW* EVERY 100 PIPS ROUND NUMBER* EXAMPLE 1.2300 151.00 0.7800 THIS PRICES WILL GIVE ALERT ALERT NAMES R1...
How to make code for mql 4 to buy/sell just once time? Because in my ea, it makes open/buy many times in one time.
I have a simple EA. It works as follow: If there is no open order, It should place one BUY. But it place several Buy at the same time. I dont know why!! void OnTick(){ int a; int b; if (NoOpenOrder()) { if(FirstOrder==Buy) a= OrderSend("EURUSD.e",0,0.1,MarketInfo("EURUSD.e"...
Salve, ho questo indicatore, da solo che le frecce non escono al momento giusto. Escono solo quando si carica un programma sul grafico. puoi aiutarmi? Hi, I have this indicator, by itself the arrows do not come out at the right time. They only come out when you load a program on the chart. can you...
Hi, I am trying to create a Fibonacci indicator that once put over a chart it uses the ZigZag to get the 3 consecutives (H,L,H) or (L,H,L) so I can use those values to draw a retracement and extension Levels. Also that once I manually adjust the Fibo Levels it recalculates and updates the buffers. I...
Hi! Let's suppose I want to sort "valPair" and keep track of its corresponding "labelPair" index. string labelPair[5]= { "AUDJPY","AUDUSD","CADJPY","CHFJPY","EURAUD" };double valPair[5];for(int i=0; i<5; i++) valPair[i]= indicator(labelPair[i], parameters); "ArraySort(valPair)" doesn't work...
Hi guys i am still a beginner at programming, and only have one problem with my indicator. When I show the 'one click trading' tool from mt4 it hide my indicator. I've seen some indicator that change position when the 'one click trading' is ON. Do you guys know the name of the one click trading so i...
Hi, Gurus: Due to the Bid Price horizontal label Coveres the Ask Price label sometimes if the spread of the instant market quotes is too small and it covered by the Ask Price is really annoying! I know the configuration of the MT4 terminal give our users one option : Select the Ask Price Horizontal...
Hello Would someone be able to help me to amend my script? I would like to be able to move the arrow signals from the folder ‘parameters’ to the ‘colors’ folder. I attach screenshots showing what I mean (no. 1 how it is currently, no. 2 – how it should be after moving ): I would only like to move
hi , I wanted to know if it is possible to get History Base : X errors in pair "abcXYZ" I think metatrader checks history while rendering chart and generate error in a seperate process than EAs. its not some error code that can be accessed via GetLastError() in mql? I want to know if metatrader...
Hi I am just starting with mql4 and playing around with the code, trying to print the low of the bar but only if it is a lower than the lowest value in the current bar. Any idea what my code is not working? Thanks The following code is #property indicator_chart_window#property indicator_buffers...
I am in the early stages of learning how to code custom indicators and haven't got a clue what these refer to. I am trying to code an ATR stops indicator and am referencing one I have downloaded which has 5 buffers, 3 of which are 'smin', 'smax' and 'trend'. I just have no idea what these are and...
Hi, I have objects that i display with different timeframe visibility on the chart as such so that i don't clutter the objects onto higher timeframes. ObjectSetInteger(0,sObjName,OBJPROP_TIMEFRAMES,OBJ_PERIOD_M1|OBJ_PERIOD_M5|OBJ_PERIOD_M15); Now i want to retrieve the objects and find...
Hello Gents.. I am completely baffled at how to properly get tick data set up to in MT4 backtest my simple EA. I wish to get about only 6 months worth of EURUSD tick data to do some accurate backtesting, and I basically followed the instructions found here: https://forums.babypips...
Hello my friends, I'm programming an EA on MT4 and it seems to work very well but I have some troubles when testing. I can not see opened positions and balance... It is frustrating because I can't see how much is my balance, equity and profit. I tried to show balance within code but it does not show...
Hello, there is a major problem in the "period converter". Depending on the period and the multiplication factor, the script does not convert some of the latest bars. For example, if we make a conversion from 1H to 3H and now we are in the "hour 2", this bar is not converted. Any solution? Thank you
Hello Everyone, How can I remove this part of my code and still have it working double IMA() { iMA_Close= iMA (Security,Timeframe,ma_period,MA_Shift, MODE_SMMA , PRICE_CLOSE ,SHIFT); iMA_Open = iMA (Security,Timeframe,ma_period,MA_Shift, MODE_SMMA , PRICE_OPEN ,SHIFT); high = fmax
Dear support,Any ea and indicator for android device at mt4..? Tq.
hi i want script for my custom ea to open a website as soon as the ea is attached to the chart please help
[Deleted]
Hi, this EA is basic but useful to me, its restriction is it will only monitor the order that corresponds to the chart it is attached to. It is designed to partial close at first TP level then step trail SL but no more partial close. Is it possible for the EA to monitor ALL open orders and apply 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.