Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1187

To post a new topic, please log in or register
Hi. I need some help, again, sorry. How must I change the following code lines in order to obtain that the line starts every 30 minutes?: for(i = limit - 1; i >= 0; i--) { if( TimeHour(Time[i]) != TimeHour(Time[i+1]) ) { int t = i ; } opn[i] = iOpen(NULL,0,t); } I...
Ive never seen this problem before.. But sometimes I will get ticks on a chart, and my EA is never triggered.. Ive written tons of ea's and never seen this problem before.. Has anyone else?
hi. i made an indicator that draws price lines. is it possible to make it limited to a certain period only? like from last 2 days until yesterday?
MA Crossing ALert http://hongwcao.blog.sohu.com/
Can I get some help with the formula for calculating the break even point on a transaction? I need to consider all currency pairs and both buy or sell trade. I know how to identify the currency and the buy or sell, but what is the code snippet for determining the break even. So when a trave is...
Hi, I would like to have an indicator that plots the following two values. 1) current bars close + (close*.0125) 2)current bars close - (close*.0135) If possible I would like to have the ability to email these two values when plotted after the close of the bar. Thanks in advance to anyone who can...
Hi, I'm using few indicators, one is more important to be visible on top than the others, when the lines crossed, how to make the less important lines to stay on the background instead? so they will not seem to cut through the one that should be on top (foreground). Many thanks in advance! ps. mq4...
Hello Can anybody tell me which indicators are in the picture? I need it. Thanks picture
hi everybody.. say that today date is 25.04.2008 extern int shift=0; i want the iDay to give the date that i want, i.e if i want iDay to be 24.4.2008, then shift must be shift=1 if i want the iDay to be 23.04.2008, then i must set shift=2. can anyone give me the code or hint, to write this thing? i...
Hi, I'm writing an expert advisor that relies on a MACD signal, and after spendingabout 5 hours thinking I was losing my mind, I finally found the problem. WhenI feed my advisor through the strategy tester, fetching the current MACD signal for H1 (1 hour) dataactually gives me the M1 (1 minute) data...
I have just installed MetaTrader 4 on a Windows XP system. All seems to be working OK, but no live trading happens. I have attached the EA called "MACD Sample" to a chart. The smiley is smiling. I have enabled live trading. But I watch the MACD chart go straight thru the values that should execute...
Hi guys. I am not a coder and I need some help... My question is about how can I capture an hour with minutes as a constant data. I have tried by some ways but I can not to do it. Mi intention is to compare the constant data with the open time of the bar in order to obtain if that bar is in a...
How do find all symbol() name and sum count in metatrader. EURUSD EURJPY ... .. . . . Totalcount== 4
I have cenrino duo processor and when I run back test its only using 50% of my processor is there a way to make it use 100%.
How does one automate trades using custom indicators? I thought this was a strange limitation when I learned of it. Can someone explain how it is done? And why would these functions be mutually exclusive? Thanks for your help.
On 04.22.2008 an indicator was added to the Code Base called IINwmarrows I liked it. Is anyone planning to write an EA for this indicator ??? Or maybe there is an EA for something similar to this already available under a different name in the Code Base. If there is, please let me know by replying...
Hello how can I put a series of vertical lines in different styles and colours at different times on a graph. I am looking at astrology and trading and want to put lines to denote when the moon and other planets move into different signs and phases with the planets each being a different coloured...
Hello, Looking forward to some help with the indicator logic I am trying to build. The scenario is like this. I am planning to do a similar kind of calculation and use it across the charts. Since the calculation is going to be the same, I do not want to do it 12 times across all my charts, but...
There are very many people on MQL4.community who actively develop and research automated trading. They are ready to share theirknowledge with other developers. Considering the uniqueness of the information they want to provide, it's quite naturalthat the authors would like to be paid for their...
Is it possible to create a custom order type for something like a straddle? It could even be a facade for the existing order types in this case where a script/hotkey or menu item is called. thanks
Hi there Could someone tell me how to use the automated indicator alerts - for example - stochastic or Parabolic SAR alerts.? How do you get them to make a sound? Where do you go to fix this on MT4? Hope someone can help. cheers JayBee
Please i want to know.where am i to plot the daily, weekly and hourly pivot points. must i plot the daily pivots on the 5,15,30 mins chart and the hourly pivots on the 1 hour chart etc.please i need to know
y-a-t-il des français ici, mon anglais date un peu et j'aimerais éviter des erreurs. Je viens de découvrir la plateforme MT4 et j'aimerais avoir des infos complètes sur son fonctionnement surtout en matière d'auto trading. je vous en serais extrêmement reconnaissant. Merci
Say Hi to everybody! I am studying hard at the mql4 now,it is really hard to learn a new thing. As a biginner,I write expert system by useing other peoples code block,just by conbining them together.And sometime the mistake comes out. I am designning a expert system that is based on Price and Volume...
Dear, I am not a programer but interesting to planning robotprogram, i have a little knowledge to writting a flowchart for aprogram. I have been writting an idea of a robot program, a good systemthat need to try to applicating certainly, but i am confusing toapplying in mql language program. I have...
Dear all, hope that someone can shine some lights on this. I was trying to run the below script on EURUSD. But the alert message always show as "Moving Average for EURUSD = 0" and "Parabolic SAR for EURUSD = 0" Any idea what steps I have missed? Do I need to enable something in order to work? int...
hi all, How can I clear the Alert msg box, or set a limited number of raws to appear in the alert pop up box. Cheers
Iliya Gladkov
Trading system forex. Forex Trading System is a set of instructions prescribing open and close trading positions based on the results of . Forex Trading System can get rid of the randomness in the sales process. Follow the system will exclude emotions from trading. Therefore, anything that requires...
I am trying to limit Sendmail, I have tried using isTesting(). Seems like a simple question, but I have not been able to find it. Thanks
How do I program an email alert into a MT4 EA? What code do I put and where? Thank you