MQL4 and MetaTrader 4 - page 1555

Hi All, I have this weird thing in my code, and I just can get my head around it... Ok i have a function handleOpenPositions() which should manage my trailing and stoploss. ( Ok where you See VirtOrder, just read Order) void handleOpenPositions(){ for(int i = VirtOrdersTotal(); i >= 0;...
I am trying to place a BuyStop order but I am getting ordersend error 3 (ERR_INVALID_TRADE_PARAMETERS) I have checked the parameters that I am sending but still can't find the error, could someone help me please? OrderSend(EURUSD, OP_BUYSTOP, 0.1, 1.563, 5, 1.5615, 1.566,"My order",0, 82800, Green);...
  Arrow in chart  (6)
I need to draw an arrow in the chart. There are several other forums whit an answer to this, but i don't know what I am doing wrong, there are no arrows. can someone help me please? My code is: int start(){doubleLastHigh;LastHigh = iHigh(NULL, PERIOD_D1, 1);       if(Close > LastHigh)       {...
[Deleted]
Hello guys, I tried to use this code. int a =TimeCurrent(); a=a-(Minute()*60); string var1=TimeToStr(a,TIME_DATE|TIME_MINUTES); // var1='2008.08.05 23:00' //datetime var1=D'2008.08.05 23:00'; int shift=iBarShift(NULL,PERIOD_H1,var1); double opening_price = iOpen(NULL,PERIOD_H1,shift); ... Using...
Two years have passed since the first Automated Trading Championship. A lot of interesting information has been accumulated for this time:statistical reports, interviews with traders, useful articles. Wepresent to you a selection of these materials that are divided intoseveral parts. The present one...
[Deleted]
  Unsubscribe  (1)
How do I un-subscribe from the MQL4 community ? Carlos
I'm looking for an ADX with smoothing factor that behaves like VT Trader's ADX which is the standard original ADX. I will attach formula; ADX = modify moving average of DX DX = 100 x ( (+DI - -DI)/( +DI + -DI) ) +DI = +DMn / TRn, -DI = -DM / TRn +DM = Ht - Ht-1, -DM = Lt - Lt-1...
I am using Swing_ZZ indicator, and simply want to buy at a red dot, and sell at the blue dot. However, the following is not working. How can I generate appropriate buy/sell signals. Using the following code, but don't get signals at the correct spots. int start() { //---- string UpName...
[Deleted]
Hello everyone, I'm new to mql4 and I've been trying to use this very simple code with no success. The idea is to trade at specific time, puting the script into sleep for about 2 hours, and then making the order. It works for 6 minutes, but does not for such time as 2 hours, i.e., after 2 hours it
[Deleted]
Hi, i got this EA from a forum as it was similar to what i wanted and thought i could learn some codeing as i changed it to what i want. well after a few weeks or month i got this far and it pretty much does what i want but now im trying to fine tune it and there is couple of things that i cant get
  History repeats itself - a lie?  (70   1 2 3 4 5 6 7)
The question came up after watching a thread about another "grail" Counsellor I have read this branch and decided to build something similar... 1) Combination of colours of the last N candles is written to a string variable "curState". 0 - black, 1 - white. For example, if the last three
[Deleted]
Hi, I need to change the MagicNumber in a Order. The OrderModify() doesn't do the job :( Is there a hidden way to accomplish this? Thanks SB
New article Interaction between MetaTrader 4 and Matlab via DDE is published: Step-by-step instructions of how to organize data transfer from Matlab to MetaTrader 4 using DDE. Author: Dmitriy
[Deleted]
Greetings I'm looking for an experienced programmer to program an EA. The EA is based on using my own custom indicators and is not a simple strategy. Please email me with your experience and then I can email you more details so you can work out a price estimate on the programming. Thanks so much...
[Deleted]
  Simple Hedge EA  (1)
Hello Everyone. I am wondering if any of you are aware of any EA code that can place hedged trades counter to trades being place by another EA. Example: I am running the PID EA which places a series of counter-trades as it trends. What I am looking for is an EA that can respond by seeing when...
I was wondering if anyone has done anything like this. Goal: To visually chart the on going balance, equity, profit, and open P/L of an account onto a seperate security chart. So on each tick, an update occurs, when done the security chart will show a limear chart of each of these properties of the...
[Deleted]
Hi, I am trying to copy my EA to a CD to serve as a backup copy (using WindowsXP), however I am getting a message stating that there is a problem copying the file. Am I trying to do something that can't be done with metatrader, or can someone please advise me on the best procedure to create a...
hi @ all, i tried a several times to programm trailing stop for the following EA. But all tries went wrong an no TS was created by the EA. Can u please help me to do this? Thank u very much!! the EA so far is: extern string Lots_Desc = "if 0 dynamic lot is applied"; extern double...
[Deleted]
I am new to the MqL4 and would like some help on getting started with setting up a system, my system is fairly simple as i would like to test a bracket entry 15 pips above and below the previous days Closing Price, with a 10 pip stop limit (or more depending on pair), stop loss at 20-30pips.. i...
The Tick Charts in the order window and in the Market Watch window are not filling the little windows and the line from the price tag to the last tick is far too long. How can this be adjusted? Thanks for any suggestions!
Is there a indicator that I can follow the pairs that I chose at single window? Thanks
[Deleted]
When mql5 and MT5 will be available? is it possible to know when they will be released? D.
  3ma cross EA  (1)
I have downloaded the above EA. The results of the testing shows zero profit. Date used from 2008.01.01 to 2008.31.07. Please help to fix the problem. thanx bala
[Deleted]
I'm new to MQL4, and I'm wondering if someone can answer this simple question. I want to compare the value of the current SMA(20 bars) to the previous SMA(20 bars). Here is my code. Is this correct? I basically changed the shift value to 1: if ((iMA(NULL,0,20,0,MODE_SMA,PRICE_TYPICAL,0)) >...
Hello I dont like this Error any more but every Time I get it :-) It about Error 4002, Array index out oft Range, it comes when I make a if staement in a loop: if( ArrayMinimum(Mart,cPeriod,Shift+1) ) The Array is "Mart". Ok I dont know what to write the problem is clear, or not? Did one understand...
[Deleted]
UDATE: Ok, that's enough replies for now, Ill see how I get on with who has written, thanks Raghu Hello, if this post is not allowed, please delete it. Basically, I need someone to code an idea for me which I already have formulated and written out. It's nothing special, just a basic trend Ea...
[Deleted]
i want to develop a EA that will check files for pc every 5 minuite. if he found the file in certain folder . it will read a file then open a trade based on file infomration can any one help me os some code / note regarding this EA. Thanks
I received a email about working within a Bar and problems associated with it. True, if not handled right, whips will crucify account. But think about it, doesn't that also happen when trading news, your system and any type of trade?? How often are you stopped out..whipped out? However, I have...
[Deleted]
Can anyone help me, my panel froze since yesterday, I can access everything but when I try and trade it gives me the msg Trade is Disabled, and al the prices are not moving