Is it possible to change the color of an indicator based on a condition?
for example:
if (momentum1>0) { SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,1,Lime); } if (momentum1<0) { SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,1,Red);...
I am new to mt4 and not a programmer and need help to write a simple expert advisor
chart 4 hr; use line chart
buy : when 25ema crosses the price line that comes frome below , exit : when 6ema crosses the price line.
sell : when 25ema crosses the price line that comes frome above , exit : when...
Since I have zero programming background, I’m looking for somebody who’s kind enough to write me a simple expert advisor. The expert is supposed to just set two pending orders (a buy stop and a sell stop) both at the same time and every day at the same time, and these pending orders shall expire...
[Deleted]
Hello all I have a question I don't understand how to do this in ZeroCode can somebody help me..... 1# I want the Parabolic Indicator to close a open trade on the last dot in the trend. I have the settings at step 0.0250 amd the max ar 0.2000 2# BUY the exchange rate when the 5 WMA crosses up past
It is quite nice to see that you have so kindly included 1:1 scale ability for your charts. This is very helpful. However, not being able to print out a chart at 1:1 scale mostly defeats the purpose...does it not? Perhaps you will consider adding some functionality to print charts at 1:1 scale.
There is an error with the backtester. Sometimes my last 'buy' and/or 'sell' order does not show up at the end of the backtest list when all outstanding orders get forced to 'close to stop'. - Vooch
I have made an EA using ZeroCode.exe. It seems it is OK. It is alerting with whataevr Buy messages but never triggered a tarde. Is it supposed to trigger trades or just giving a signal? Please have a look and troubleshoot.
i am having trouble opening and closing orders. I am using this for opening an order int order = 0;.....order = OrderSend(Symbol(),OP_BUY,0.1,Ask,3,20,0,"",,0,Blue); I cant close an order and keep getting "invalid ticket for OrderClose function" I have been using the following to try and close the...
I just added a simple line
MessageBox("Nice Day!","Hello");
seperately in a blank script and a blank indicator. After running the script and indicator,
I found a message box popped out in script but nothing happened in indicator.
Could anybody tell me the reason? Many thanks!!
Please can someone covert this code from MQLII to MQ4. This indicator is very useful tool for trading. The code is;
*[[
Name := Auto Regression channel
Author := Copyright © 2004, FostarFX
Link := fostar_fx@yahoo.com
Separate Window := No
First Color := silver
First Draw Type :=...
I'm interested in creating an EA for MT3. I have programmed in Fortran, C++ and PASCAL.
I just need a reference on setting up the structure of the program, how to write loops and how to define/use variables.
Is there a guide/resource out there that you guys know of that I could use?
Thanks
How would i reference the details of the first bars for a new day on a 4hour charts ?
eg. i wanted to get the hi and low of the first 3 bars every new day, i really dont know how i would go about doing this ?
Thanks
I wrote this expert that I just can’t get to know how to make the pending order to expire at the same day for each day at certain hour if the market didn’t reach the price that I have set.
extern double Lots = 0.1;
extern double Limits = 35;
extern double TakeProfit = 35;
extern double StopLoss...
OK, I tried this before but did not get a response and now it seems to have disappeared from the forum.
Suggestion to Metaquotes: Will it be possible for you to insert the buttons in the "new order" window that exits in the "modify order" window? I mean those where you select SL and TP, press the...
"EasyLanguage" code ,can you change to MT4 Language?
Hello all. I would like to thank all who help people in this forum in advance. My problem is i am trying to set a Buystop order and it should only be active for 8 hours or Until 6:00. I am trying to figure out the Ordersend's Time Expiration area but cannot figure out the correct way. I have looked...
Recently I have had problems with my Hard Disk and I lost several files. Some of the files that there are lost are MQL sources ver: 3.82 build 1217 I have been able to recover some files, but these are compiled (in .EXP format). I need to decompile these files urgently in order to follow with the
Hi all tahnks for your help my plan for the other indicator is not going to make a nwe indicaror My question is how can I add 3 different indicators to make 1 custome indicator I am trying to understand the cosind if MT-4 and just need a little help here
Here is what I want in a new custom...
He me again Hello all I am looking for training on MQ4 does anybody know of a good instructor that I could spend a day with to get the basics of programming... MQ-4????????? I really want to learn the program how to make ea's how to make custom indicators and so on it would be a great help to...
Sometimes when I exit MT4, I have noticed that it still remains in the process list on my TaskManager as "terminal.exe". I have to manually end the process.
Is this a bug, or how can this be fixed?
Hello. I have a code of Auto Regression Channel in MQL2. Can somebody convert it to MQ4 please. I will be very grateful. Especially you Slawa. The code in MQL2 is;
/*[[
Name := Auto Regression channel
Author := Copyright © 2004, FostarFX
Link := fostar_fx@yahoo.com
Separate Window :=...
Can ayone help? I run 2 instances of MT4 and both today, have developed the same problems. Firstly, when clicking on the tabs to change to another worksheet, the charts do not always respond. It can take 3 or 4 clicks before the windown changes to the next chart. Secondly, all the tooltips will...
Dear Friends,
We are looking for a good expert advisor source code for autotrade.
Of course, that works and has good yields.
If any people can help us or can program an expert advisor for us, send a mail at: kiko AT telyse DOT net.
We pay for a good source code.
Thanks
Kiko
I tested several scripts with Arrays assigment and iam a little confused why them doesnt work (them only gets a cero value), for example:
// Channel limit=AllBars-ttPeriod-1; for(i=0; i<limit; i++) Array1[i]=iMA(NULL,0,21,0,MODE_EMA,PRICE_CLOSE,i); for(i=0; i<limit;...
Hi,
Im using mt4.177 and I notice that even though (sound) Events are enabled (tools->options->events) none of the sounds play.
How do I get these sounds to play automatically?
Thanks
Good day all, i am new here and need some help om a code shure could use some help.....
I am looking for a seperate advisor code i am goint to have two 5 min charts one for my first advisoor which i have done The second xhart is for the advisor I need this code for what I need it to do is on open...
Dear friends, I started translating some TS indicators/signals/functions to MT4 and i need some advice, how can i manage the numeric series on MT4? For example how could be the XAverage TS function translated to MT4? Thanks for any help. Regards Alejandro Galindo
I'm trying a very simple system. Buy if EMA(5) crosses EMA(13) --> using opening prices Close all open positions at close of current candle or at open of next candle. Opening goes ok but somehow it never closes on the same bar. I know backtesting is flawed but not for simple OHLC data I think/hope.....

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.