MQL4 and MetaTrader 4 - page 1585

[Deleted]
Hi, I´m trying to write a simple EA that put a buy order at the beginning of the bar and sell at the end of the bar. I´m trying to develop these with a daily chart but I intent that it work’s on every timeframe. The first part of the problem is easy because we can use the expression:...
Which are the most inportant indicators for short therm trading? If I use M1, M5, M15, M30. And which are the most important indicators at all
New article Expert Advisors Based on Popular Trading Systems and Alchemy of Trading Robot Optimization is published: This article dwells on implementationalgorithm of simplest trading systems. The article will be useful forbeginning traders and EA writers....
[Deleted]
Have any of you experienced unexplained immediate closures of positions just opened? There's sufficient equity and there's nothing in the code I can discern which should cause an immediate closure. My EA has been running fine up until last night when it opened a position at the specified time as it...
[Deleted]
Hello, How come that the time on the bars in the chart (last bar) is not the actual time as my PC-clock indicates, but with a delay from +/- 2 h !!?? I trade (long/short) on M5, M15, M30 and H1 I work from Belgium (Europe) Do i have to set my (time)setting otherwise ?? Please respond, need to solve...
  Signal Transmitter/Receiver!  (117   1 2 3 4 5 ... 11 12)
Hi all, Hereby a tool to send/receive text messages between MT4 instances! It includes 2 sample MQL files, 1 DLL file and its source code (using Visual Studio 2005, C++) 1. Put both MQL files in expert subfolder 2. Put DLL file in expert/libraries 3. Don't forget to enable DLL function in MT4...
1-How do to apprehend tredn (UP or Down) ?
[Deleted]
Is somone can help me to set the autotrader robot to buy when 200 MA exponential and 60 MA simple Cross. I need the screen to show all option for - stop loss,buy price, sale price Thanks. Moshe.
[Deleted]
  Modify an Order  (1)
hi guys. am new to programming and have been playing around with MQL4. i seem to be hitting a wall with the code. am trying to have an order modified when condition "A" happens. however it does not to work. below is how my code would look like. double stopLoss; if(a>b) for(int...
[Deleted]
Hi, I would like to check for multiple confirmations such as fast EMA cross slow EMA, MACD crossover, etc to determine sending order or not, but these events may not all happen on the same tick. I want to consider them as long as they all happen within a reasonable time period. With EA logic being...
[Deleted]
  problem buy/sell  (3)
help me pls..... i try to build EA... but one problem...how  order buy/sell in specific price... exampel.... buy GU x.xx10....if find price with 2 digit behind is 10... and then buy sell GU x.xx25....if find price with 2 digit behind is 25... and then sell thks.....
New article Metalanguage of Graphical Lines-Requests. Trading and Qualified Trading Learning is published: The article describes a simple, accessible language of graphicaltrading requests compatible with traditional technical analysis. Theattached Gterminal is a half-automated Expert Advisor using...
  International championships  (385   1 2 3 4 5 ... 38 39)
Rules: 1. Start of the championship on 28 April 2008. 2. Closing of the championship on 17 May 2008. 3. Winners and losers are determined on the basis of equity on the accounts at the end of the trading session on 17 May 2008. 4. All interested participants are to provide account details, i.e
[Deleted]
  New to programming  (18   1 2)
I am trying to program a variable using the ###Gann_HiLO_Activator_v2###. What I am trying to accomplish is to get the value of the Gann custom indicator at the open of the price bar for the current price bar. This is what I did and when I compile the program it says Gann variable not defined....
[Deleted]
I'm new to programming. I have a hedging EA I'm testing. I would like to know the number of open long and short positions and print this to the screen. I think I could branch out after a new position is opened or when the EA closes positions. Can I call the same sub routiene from different places in...
Hi, I am trying to open an order for the first time but I still have the return code 130 annoying me ! Here are the parameters : double OSize = Lots; (0.2) double OPrice = Ask; (1.5438) double OSL = Bid-TakeProfit*Point; (1.5458) TP=20 double OTP = Ask+TakeProfit*Point; (1.5415) string OComment =...
[Deleted]
  Please Help!  (3)
Hello guys.My name is Sarah.I just found this thread.You guys sound really informed in the forex market.I started trading my own real money account with 20k 7 months.To say it has gone poorly is an understatement.Im down to just alittle over $4300.But because I love to trade im putting in another...
[Deleted]
How do I have an indicatot to only calculate on bar close, not intrabar? Thanks, Jmarch
Is there a differece if I use M1,M5,M15,... time for Artificial Inteligence EA? And does anyone know which is the best time (M1,M5, M15,...) for Artificial Inteligence EA?
[Deleted]
Hi guys, I need to write the coding for the following task. I would be very thankful if you can rewrite it in some clear way. By the way, I have 2 questions related: 1) does it create problems using too many "if" in an EA? 2) if I put a "return" after any of the following "if", that "if" if executed
hello, bool ObjectMove(      string name, int point, datetime time1, double price1) what does point mean? if i have a diagonal trend line object with time1,price1 and time2,price2. and now i want to move this line to "a new time3". which point value i should use? a simple example would be really...
Where could I get it ?
[Deleted]
  automated trades  (2)
Hi Guys, I need someone to help me automate a trading system that I have developed. Is there someone out there that can help?? Contact me at marketdemon@comcast.net if you think you may have the answers for me. Thanks
[Deleted]
Hi folks I'm new in Forex but I'm learning that sometimes I need to put resistence/support lines in my chart. What is the best way to do this? Is there a script that can do this for me? Thanks Alcy2k
[Deleted]
  error 134  (3)
Hi, I'm new to metadrader so excuse my language. My problem is, when I test an EA, some trades are made but not all of them as I often get the error 134 "not enough money". I've read somewhere and think that my problem comes from that the lots are in EUR while my balance is in USD so the margin...
Dear Posters of MQL4 Code examples I finally learned the trick of getting formatted code into posts... woweeee------------ many many thanks Rosh! Now, if I can do this, being an old codger... please could others not currently using the information relayed in video link below do the same? Why? cause...
[Deleted]
Hi, I understand how to use the command line interface to open an MT4 platform and apply an EA to a chart. But please explain how I can do the following using the command line interface, if possible: *) Apply EAs to different charts, for example, EA1 to H1 EURUSD, EA2 to H4 GBPUSD , etc. *) Close
I have a situation where I have found a good EA, but it does not set stop losses. So I built an EA that takes profits off the table and minimizes losses. The first EA enters the trades nicely so I want to keep using it. The second EA goes through the ticket orders and decides when to cut losses by...
  Error 129  (3)
Even though I have useddd refreshrates it is still getting the error and not processing the close for (int i = 0; i <= MyTotalOrders; i++) { if (OrderSelect(i, SELECT_BY_POS) == true) { if (OrderProfit() > TakeMoneyAt) { if(OrderSelect(OrderTicket()...
Hi, Every body my question is for Metaquotes can we suggest any new features in software. Like for example I wanted to give an additional tag to the orders. For which currently I am using an array to do it. But my technique has flaw tha if a expert advisor is restarted I loose the tag on the order....