Download MetaTrader 5

MQL4 and MetaTrader 4 - page 938

To post a new topic, please log in or register
It can get a bit tedious in this forum you know. There are so many posts from people who can't code, can't use grammatic syntax (never mind programmatic syntax) and who just want others to "help me please" without spending any effort at all themselves to learn how to code and to read the docs. I...
I have a chart with this code on it. However, when I am on the 15min chart, it alerts me every 15mins instead of just the once per day that it is supposed to. Any ideas how I can get around the Time[0] variable?    //------------------------------------------------   //any TS/KS crosses on D1...
Hi, my question is about how can I send an order on a specific time in the future. I mean: let's suppose now it's 20.30 (8.30 pm) and I'd like to put a buy order to go long on 22.30 (10.30 pm), may be because some news will come on that time. Let's even suppose that I'll not be in front of my...
Where would I download MetaEditor? Could someone please send me the link? I presume this is where you would write the actual code to write your own Expert Advisor. Thank you!
search for something you know was asked a thousand times. nothing shows up. edit: works, no excuses not to search for your answers before posting now :)
i forgot my account's passwords...can any1 help me?...
anyone can help? how can i code to count the average ticks per minute?
if((OrderSelect(k,SELECT_BY_POS,MODE_TRADES))&& OrderMagicNumber()==MagicNumber21 && OrderProfit() >= 38) { OrderSelect(i, SELECT_BY_POS); int type = OrderType(); bool result = false; switch(type) {...
Hi all, I am looking for two EAs or Indicators to provide alerts for the following: 1. First new [reversal] Parabolic Stop & Reverse dot is below lower Bollinger Band - and first new [reversal] Parabolic Stop & Reverse is above upper Bollinger Band. 2. Gann HiLo indicator crossover of 5 period...
Hi what functions can I use to get ask / bid price from the past in minutes or seconds ? example: I want to find out what the ask / bid price was 60 seconds or 600 seconds ago. thanks ]
Hi, I am new to MT4 and I have read all the threads on Partial Close and still have not found what I am looking for. I have however found the perfect EA on line at http://www.ibfx.com/Tools/partialclose/default.aspx however when I try and use it it says I am not allowed. This EA is exactly what I...
Chris
I'm currently working on this EA. It's somewhat erratic at the moment because I have yet to factor in a lot of data. This is a "sneak peak" at a work in progress. The plan is to smooth it out. The results here are backtests for the year 6 November 08 - 6 November 09.I am looking for sponsorship to...
Can anyone tell me why the log file under the Expert /Folder stops recording at 12:00 to 12:29 each day.
Slight problem with linear interpolation of data, where X is not evenly spaced (missing bars).
Hi, I got a trailing routing that produce these two errors: 4108 and 4051. I revise the code but I can not find the bug. - Revision of open trades goes from OrdersTotal() parameter to 1. With 3 orders, produce 3, 2, 1. - OrderSelect is also decrese by 1. so i get 2, 1, 0 But the log show messages...
  sendmail (1)
Hello, I want to send email after open a trade. I use the yahoo account. It works ok with one line, but I want to send some lines in the message and I got errors. I have include "\n" at the end but doesn't solve the issue. Any example that works with some lines in the email-message ? Thanks
Hello, I checked the numbers i got from the stochastic indicator in my script and found that they are differnet from the numbers on the chart. eg. blue is 50, red is 30 in my script while on the chart blue is 25.5, red is 62.7 . What is the reason for that difference? Thanks, Udi
I have a decent automation that works well for channeling scalps, but I seem to take a hit when the market breaks out of the channel to a new level. I was wondering if someone has code or an indicator that would help me to identify a channel break out. It would not be to bad I guess if I knew it...
We need someone to trade our funds. Our company is expert at raising funds for the Forex market. We have developed the best advertising resources and contacts to bring in money for managed funds. The problem that we have had is that every trader that we have worked with has ended up losing money...
I created an simple EA and only droped following two lines in the "Start()" function. Alert("1111121"); Print("1111121"); compiled it and return back to MetaTrader terminal. then I added this EA on EUR/USD 1 min chart. wait for about 5 mins. no Alert pop out, checked "expert" tab, "1111121"...
hi i'm writing an EA that makes calculations based on past market swings. in the init function i make the ea load the past data with the following instructions : ArrayCopyRates(stream,"EURUSD", PERIOD_H4); ArrayCopy(bar1,stream, 0, 0); ArraySetAsSeries(bar1, False); but the EA loads a...
Hello friends... It´s possible to test and work with an ea that needs the confirmation of a signal in two pairs at the same time? I have an interesting idea based on price action valid for a lot ofmarkets and I want to start with forex ( EURUSD - USDCHF ) but I havethis problem... Really thanks for...
Today we're launching our new corporate website that contains the detailed information about our company and all our products. Visit this new website to read about the MetaTrader trading platforms and the TeamWox company management system. Besides, news regarding our company and products will be...
I've seen it used both ways. Right now i've got it set up as " extern int Slippage ". I have included the file <stdlib.mqh>. The command line I am using is the following. OrderSend(Symbol(),OP_BUYSTOP,Lots,dropped,Slippage,dropped-(SL*Point),dropped+(TP*Point),"simple buy stop",Green) Can I set it...
This an EA that enters on bounces from pivot points witha tight railing stop and changes its position sizing according to the distribution of its losses. A penny for you thouhts. Here are results Strategy Tester Report SamuelTrader ICM-Demo (Build 225) SymbolUSDJPY (US Dollar vs Japanese...
Francois Tremblay
Hi, I want my expert to wait 1 candle after entering a trade to look for exit conditions. The way I tried to implement this in my code was the following : .... ticket = ordersend(...) if(ticket != -1) Sleep(Period()*60000) Check exit conditions..... It doesn't seems to work in backtesting mode (I...
I'm building a MT4 EA, that requires the use of the customized MACD (macd-2.mq4), and a Bollinger Band that can take a multiplier with decimal places. Basically, I have tried to code it out, but I am not familiar enough with MT4 to be able to code the custom indicators into the system. The logic...
This video shows how we can generate a strategy with Forex StrategyBuilder and to send it for automatic execution to Forex StrategyTrader. We are using forex rates for the strategy from MetaTrader. There are several steps in this process: Loading historical rates in Meta Trader Exporting the rates...
if((OrderSelect(k,SELECT_BY_POS,MODE_TRADES))&& OrderMagicNumber()==MagicNumber21 && OrderProfit() >= 38) { OrderSelect(i, SELECT_BY_POS); int type = OrderType(); bool result = false; switch(type) {...
Thanks to everyone for all your help. Has been fantastic. When I try to code the result of many custom indicators to an EA, I can never get the EA to recognise EMPTY_VALUE If I replace EMPLY_VALUE with "zero" in the indicator, it works, but creates problems with the indicator, so I do not want to...
1...931932933934935936937938939940941942943944945...1244