MQL4 and MetaTrader 4 - page 1255

To post a new topic, please log in or register
I'm writing an indicator for a 15 min chart and I want one of the conditions tobe that the current bid on the 60 minute chart must be greater than the 8 EXP movavg. How would I get the 60 min bid price? I don't think Bid(60) is allowed.What I need to do is something like the following: IF the Bid of...
Can anyone shed some light on how I can incorporate a custom indicator into my ordersend functions in my EA? I have the custom indicator and want to call on it withthe EA.....any help would be greatly appreciated! Custom indicator resembles.........
Can't figure out why this code won't backtest properly. The backtest runs, but noresults and no trades occur. The code seems correct to me. Anybody have any ideas? int start(){ double PosHigh = High[iHighest(NULL, 0, MODE_HIGH, iBarShift(NULL, 0, OrderOpenTime()), 0)];int ticket = 0; if(ticket ==...
  Chicago area (2)
Anyone interested in starting a coding/trading group in the southwest chicago area?Please respond and we can correspond via e-mail. I have lots of good ideas butneed some help coding. Have trading experience......I hope there is some interest. D
Has anyone been able to write either EA's or indicators that plot onto one chart?For example, a simple idea would be to have a 5 min MA, 15 min MA, and 60 min MAall plotted on the 60 min chart. Can you write the indicator to do this? Any helpis greatly appreciated....especially if someone could post...
Hello, i learned the example but sry i don`t understand it :( what i make wrong... can anyone say it me i would calculate with the value of KFull[i] from the indicator in the start #property copyright "AF"#property link "" //---- input parameters extern string note1 = "Chart Time...
  Heiken Ashi Hack (14   1 2)
Hi I have seen this question asked many times: The Heiken Ashi Indicator //+------------------------------------------------------------------+//| Heiken Ashi.mq4 |//| Copyright c 2004, MetaQuotes Software Corp. |//|...
i m new to the meta editor and would like someone to write for me a simple programso that i can test on the strategy and see the result kelvin email kelvintan_sm@yahoo.com
Can the number of lots of Pending order be modified autmatically by one code work? If not , we cannot help deleting an existing Pending order first of all and orderinga new Pending order ? If we cannot help doing so, it may be impossible to order a new Pending order occasionally because the price of...
Do you know where I could find one? Also, that strategy doesn't work when the market is flat. Is it possible for anEA to recognize when a market is flat? Thanks
pls does anybody know how to set the lot size for this code so that it increasesas the balance increase. Thanks In Advance! This Is The Code //+------------------------------------------------------------------+ //| EMA_CROSS. mq4 | //| Coders Guru | //| https://www.forex-tsd.com |...
Hey dudes, Just a small question I've spent a good few hours on trying to figure out (as I'mnew to MQL)... How do you look back on the previous bar? Would be good if LastBar existed, but unfortunately it doesn't. Close[1] shows the chart's value. This is in a custom indicator in a separate...
Hello possible assistance This idea needs CODE NOTE: sell stoch(5.3.3) >= 80 BUY stoch(5.3.3) < 20 //+------------------------------------------------------------------+ //| FUNCTION DEFINITIONS Money Managment | //+------------------------------------------------------------------+ LOT...
On the website of the Automated Trading Championship 2007, an Interview with Alexey Kirienko (Axelforex) has been published. The Participant of the Automated Trading Championship 2007from Kyrgyzstan Aleksey Kirienko is the leader of The Championship already for the second week. The development of...
How do I change the color of the Chart Window Tab (the ones that currently are whiteand contain the currency pair and time period)? I've looked for a Window Property that could change the Tab's color, but cannotfind it. Does it exist for the Tab of the Chart Window? Thanks very much for any help, jw
Does anyone using or know anything about this Ea, is thier a document on the settings
TK already helped me to modified this EA,I tried on backtest,7 years tick test,account still alive,and increased. TK make the trade can reach 7 level by using large SL=140 .but,sorry, that's not what I want.I want get rid of those low level trades by small SL.and still can get into next level until...
Hi , I'm a very experienced mql4 programmer and i'm looking for new projects to workon so if you have any ea's, indicators or scripts that you need done please contactme on the email below :) sleepless.damian@gmail.com
Hi I compared a few charts with my one EA. This one is on Demo account with their databank from 1Jan2007 This one is on My Broker account updated with Alpari Data(Period_conv) from 1Jan2007 This one is before I updated with Alpari Databank: I had alot of fun with the last one untill now.
Greetings, I have an EA who does not use stop loss and would like to know if you can entera command to close the orders the negative time 23:59:59? In Time if you have any order to miss the EA closes and leaves open only the ordersthat are positive for the next period. I am very happy to offer...
hi, i've been praciticing with 3 demo accounts for about 3 months now with pleasantresults. last week, I got the "invalid account" messageprobably bcos of inactivity. i was just getting better, trying back testing etc.  i wanted to know if anyone can tell me how to reactivate
Please we need a reply to the questions in the page:- 'Automated Trading Championship 2007'
New MetaTrader 4 Client Terminal Build 211: MQL4: Fixed operation of function FileWriteString(). Now it works accurately to the documentation: "If the string to be writtenis shorter than the given value, it will be extended by binary 0s up to the givenlength." MQL4: Fixed error of passing string...
Hello folks, I am trying to code a simple EA that opens an oder on the opening of a bar (andcloses any open order there may be) I am having trouble coding the action to happen at the close or open of bar. I was using the following to determine if a new bar opened... bool newbaropen=false;...
Hello, I am not a code writer nor programmer. However, I need to make two envelopes ona 9 Day Simple Moving Average on close. One envelope 1/2% of 9 DSMA and the other1% of the 9 DSMA. I don't know where to begin and would appreciate any help available.Thanks..docjames
How does one count UP Bars versus DOWN Bars and vice versa? For example X amount of UP bars to enter and Y amount or DOWN bars to exit. .. Cheers!
I'm trying to show a comment on screen. i would like to put it below the abovelineetc. Here is the example: Comment("",Name, " "," First Buy ",FBFirstLevel,"", "Second Buy " ,FBSecondLevel, " ", "Third Buy " , FBThirdLevel, " ", "First Sell " ,FSFirstLevel, " ", "Second Sell " ,FSSecondLevel,...
Hi I have an EA that Im testing on the strategy tester and its very confusing howStrategy tester works. ao1 = iCustom(Symbol(),PERIOD_H1,"AnyIndi",0,0); See Im setting the PERIOD_H1 The funny thing is it only make profit when I attach it to M15 on the Strategytester, not on M1 or any other. Is...
At the website of the Automated Trading Championship 2007, the Reporting the Championship: Second Week (8-14 October) news has been published. Several interesting events have taken place within thepast 5 trading days. Participant AxelForex has rushed to the first place. He wasnot among even the Top...
Hi My EA is spitting out error 31 on 0.08 lots on $1000. I know what the error meansbut I dont get this error on my Live account. Its when I use Strategy Tester. Is there a way to bypass this in Strategy Tester? L.