Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1186

To post a new topic, please log in or register
#include <stdlib.mqh>#include <WinUser32.mqh>double balance,cp;int total;//+------------------------------------------------------------------+//| script program start function |//+------------------------------------------------------------------+ int...
In running my EA through a backtest, I wind up w/ about 80% of my positions gettingclosed waaaay above or below the high/low on a candle. My EA is not set to close orders like this. As a matter of fact, doesn't the candlehave to get to that point? Take a look at just one example:
On the website of the Automated Trading Championship 2007, an Interview with Olexandr Topchylo (Better) has been published. He performed unsuccessfully in the last-year Championship,and this failure was the making of him. Olexandr learned the lesson and becamethe leader of Championship 2007 with a...
  EMA on EMA on EMA...... (16   1 2)
I'm trying to transfer an indicator from Intellicharts to MT4 to smooth out averages.Is it possible to duplicate the following? EMA(10) On EMA(3) On EMA(7) On (O+H+L+C)/4 Thanks so much
On the website of the Automated Trading Championship 2007, the Report of the 7th Week of the Championship has been published. These 5 trade days ended with several surprises. The firstplace has been taken by a Participant from Ukraine winning "by a head".The leader of the preceding week has given...
1. Dear MT team, I think there is a color bug in MT 4.0. Try this script. A wide rage of colors0xXXYYZZ are interpreted as 0xZZYYXX. Is this a bug? If yes, please could you fix it? Thanks in advance. I use MT 4.0 211, ME 4.0 209. int start(){ ObjectsDeleteAll(); string NameOB="id1";...
I'm using the Fractal Channel indicator written by Collector in my trading system.How can I get rid of the connector lines and show ONLY the support and resistancelevels (ie. horizontal lines only) ? During back-testing, the current connectorlines give away the price trend at the hard right-edge of...
i am confused why no arrows are showing. also where should i place PlaySound() function. i've tried placing it at all theappropriate location but it just keeps on playing repeatedly. i would like to playa sound when an arrow is created. #property copyright "Copyright ?2006, TrendLaboratory Ltd...
Hi, I have the following piece of code that tries to insert a pending order with anopening price away from the market, but with stop levels that are (at that time!) possibly close to the market. double stopLevel = MarketInfo(symbol, MODE_STOPLEVEL); double pointSize = MarketInfo(symbol,...
Which market does this error refer to? Is there a way to check if a specific marketis open or closed? (Asia, UK, US) Thanks, T
I am trying to write a very simple indicator to draw an arrow 20 points below thelow when a fast ma crosses above the slow ma and to draw an arrow 20 point abovethe high when the fast ma crosses below the slow ma. The code seems to be doingexactly opposite of what I want it to do. This seems to be a...
I want to endevour all forum members to assit on how i can attach other indicatorto my custom indicator to my platform all my brokers uses mt4 setup ,thanks foryour coperation.my eamail is forexspaceship@yahoo.com.
  ex4 (11   1 2)
hi guys. how do i create an ex4 file out of a mq4 ? thanks.
Hello, first this i one of the best Forums i ever see, second sorry for my bad english. I try to write what i need. i have written an expert that generate me signals and write them to files and sendto my email. Now i want to code an expert for my friends and clients, this EA must look if thereis...
On the website of the Automated Trading Championship 2007, an Interview with Alexei Ermolaev (Zyx40) has been published. Alexei Ermolaev (Zyx40) is a newbie in automated trading. Hedoes not have much experence in it. He works with statistical approaches to analysis,so he decided to apply these...
Hi, I wanted to comment my orders with the period of the chart used while the orderis sent. How can I do this as the "comment" is of string type and itwill not accept period() function.
Hi, Can anyone assist me to write a simple code that would close All open ordersand delete All pending orders when  a condition is fulfilled ( equity>=balance*1.2||equity<=balance*0.8). Thanks in advance.
Hi. I'm using the excellent "PointSR" indicator that automatically finds levels of support and resistance and plots them as horizontal lines on my chart. I have the parameters set where I'm getting a LOT of lines drawn-- which is what I want :-) Is there any way I can stop each line displaying...
Hi guys i was taking a look at Championship and that Waddah EA give me an idea. Do you guys think this will work? He said: "My EA just place an buy and sell order on GBP/JPY with 200 stop-loss and 330 take profit, one of the must win." And i was thinking, if we just made an EA for many pairs that do...
I'm just starting to learn this stuff, and looking at some of the EAs my first questionis program structure. What goes first, last, etc. The particular EA i'm lookingat starts with: //---- input parameters extern int x1 = 135; extern int x2 = 127; extern int x3 = 16; extern int x4 = 93; I can...
I am trying to get a variable for a 50 minute simple moving average, the one thatappears on the chart when I apply it to one. I am using: double MoveA = iMA(NULL,PERIOD_M1,50,0,MODE_SMMA,PRICE_MEDIAN,0); When I use the print function to print out MoveA, it is never very far away fromthe current...
I tried using MACD sample EA on North Finance platform,but it refused to trade despiteshowing me a smiling face on the chart, and the fact that i have $92 in my account,when i looked into my journal on my account page ,i saw a statement that read "wehave no money" ,does anyone understand this?...
Don't want to bore the pro's with stupid questions...
I have two studies I would like to convert from esignalto mql. I have attached thesyntax for both. They may well exist already but Iam unable to find them. Any helpwould be very much appreciated. Thanks!
How do Forex Trading Robots work? A Forex Trading Robot or FX bot is an automated trading program that helps traders seeks out short term opportunities in the Forex market. This program manages your account 24 hours a day so you do not have to worry about lost income while you sleep. Because it uses...
On the website of the Automated Trading Championship 2007, the article Statistical Report #2 has been published. We go on collecting and analyzing statistical data obtainedin the course of the Automated Trading Championship 2007. The results of the secondstatistical report clearly indicate the...
good day everyone. im using the meta editor. i have mq4 files in my hard disk whichhas the complete codes and everything. i wanted to open it and attach to the chartin the terminal thus test the strategy. anyone who lend me a helping hand? my email> victoryjunior19@yahoo.com. thanks.
We are a proprietary forex trading firm based out of Houston, Texas and we are lookingfor programmers to create lucretive EA's for us. We will pay as much as $5,ooofor your EA plus split the profits 50/50 on a $50k Live account for 1 year. Wewill provide a Demo Account on a live Currenex/MT4 Bridge...
Hello, I noticed from History Center one is able to import information in MetaTrader,but this is only involving csv files plus the action of loading is manual. Is itpossible for the live data to be inserted automatically; the purpose is to haveMetaTrader used along with the custom indicators to...
On the website of the Automated Trading Championship 2007, the article Reporting the 6th Week of the Championship has been published. The sixth week of the Championship ended. Exactly half of thecontest is behind us. This week brought us some surprises. Places in Top 10 continuouslychange their...