MQL4 and MetaTrader 4 - page 741

Hello everyone, Id like to know, how do you reduce the drawdown that an expert advisor has? Iv been trying many things such as reducing the lot size that my expert uses, or adding code that i think will mitigate the potential losses that the advisor may make when trading, but i think that these...
GRRR.... I would like to go back in time and get the value of an account lets say on the 20 th of May at midnight.  It looks like you have to loop though and recreate all the Old Data wins and Loss. But you reach a Problem if you have a Open Trade at that Time. It will not reflect the open position...
Hi, I'm looking to code up an EA with the following functions, but I'm not very good at coding.  Is anybody willing to code an EA with the following options?  Willing to pay, based on price.  (If this is not the appropriate place to post such questions, can you please point me in the right direction...
MetaTrader 4 Client Terminal build 482 Terminal: Added one click trading panel: To show/hide one click trading panel, use the icon in the upper left corner, a context menu command or Alt+T shortcut. Terminal: Increased the number of allowed parallel...
Is there a way to alter 'extern vars' in such way that calling F7 window, will show the altered values? (I mean, without saving and calling the file) James
As the title says, which broker provides the best history when using their own MT4? Which Broker provides the best price feed? Best meaning most reliable, without price gaps or missing bars and such. I have seen some price feeds that lack complete info causing a candle that gives misinformation.
[Deleted]
Hello! How do I code an EA so it would show a moving average ,or several of them (with predefined range) when I drop it to the chart( I am guessing the code should be in init() func. Please Help
[Deleted]
01 MT4 Default「Ichimoku Kinko Hyo」.png 「9 26 52」 picture of a setup of the standard indicator "Ichimoku Kinko Hyo" of MT4 loading   (a color is the specification here) I am.    Japanese Language 01 MT4 Default「Ichimoku Kinko Hyo」.png 「9 26 52」 MT4搭載の標準インジケーター「Ichimoku Kinko Hyo」の設定の画像...
Hi Guys, I'm trying to modify an existing indicator. The indicator currently plots, Monthly, Weekly and Daily Highs. I'm trying to introduce a 'Quarterly' high/low as well. The code was pretty simple, so I changed the values of the # of minutes etc. and tried to compile. There was no errors but the...
Hi Guys I'm interested in an AE that can quickly calculate what my position size should be. So for example if I'm trading the eurusd and my account balance is 10k and I want to very quickly find out what 2.5% would equal in lot size. I was thinking something like a left click and hold or something...
Hi! I need to get profit in point of last closed position.   This is the code, but something wrong. Please help. Thank you.    double GetProfitLastClosePosInPoint(string sy="", int op=-1, int mn=-1) {  double p;  int      i, k=OrdersHistoryTotal(), pr=0;   if (sy=="0") sy=Symbol();  for (i=0; i<k;...
Can anyone tell me an easy way of calculating the percentage of days up vs days down over a given period.  So 20 day look back, 16 days were up days = 80%.  Not exactly rockent science i know but  I don't want to do it in Excel.  Do I need a custom indicator?  Or can I put it directly into a EA?
[Deleted]
I need a simple robot that simultaneously opens a buy and sell position, with a stop loss of 1 pip, and a take profit of X number of pips. It should open multiple hedging positions on the same chart, with various expanded take-profit margins, but always a stop-loss of 1 pip, to eliminate all basic...
Hello, I am using demo version of MT4/5. and I am intersted to open an A/C with them. I live at Ahmedabad, Gujrat, India. So how can I open an A/C to get an online charts of NSE stocks and F&O? and what are the chrges? Thanks in advance
suppose I want to enter a trade when one condition just occured and another occured in the last 4 bars. how do I code that? for example, if I want to buy if stochastic crosses above 20, and RSI crossed 30 in the last 3 bars, do I need to define RSI for the last 3 bars and then code that? can I use a
After running a visual test of an EA, is there a way you can save the chart so you can open and use it again? and analyze trades?
[Deleted]
I try and try, but I can't do. I know is the logic. please help. Thanks for the help.      /+------------------------------------------------------------------+ //|                                                    i-HighLow.mq4 | //|                                          Copyright © 2007, RickD...
Hi,  Can you help me? Upper Shadow and Lower Shadow is missing (See images). I installed MT4 in HTC One (Android OS, v4.1.2 (Jelly Bean)).   How to display the Upper/Lower Shadow on the Candle Stick Graph? What is Upper Shadow and Lower Shadow, please see image below  
  Boolean Question  (6)
Hello, I have a question if I have something like this:if (condition){Bool x=true; for (int i = (total-1); i >= 0; i --) {if ( OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) if(OrderType() == OP_BUY && OrderSymbol() == Symbol() && OrderMagicNumber() == MagicNumber) if...
dear friends I downloaded the EA Snowie some days ago but when I compile it there is an alert message saying: function "convertBoolToStr" is not referenced and will be removed from exp-file. so i can not add it on my platform's charts. please i will be glad to hear from the programmer of this EA...
  Historical Data  (4)
anybody know how to get historical data? I saw "FileOpenHistory" function but no function on how to actually read the data. any ideas? Thanks Eli
[Deleted]
MT4 used to have a mini terminal that allowed you to enter a position with a SL and TP at one click though i dont have this terminal any more Can anyone help me with this? thanks Dan 
Hello Smart MQL coders, I need some help with this News Breakout EA. Just started learning mql days ago. My idea for this EA is to create both a pending sell and pending buy order at a distance from the price at a certain news release time. I am having problem coding to close out other opposite...
Here's the correct one of phy code in start() function int start()  {   if(oldTime != Time[0] )      {      // first tick of new bar found      // do something useful      oldTime = Time[0];      }   return(0);   } I'm trying to get and ea to open an order at the start of each bar, and no other time...
New article MQL5 Cookbook: Developing a Framework for a Trading System Based on the Triple Screen Strategy is published at mql5.com: In this article, we will develop a framework for a trading system based on the Triple Screen strategy in MQL5. The Expert Advisor will not be developed from scratch....
for(i=0;i<=limit;i++)       {          double xy=MathPow(bar/2,2);           count[i]=0;          ave[i]=0;          chazhi[i]=0;          countpingjuncang[i]=0;                                              for(x=i;x<=i+10;x++)                     {...
//+------------------------------------------------------------------+//|                                               台湾鸟-波动率.mq4 |//|                        Copyright 2012, MetaQuotes Software Corp. |//|                                        http://www.metaquotes.net...
Hi  I am creating a buffer of 20 elements to store profit for last 20 ticks .. want to calculate a weighted average from this buffer.  However my buffer variable ProfitBuffer[i] which is declared a global seems not to hold any value. Any ideas why ?  Cheers // Gobal declaration double ProfitBuffer...
  EA Coding  (1)
How can I set the stop loss at certain level of loss (5) and  setting maximum lot size? 
How do I make an EA give comments so that I know how the trade was closed? (like if it was from trading condition 1, 2, 3, etc, which you coded.)