[Deleted]
Hi,professors ! I want to get your help: how to compile the custom indicators of PR. The main body of PR is just below: Pr1=(iMA(NULL,PERIOD_H1,10,0,MODE_SMA,PRICE_CLOSE,0)-iMA(NULL,PERIOD_H1,20,0,MODE_SMA,PRICE_CLOSE,0)); Pr2=(iMA(NULL,PERIOD_H1,10,0,MODE_SMA,PRICE_CLOSE,1)+iMA(NULL,PERIOD_H1,10...
[Deleted]
Hello guys, I'm trying to include the body_height/candle_height ratio to my entry conditions and MT is complaining about "zero-divide". This is how i try ty calculate it: double low = iLow(NULL, 0, 1); double high = iHigh(NULL, 0, 1); double close = iClose(NULL, 0, 1); double open =...
[Deleted]
Hi! I started MetaTrader this morning and found that nothing was changing. I moved the market watch to the tick chart and the tick chart says "Waiting for Update". I obviously have an internet connection as I am able to come here. I also opened another trading station that I have and it is...
[Deleted]
Hi, I'm having problems running Trader Advisors with Strategy Tester. See below very simple OrderSend Advisor (from the OrderSend documentation), which is giving me error #129 everytime. Any idea what might be wrong? Thanks. //+------------------------------------------------------------------+//|...
This night my EA lost some trades. This message:" TradeDispatcher: trade context is busy" How to avoid it? How many times the EA try to open a trade or modify the StopLoss? My EA is based on moving averages and HEDGE. I can not lose a trade order. Thanks.
Hello, I am trying to get current market position(nr. of lots and direction) like this : int OpenPosQTY() { int cnt = 0; int lots = 0; for (int ic = OrdersTotal() - 1; ic >= 0; ic--) { OrderSelect(ic, SELECT_BY_POS, MODE_TRADES); if (OrderSymbol() == Symbol()) { if (OrderType() == OP_BUY) cnt++;...
At EA I have one set up to buy and other to sell at same account. I set all BUY's at one plataform e Sell's at other but used magicNumber 0 in all currency pairs. There is a interferance. Do I have to open one account to each set up? I need magicNumber 0 to open a trade managed by EA. How to solve...
[Deleted]
in TradeStation Easylanguage Input: DampFactor(.3), MALength(5) ; Vars: ProjMA(0), Mid(0), MA(0) ; Mid = (High + Low)/2 ; ProjMA = Mid - (DampFactor * (Mid - ProjMA[1])) ; MA = Average(close, MALength) ; Plot1 (ProjMA, "ProjMA",cyan, default, 1 ) ; Plot2 (MA, "Avg", yellow, default, 1 ) ; Thank you
[Deleted]
Hi, I`m a newbie in this. I ´m trying to work with automated expert advisors that work only at bar completion, I found this code but I don`t know how to use it well, static datetime prevtime=0;...if(prevtime == Time[0]) return(0);prevtime = Time[0]; anybody can help me?
History: I'm a programmer (delphi & assembler, 5 years experience. C language, 1 year experience). 6 months ago, i started my manual trading. i've been read a lot of book about technical indicator, trading system, mm, psychology, etc. until today, i already made 7 EA, profit ratio for 5 EA is about...
I need some help getting history data on certain currency pairs, pls how do I go about it
By Custom indicators there is no grid in seperat windows, why is this so, by the original indicators from the Terminal the grid is shown everywhere?
I want to select order by magic number, as I have different orders on different pairs and different magic number on the same pair ( symbol ), in total I have 4 magic number on the same currency and I am trading 3 currency pairs Can I select orders by magic number ? What I want to do is that: if...
[Deleted]
1) I want to sell if the current price minus the price before is negative: void CheckForOpen() { double ma; int res; //---- go trading only for first tiks of new bar if(Volume[0]>1) return; //---- get Moving Average ma=iMA(NULL,0,MovingPeriod,MovingShift,MODE_SMA,PRICE_CLOSE,0); //----...
i want to learn mql4..... but i am a chinese speaker.... i want to find any one who can speak chiese.....and to dicusss via msn my email :peterncue@ yahoo.com.tw tks
[Deleted]
Is it possible to set a value to an extern variable after the properties panel has been processed so that the next instance of the properties panel would retain the values input the time before. If that is possible how is it done? Thank You, Deane
[Deleted]
hi if i wont check if my order is running OR pending ex : ticket=OrderSend(Symbol(),OP_BUYLIMIT,Lots,moyenne_basse,20,(moyenne_basse-stop),moyenne_haute,"Mon achat",16384,0,Green); cann you help me ? en francais : comment savoir si un ordre est passé ou s'il est en cours, s'il est passé par...
I can provide code of a great purchased EA in change!
Robotic forex trading software. Automated forex can be defined as the ability to trade forex with the use of a forex trading robot, without needing a human to physically trade a forex system. With forex, automated trading is an emerging field that began not that long ago. The trading robot here not...
example. in expert 's init () function i use an array to store some bar's shift number and the value of ma 7. int ma7shift[1000]; double ma7price [1000]; init() { int j;for(int i=0;i<bars;i++) { if(askma(i)> x){ma7shift[j]=i;ma7price[j]=askma(i);j++;} if(j>1000) break; }...
[Deleted]
calculating 60 min from last order open: OrderSelect(0, SELECT_BY_POS); if(TimeCurrent() < OrderOpenTime()+3600)return(0); doesnt work. any body know an alternative?
Is there anybody who can write the latest Ehlers indicator from Tradestation to MQL4? Thanks! http://www.traders.com/Documentation/FEEDbk_docs/TradersTips/TradersTips.html Strategy: EhlerBandPassStrat inputs: Price( MedianPrice ) ; variables: alpha1( 0 ), alpha1Plus1( 0 ), Log10( 0...
[Deleted]
So i coded my first EA, backtested it, works fine, compled it, etc. Then i loded it onto a chart in my demo account, it just sits there and does nothing. The code just opens up market orders one at a time with stop-loss and t/p values. Why would it not open any positions? Thanks!
[Deleted]
an EA that i have personally written from scratch (and its dynamics i understand very well) behaves unexpectedly since downloading the new build (211). For instance, during a backktest it opens and closes 1 trade but then wont send any more orders ever again for no apparent reason. This never...
[Deleted]
Hi, I'm having trouble downloading Sample_1.mq4 - Sample_4.mq4 from https://www.mql5.com/en/articles/1460 If you read the comments, apparently I'm not the only one who has this problem.. Could someone try to download these and cut and paste the code in a reply here at the forum? Thanks..
Well, my simple question is the next: My EA use only open and close price, so is goog use the strategy tester in Open price only? Use this mode of Strategy Tester is pretty faster.
[Deleted]
i have a smartphone that runs Ms Mobile 6.0 standar can i use mobile version in any broker?
I have a PROFILE with many pairs. Why can't I copy a profile from one plataform to other? The MT4 doesn't load the charts. Do I have to built a new profile on every MT4 that I install? Thanks.
[Deleted]
Hi all i'm trying to write my first EA and experiencing some problems, would appreciate some help i'v created and indicator which show moving high and low for last X days (not average, but actual high\low). i want to be able to see the same values on smaller time frames, meaning the value for all 24...
I have recently written some fairly complex EA's and when I attempt to use the optimizer I all too often get the Error message in my journal: "Too many passes for optimization, please try to decrease optimized parameters or to increase parameters' values step." I was just curious is there is a way...

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.