MQL4 and MetaTrader 4 - page 603

To post a new topic, please log in or register
APeng
Hello everyone! Is there a way to identify a selected object? E.g. if I double click a horizontal line, it is selected (you can move it, delete it and so on...). So what I want is to select an object via double click, my ci is recognizing the selected object and takes  it into further processing....
HI, Could you tell me why this is working only if I have only one order open at once? if( OrderType() == OP_SELL && OrderMagicNumber() == 0 && OrderLots() == 0.05 && OrderStopLoss() == 0 ) {OrderModifyReliable(OrderTicket(),OrderOpenPrice(),OrderOpenPrice()+75*10*Point,OrderTakeProfit(),0...
Hi community, I just started learning MQL4 and although there are some similar problems solved on this forum I can't figure out my problem. I started doing the followoing code to place an Order depending on the behavciour of the Stochastic Oscillator, which worked as intended: int init() {    return...
Hi all:  Im using filewrite function for first time and its working well but the output it gives into the csv file is not double values nor text, more specifically, I will get the value of the pair without comma separator (ie if its 1,323 it will go 1323) but the worst part is that if there are...
I have written a couple of simple EA's MANY months ago and just wrote a new one after all this time - but I have become very rusted. When I want to run this successfully compiled EA in the Strategy Tester nothing wants to happen. I cannot even open "Expert Properties" to set the external variables....
Hello,   STRATEGY Buy:- Buy from thebeginning of second green candle     SELL Sell for the begining of second red candle INPUT   MAGIC NUMBER   MODE OF EXECUTION MARKET EXEUTION/INSTANT EXECUTION    CHECK RESISTANCE TRUE/FALSE...
Hello, Im new to MT4 and happy to be here. The font is too small and I want to make it bigger I have no idea how to write scripts I found a script I can use at https://www.mql5.com/en/forum/129576   I have no idea where to put it. Can someone please help me, and please be specific this is a foreign...
I think I am overlooking something patently obvious here     myVal = GlobalVariableGet(Symbol()+"_ADR_R5");     double ratio;    ratio = myVal/totalR;    logInfo(FULL, "getVars", "myVal = "+myVal+"  totalR = "+totalR+"  ratio = "+DoubleToStr(ratio, 2)); The results of the print out statement...
Hi, I saw there is a few EA can replace a Chart with A Browser and showing a web pages on top of the MT4 chart.   How to do it?  I know a little bit of the background, it seems it loaded the chart with a Browser ActiveX by using the WindowHandle, but how? any example. 
Hello  I haven an EA that runs 24 hours a day and takes into account the 3 main timezone session. Here is what I usE to identify the current time zone and so it is then used to find the start bar of the session:   //+------------------------------------------------------------------+//|...
Hello Can you send push notifications to a Windows 8 device in the same manner your do to an Android or Apple OS? It should be possible: http://msdn.microsoft.com/en-us/library/hh202967%28v=vs.92%29.aspx
Hi all, I've been focusing on relative strength trading , mostly according to MQL 484 article (realllly good, go check it out if you've never read it). Anyone else do this? I use CFP and complex pairs but have been trying to find ways to make it filter better trades, etc. My timeframe is 4 hour,...
MetaTrader 4 Client Terminal build 445 Terminal: Added integration of MetaTrader 4 client terminal with MQL5.Signals service. Now, all users having MQL5 accounts can subscribe to trading signals. The client terminal will copy trading signals with minimum delay according to the specified signal...
Hi, I'm trying to make an EA as described below:  Candle 1: - check every candle  - current candle may or may not have a signal - if this candle has a signal, open a trade - if not, do nothing until next bar   The problem is that my current version only opens the trade at the next candle and...
Hi, I'm a newbie. I'm using the following code to capture the prices (open, close, max and min) every time a new candle is detected.       ........... int init() {    lastCandleOpenTime = Time[0];    return(0); } int deinit() { return(0); } int start() int start() { if (isNewCandle()) {...
Hi everybody! I'm pretty new to mql4, but I think, that I have a great strategy, however, my skills are not on the required level. I have just one simple question, that I haven't found answered yet- when you want to have takeprofit that changes it's value within every tick, how do you do that? To...
This indicator is supposed to simply display two horizontal lines at high/low of the bar designated by StartHH and StartMM each day.  As soon as I load it on a chart, it locks MT4.  I took an existing indi I wrote that displays horizontal lines at support/resistance to make this indi, the original...
Hi, I've created my first expert advisor. I have also created some simple test experts to see how they run. For example I created an EA that count the number of new quotes coming through and prints this number each time in the experts window as well as in the alert. My problem is, when I remove this...
The EA I am developing should place one or two trades per day. The strategy tester stops as soon as the first order is opened. What conditions would cause it to do that?
Is somewhere available indicator signaling, with alert, proper alignation of 7-8 EMAs ? Thanks a lot.
Hi everyone Do you know any indicator or system that can make me a 10% monthly of my capital what i need is only 10 % if is more is ok . But 10 % monthly for sure . thanks Ps : I'm using MT4 fabs17
I can't find document for ObjectGetValueByShift()
I have been running the same EA for 2 years. Once or twice in that time it has traded when all conditions were not met. The latest was when Close[2] was lower than respective bollinger band level, when the condition statement ask for it to be higher than the band. Has anyone come accross this? It...
Dear All who are experts and newbie like me, well MT4i is copy trader and its free which copy trade from master to slave on same computer, but it copy all the trades. I want to request /ask experts is there any way that we could ha ve option programing that only profitable trades copy from master...
  amend script (11   1 2)
Can somebody help to amend EA code to have possibility to open position based on fixed/constant  number ?  Want to be able use it for certain period of time with not always changing base for position size calculation. Would like to add case 3:  .....be able to write amount of money and keep it till...
SIR I NEED EA FOR THIS CODE //+------------------------------------------------------------------+ //|                                                   SKYFXSYSTEM.mq4 | //|                             copyright © 2012, SKYFXSYSTEM | //|                                         http:/SKYFXSYSTEM.COM...
Hellocolleagues/experts Iam modifying an existing code I found to what I need (partially closeposition). Ineed help not regarding how to get what I need (maybe later) but about an errorI am getting when compiling code with MetaEditor included on MT4 (version 4.00build 445). Error I got is:...
Hello, Can you tell me your opinion on this piece of code please. Its goal is to count the total number of active orders (op_buy and op_sell only, no pending) in progress on several EAs. Thanks, Emmanuel.    Total_Orders = OrdersTotal();   Compteur = 0;   for(Position_Index = Total_Orders - 1;...
Hello, I'm Gerhard Lang from Germany , I want to tell you the secret of my success . I start trading with 5000 USD 2 months before and now the balance is 58889 USD I here attached my statement please check it out . This success behind a EA , I'm Using a EA in my account and i'm wonder . Finally i...
Is there a way to add the PC Zigzag indicator to Metatrader 4 on an Android Phone?