Hello guys, just started learning MQL4 programming 2 days ago and I decided to code out an EA based on a strategy that I used to trade after watching some tutorial videos online. It is still quite raw and needs a lot of adjustment. However, when I run the EA (it should at least work for the Order...
The idea is simple: EA gives buy signal I take call option with expire on next candle. Has anybody tried something like that?
Hello! I want to learn how to use Stochastic in a EA. But failed to find a sample EA with Stochastic. Can anyone help me ? Hope it's a simple one…enough for me to learn how to put a Stochastic in my EA would be great. Thanks a lot
hello mql4s ppl, sry for my noob quistion. but im stuck on this for 3 days now, il be heppey to be resque. i have indicador "A" that send exteralbuffer like that: #property indicator_label1 "USD Blue" #property indicator_type1 DRAW_LINE #property indicator_color1 clrDodgerBlue #property
[Deleted]
Hello gurus................ Teaching myself MT4 after many years of non coding (old enough that I learnt using FORTRAN!!!) and I'm trying to write some code that will analyse what I'm calling "non standard bar history". Essentially, I want to find the last N bars (N would be say 4 to 16 typically)...
[Deleted]
How can the script programmatically go through all the instruments that are selected in the Market Watch window?
(61 1 2 3 4 5 6 7)
Colleagues, please advise me on one thing. How can I programmatically go through all the instruments that are selected in the "Market Watch" window in the script? Thanks in advance
Hi, I would like to ask somebody with experience here if this is fake result or not..? I am receiving signals from a trader and Yesterday he said his SL did not get hit and mine did. On the chart, the price slightly neared the SL, did not touch it, but with spread, it should be closed... As a proof
New article Graphical Interfaces I: Animating the Graphical Interface (Chapter 3) has been published on mql5.com: This article is the continuation of the first part of the series about graphical interfaces. The first article Graphical Interfaces I: Preparation of the Library Structure (Chapter 1)...
[Deleted]
my leverage is 1:1000 but the signal I'm going to subscribe is 1:500, can i still subscribe it? what is the difference between mql4 and mal5 signals, I use metatrader 4 platform can i subscribe to mql5 signals?Last one, shoul i let my pc on( Or use a vps) after subscribe a signal?
[Deleted]
I have just been writing a test DLL . I have a question regarding the arraycopyrates function. When arraycopyrates is used to pass address of mqlrates array structure is this pointer then fixed for the duration of EA execution? i.e. can we safey just use arraycopyrates in the EA init function...
Hello every one .I need some help on This EA. Can some body adjust code for me. What I need is No 1: EA open first trade either Buy or Sell by itself. No 2:Second trade open by Ea is as Pending order i.e (First trade buy second trade in Buy_Limit or First Trade Sell and second trade in Sell_Limit)...
Heey. This forum is GREAT!!!! Tanks Brothers! I'm new to MQL, and I'm a big doubt. the code below inserts a market order if the sale price and the purchase is above or below the average. I would like to know how to make a candle is above or below average send the order. Sorry if there are gross...
The first EA I'm trying to understand, is the MT4 Example EA of Moving Average. A quite simple one, now I finally understand it. Now I'm trying to add stop loss to this EA. Only a practice. But always failed. What's wrong with my stop loss, it should be like a number like 300 points stop loss, or...
<Russian Content deleted> 1. return value of 'OrderSend' should be checked 1.mq4 4 4 2. function must return a value 1.mq4 5 4 0 error(s), 2 warning(s), compile time: 967 msec...
Hello, I've read a few posts about unbalanced parenthesis, but trying to apply it to my error didn't work! This is my code if (Order == SIGNAL_CLOSEBUY && ((EachTickMode && !TickCheck) && (!EachTickMode && (Bars!== BarCount)) OrderClose(OrderTicket(), OrderLots(), Bid,...
https://www.mql5.com/en/forum/158195 If you trade a range of instruments, then you should be aware that for a given risk amount the volume (lots) can vary from 0.01 up into 100+ in value. This a a factor of over 10,000 in required lot size depending on the instrument you are trading. Why would this...
Hi, I am looking for some software to create EA's without big MT4-knowledge. Does anyone have experience with any of the available products like Molanis, EATree, noprogra, Generic builder, EA Builder, forex strategie builder, u.s.w.... I ask for your estimation or where I can find valid information.
[Deleted]
I have recently noticed a change in several of my custom indicators - when I change the timeframe on the chart, all the indicator buffers empty out, and remain empty even when the chart is switched back to the original timeframe. Oddly the only way to change the timeframe now seems to be to remove...
Hi guys, so my problem is that when i backtest in strategy tester everything goes ok, when i drop this ea in my demo account in a ecn broker it apparently execute both orders the first tp and the second, but when i drop in my demo account in the fxpro that was provided by metaquotes with their...
Hi, Does any one know why asking me to specify a Proxy Server when I install MT?
I made a simple EA following MT4 recommandations. I buy on the ask, my stoploss (SL = Bid -stoploss;) and takeprofit (TP = Bid + takeprofit;) are on the Bid, just like MT4 say it has to be, this way we take account of the spread. if my SL and TP are 100 point, it should male 10 dollar profit if...
Hi, How can i avoid error 132 MARKET IS CLOSE when opening an order ? I need to check if market is closed before opening an order.
Hi All, I need some assistance in coding in EA. I've a variables that has a value after using a loop condition. Is there a way to retain the value after finish loop the condition and use the value outside the loop? I would like to use the variables to compare with other indicator. Many Thanks,...
Do you know which broker's MT4 sever is fast ? thanks .
Hello, I have a problem and I don't know how solve itI need data from different bars, data like: volume, close, open, high and low... I don't have problem with first 100 bars, the problem is when I try to get those values of bars higher than 100, I get the error "array out of range" I try something...
Greetings, Someone please code this for me, or point me to existing code that will do this: Plot this on a chart; simple line from open to close, with the result in $ by the close. Thanks very much for any assistance!! Joseph
Hi all. So i would like to know how one Indicator performs when it's called by an EA. For instance i have this line of code on OnTick() Function. double Indicator = iCustom(NULL,0,"Indicator",0,1); My indicator works in the following way: First it runs all candles and makes all the necessaries...
[Deleted]
Hi, I'm going to make my own EA, but, I have to be honest, I dont know where to start :P Its pretty simple: -I have 5% of my acc for lose - my risk -Every time I open a position, EA checks , how much I have free margin ( this 5% ) -no positions- It sets SL at 5% of all acc -there are positions - It
[Deleted]
Hi There. I made this indicator which works OK, but will not continue after new bars appear. The only way I can get it to refresh is to switch between time frames. It references the differential between 2 different charts Any help would be greatly appreciated . Kind Regards David...
Hi all. So i have this indicator to calculate Swings it's working just fine in all charts and in all time frames... all but one CHFJPY on 1D time frame. it gives me Error 4029 Invalid Array. what happens is that all calculations are done normally inside OnCalculate() but for some reason i get this

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.