MQL4 and MetaTrader 4 - page 998

To post a new topic, please log in or register
Suppose I am using an EA on a GBP/USD chart and another EA on a EUR/USD chart. I know if the EA's want to trade -- buy, sell, or close a trade-- the trade context has to be checked to insure there is no conflict. However, is this necessary when using techinal indicators? For example, if the EA on...
EURUSD....M1 APPLY int start() { if(iRSI(NULL,0,14,PRICE_CLOSE,0)<25) { ticket=OrderSend(Symbol(),OP_BUY,1,Ask,3,Bid-250*Point,Ask+250*Point,"My order #2",1440,0,Green); if(ticket<0) { Print("OrderSend failed with error #",GetLastError()); return(0); }...
  Delete objects on chart (11   1 2)
Hi I have arrows on the chart, based on highs and lows. I need to delete all past ones so that only the current arrow is displayed. Thanks in advance for any suggestions.
Hi everyone, I need an indicator which can draw vertical line with a specific time which you can enter by yourself. Any idea how to code this?
Now I know that this is probably mostly luck because I'm not a great programmer, but I wanted you guys to pick apart where my EA might be weak. I've heard max draw down is important, but am not sure why. Can you tell me from this testing report where my EA might be weak, or (better yet), that I've...
I use a lot of fairly processor intensive indicators in my manual trading, at the moment I am thinking about how I would implement my strategy in an EA, the primary problem I am having is that using iCustom to get the indicator values for even just a couple bars either causes the terminal to freeze...
New article Data Exchange between Indicators: It's Easy is published at mql5.com: The article describes an easy method to develop aprogram environment for the MetaTrader terminal, that would providemeans for accessing indicator buffers from other MQL programs. Author: Алексей
New article MQL5: Create Your Own Indicator is published at mql5.com: By describing creation of True Strength Index, the author shows how to write indicators in MQL5. Author: MetaQuotes
I'm having a problem with error 4107 for an Ordersend function. I've printed the Ask and Bid values out immediately before the function and for some reason the values have 8 decimal places instead of 4. If I use Print (Ask," "+ Bid);, the Ask has the correct format, but the Bid doesn't. Any...
Help I want to connect in Linux - Ubuntu 9.10 platform MT4. What should I do?
Some people kind and friendly, in the forum, helped me to realize my strategy. I changed the strategy. I Public self strategy. You can help us improve? Works well on Gold with H1, for 2009 If you are intelligent collaborate to improve You are all kind 1 December 2009 to January 10, 2010 thanks...
/*-----------------------------+ | | | Shared by www.Aptrafx.com | | | +------------------------------*/ //+------------------------------------------------------------------+ //| CloseAllTrades.mq4 | //|...
Could anyone please help me on this matter?
HI all, I started making EA a month ago and i was creating EAs just for training, now i'm trying to code my live EA. I need something that makes the EA only buy after a sell or sell after a buy, so it can't buy twice in a row nor sell twice in a row but i need it to be able to make the first trade...
Guys, What do you think about think this profit curve? It kinda flat so we just need to increase lots to get more profit... This curve is EURUSD since 2000, my EA is based on the H1 Please comment! what would be the risk in the future of such an profit curve? Thanks in advance. Best regards Patrick
Good night. I would like to understand how the database server. At the time of confirmed authorization to access the account is informed: User Password Server Who does (file) validation? As the broker sends to the database? (Currency pair) As MetaTrader get this file? I have a file with a. TXT or....
When run three times in a row the same strategy provides different results in total net profit: 1st run: 18.56, 2nd: 12.78, 3rd: 0.72. The difference between the first and last rounds is 25 times. The currency pair, time period and expert advisor settings remain the same (I just clicked “Start”...
I use an EA through a signal provider to trade when I'm at work but would like to know if there is an indicator that will alert me via the email function whenever a trade has been opened in my account, the pair, size and what price and equally when closed...so I can monitor my account through the...
Hi All, I'm new please be easy on me. I writing a pivot point EA that I hope will be the base for my trading system as I plan to add other indicators to it in the near future. It puts lines on the screen, changes the color, and gives them a description but it doesn't Re-calculate and move the lines...
I want to draw chart that will include weekends andpublic holidays, so we have this '"Free-of-Holes" Charts indicator'. Also, there is an indicator that can convert PERIOD "Period Converter Optimized",Can we have an indicator that combine the two? For example, convert H1 to H8 and then to free hole...
Can an ea have multiple trade rules (ie more than 1 buy/sell execution rule)
Can you run an EA without the included indicators on the chart?
Hello, If I include the statement : Print("EURUSD Close :: ", DoubleToStr(iClose("EURUSD",PERIOD_M30,0),Digits) in an EA, and attach the EA to a forward tested GBPUSD chart, the Ea prints the correct iClose value for the EURUSD. But.... If the same EA is backtested on a GBPUSD chart, (for the...
TEST 01.01.2009 to 31.12.2009 DEPARTURE WITH 10000 USD TEST CARRIED OUT COMPLETELY (default values) EURUSD DOUBLE UP 30 MINUTES > +4560… 01.09.2009 to 31.12.2009>+16136 ILAN 1.4 4 H > +2006..01.01.2009 to 31.12.2009 >+12250 ILAN 1.6 BETSAFE 15 MINUTES > +692…01.01.2009 to 31.12.2009 >+6242...
I am searching an indicator which shows me a chart of the profits and losses realized during my trading transactions such as we have in the backtesting on the graphic in the bottom of the classical plateform Thank you in advance for this information Gerard Lefeuvre
Howdy one and all, I’m a newtbee at this and have to say thateven just trying to find a way to effectively get started and how to proceed onthe best course is most definitely not easily discerned. I’m trying to figure out modifications ofsome existing programs as well as writing my own. As some of...
Hi, Can anyone assist me with this issue, i have code that has been working fine on ICM, two weeks ago i put the same EA on Alpari and it works fine on there. But yesterday i put it on ODL and it will not open the instant order. it does open the BUYSTOP, The error returned on the instant order is 0....
hi there,does anyone know how to attach an EA to the mt4 mobile platform? thank you.
hi! everyone below order closeall code is 1st orderdelete after 2nd closeall. i hope 1st closeall and 2nd orderdelete. ex) eurusd 1lot hold and eurusd 2lot limit order 1. hold position is reached profit price, closeall(1lot) 2. working order open(limit or stop) delete(2lot) 1st hold...
  EMAs cross strategy (17   1 2)
Hi I will want this strategy, but I'm not developer: This strategy uses two Exponential Moving Averages with periods 4 and 11 . When the first moving crosses the second moving upwards, the strategy opens a buy position. When the first moving crosses the other moving downwards, it closes the buy...