Download MetaTrader 5

MQL4 and MetaTrader 4 - page 17

To post a new topic, please log in or register
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.
Hi My mt4 programming skills are very limited  I've manage to create a simple EA with a EA builder platform The section that I can't seem to get right is to allow the Ea only to take a trade on any of the first 3 dots of the parabolic SAR if it goes on the 4th dot no trade will be allowed How do I...
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 Wouldsomeone be able to help me to amend my script? I would like to be able to movethe arrow signals from the folder ‘parameters’ to the ‘colors’ folder. I attachscreenshots showing what I mean (no. 1 how it is currently, no. 2 – how itshould be after moving): I wouldonly like to move the...
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...
  global initialization failed!!!!!!! (64   1 2 3 4 5 6 7)
If anyone could help...I run an expert advisor for 4 chart pairs, and for running it for the 5th, after loading succesfully, i have global initialization failed, and then removed... I would appreciate at least a guidance what to look for.. Thanks...
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
Can someone help me to solver this error!
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(iMA_Close...
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
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...
Hi guys, I'm trying to calculate a moving average over momentum indicator but EA crash at the boot of the back test because of the buffer I think ... someone has a better idea how to solve this ... I'm trying to calculate the moving average in the wrong way i think... //--- Get MOMENTUM and...
I was looking for information on how to write a timer correctly on the net. And I found this EA based on RSI on more markets at a time. I was intrigued by the "do it anywhere else" Unfortunately, EA can not test anything. Can EA be written on more markets? Thank you....
Good afternoon you all, I have this Expert Advisor in which I can set take profit and stop loss in points. I want to change this parameter with the percentage of the investiment. For example, when the profit is at 25% of the amount invested or when the loss is at -70% of the amount invested the...
Is there a function, in MT4, that I can use to grab any pair that is listed int eh Market Watch window?  I'm trying to make a combo box and I want to be able to select any pair, in any Brokerage account, and not have to manually insert the symbol.  With _symbol or Symbol(), I have to manually input...
  Code for risk per trade? (24   1 2 3)
Hello, I have coded my first EA and I am looking for the code that will open lot sizes at a percentage of my account. Can anyone help please?
Hi, I can not install other templates and indicators from the web on my MT4 platform. I specify that these files are in EX4 and MQL4 format. I followed the installation procedure by going to File / Open data folder / MQL4. I even uninstall and reinstall the app many times. I receive as error message...
Simple question here regarding the ATR indicator: I feel a little handicapped this way. I want to see the exact value.. not just guessing. I do not want to grab the cross all the time to check. It will take to much time and makes me entering a trade to late. I need that value because i base my...