Download MetaTrader 5

MQL4 and MetaTrader 4 - page 528

To post a new topic, please log in or register
I'm trying to keep track of the number of candles that passed since a trade opened.  ie. - a trade opens at 12:05.  it is now 15:10, the lmit has not been reached yet, so the trade is still open.  This is a thirty minute chart, so 6 candles has passed since the trade was opened. Can someone point me...
How to use ATR/Volatility in a trading system?
Noticing that strategy tester will run duplicate tests It does not select unique tests. Finding duplicate test/results/outcomes.   var1 = range to range var2 = range to range var3 = range to range   Is this a memory error and i ought to reboot? Or perhaps a bug in tester?   Before - it seemed to...
Could you say me, where can i find SignalCopyMySQL Setup WIzard, i can not find it
I would like to use this stochastic only on first trade with Starting_Lot. int Buy_Okk=0; int Sell_Okk=0; if(Stochastic_Filter_Enable==true) {   double Stochatic=iStochastic(Symbol(),0,K_Period,D_Period,Slowing,0,StrToDouble(Price_Field),0,1);  if(Stochatic<=Buy_Level)   Buy_Okk=1;...
Hi all, So, I've a logic that will open consecutive market orders on an ECN Broker. Each order have it's own commission and when the last order closes  I need to incorporate  all commissions  to get  AccountProfit() - commission > 0. How could I get a way to get the sum of all commissions to...
Please anybody help me with sample code block for only open trade management according to martingale / anti-martingale EA
So sorry. I'm not speak English. Here is my indicator code. I want insert buy or sell order to  [ displayAlert("Buy signal", 0, ld_20, l_close_28); / displayAlert("Sell signal", 0, ld_20, l_close_28); ] line. Please help me! <DECOMPILED CODE REMOVED>  
I'm looking for a procedure, mql4, that will tell me true or false, when I've hit the daily profit limit for a pair. I've tried the folloowing code but it always returns false. bool funcGetTodaysProfit(){   int intDailyProfitPips=100;   double dblReturnValue=0...
Hello everybody, I'm a newbie of mql4 and now I have a problem with iMA, iMaOnArry, RSI I want to get the value of EMA( RSI(39),30) . It means that it will caculate the EMA with period 30 of the Array RSI, the period of RSI is 39? Can anyone help me this function?  I have tried, but it was not...
I have tried many brokers but none of them were in EST TimeZone with their Chart Data. Can someone recommend me any broker for test purphoses with EST Chart please? Thank you in advance.
  ping failed (3)
Hi all, is there the possibility to recall in an expert the situation "ping failed" that I see sometimes in the diary? When the connection is lost, I need to refresh my Renko graphs. Something as if (ping failed == true) ....  Thank you! 
Hi I have written a DLL to interface with matlab code. The Dll has a function to start matlab engine and then call several functions. The Matlab code is part of an EA. Matlab engine gets initiliazed in the init() function of the EA and is supposed to close on the deinit() function. However, I found...
Okey people.. i need help, advise or direction.. I'm a trader, not a programmer so please dont make fun of me if I ask stupid questions. I'm not here to make anyone else make this EA, I'm prepared to make if myself.. but i'm here hoping someone can help, know of something like this have been done...
Hi, I want to draw an OBJ_ARROW directly below the low of my bar and directly above the high of my bar. When I want to place it under my bar, I can say Low[1] the arrow is correct placed. But when I want to place it over my bar I have to say High[1]+ x * pips2dbl. How can I calculate x, so that...
After submitting this indicator to the mql4 codebase 3 months ago, it is still  "under proof reading by moderator", with no comments or responses from them yet. I'm just going to post the indicator here so that people can actually get some use out of it. (It seems a waste to have it sitting around...
  EA Security (2)
Can anybody advise me, please?  I am fairly new to MQL4.  I have written an EA which worked well on backtest and is currently running.  Some colleages wish to test it.  My question is this:  is there any way that I can lock the EA so that it can not be viewed or modified by anyone else.  I am...
  EA storage (3)
Hi All.  I'm a newby who has just written and comissioned his first EA.  It works! My question is - where is the new EA stored once it's compiled?  I can't find it anywhere in my file system and I'd like to copy the script to my laptop, where I'm running a duplicate of the same account (Alpari)....
i tried this code : extern bool CheckOncePerBar = true;datetime CurrentTimeStamp;                if(CheckOncePerBar == true)                        {                                int BarShift = 1;                                if(CurrentTimeStamp != Time[0])...
Hey guys, is it possible to show the build in alarm via a horizontal line? The alarms are all invisible.. regards naik3d
  Help needed (10)
Hi all,  I try to synchronize the bars of different pairs into a three dimensional array so each shift (bar) of this array has the same time stamp. If the bar for a certain time and pair doesn't exist, it still should get a time stamp but the other values should be -1. I have come up with the below...
Hi i m creating a custom indicator as a separate window. I d like to know if it is possible to display/draw an object at a specific Buffer[i] position instead of a continuous line. I m always talking on a separate window below the chart and not on the chart.
Hello: This is my first posting on this forum, so please excuse any formatting/procedural errors.  I am having difficulty with the Order Modify function.  I use an ECN, so I must send the order with 0's in the SL and TP fields and then use the Order Modify function.  The stop loss and take profit...
  no trade in real time (12   1 2)
baseed on the "moving average EA" the system provided,I developed an EA myself. It runs OK on the tester.but when I put it in the realtime,it never generate a single trade. As I checked the tester,there is a trade,but the real time running EA did not generate that trade. As I make sure I "alow live...
When I run this EA on one Chart with 1 Currency it works fine. When I open 2 charts each with the same EA attached but different currencies on each chart. eg: chart1 :EURUSD , Chart2: AUDUSD. As soon as the 2nd chart runs 1 of the trades Trailing stop ,Order Modify begins changing the Stop even...
Hey everyone....  I have an indicator that draws specially calculated lines 1000pips up and 1000 pips down from the current price. It calculates from a base 1.1000 on the EUR/USD.  The absolute fibonacci framework its called. (google it)   Id like to know if theres an array search function of sorts...
New to the language,    Can someone help get the difference between two MAs, current MA-previous MA.   Any help would really be appreciated.   TONY 
this its normal rsi code..its close price values...how change code?--> highest price,highest or lowest rsi valus?   //+------------------------------------------------------------------+//|                                                          RSI.mq4 |//|                      Copyright ?2004,...
  SSD Indicator (5)
Hi Everyone,  I hope you are all well, I am in need of a SSD indicator for MT4 but I am unable to locate one, can any of you experts out there help me? Regard Roman  
#include <IncludeExample.mqh>/* External variables*/extern int Slippage= 1;extern int MagicNumber;extern bool CheckOncePerBar = true;/*Global*/ int BuyTicket;int SellTicket;int UseSlippage;datetime CurrentTimeStamp;double SUM;double LotSize = 1;double StopLoss;double TakeProfit;int deinit()  {...