MQL4 and MetaTrader 4 - page 1240

[Deleted]
I have this indicator that in any timeframe draws two lines, one showing the highest price and one showing the lowest price of the day, useful for you daily trend traders... The original is freeware that i downloaded but modified for my purpose. The indicator also displays the value of these lines...
[Deleted]
Hello all.... does anyone know if an indicator or EA exists out there in MQL4-land that can identify a bullish/bearish "Flag" chart pattern? Thanks! Shawn
[Deleted]
If i am front testing an EA in a demo account how can i distinguish trades based on the strategy that produced them in the history report? Thanks ken
[Deleted]
Is it possible to change automatically the MA's period parameter as per some condition during run time
i can not find scripts I’m not about what to do. to create the "100pip = loss 10% balance", What is the formula?
  MR.B  (5)
I'm wondering if someone can verify the strategy of an EA I've had built. It's called 'MR. B' as an acronym for MFI, RSI, and Bollinger Bands. It's supposed to be a simple EA that enters trades when any two of the three indicators confirm trading conditions (according to the threshold levels I've...
[Deleted]
hello every body... i have code like this: double ma= iMA(NULL,0,10,0,MODE_SMMA,PRICE_CLOSE,0); double ma1= iMA(NULL,0,10,0,MODE_SMMA,PRICE_CLOSE,1); if(High[1]>ma && High[2]<ma){ ticket=OrderSend(Symbol(),OP_BUY,Lots,NormalizeDouble(Ask,4),3,NormalizeDouble(Ask-StopLose,Digits)...
[Deleted]
Hello I made a quick test indicator which is drawing a line in a separate window. My question is how can i avoid the actual value to be displayed? I'm only interested in the shape of the line let's say. Thanks in advance!
[Deleted]
Hello everyone, I created an expert advisor that achieves quiet good performance (MetaTrader simulator). I started this expert advisor on my live account (www.xtb.de) but the execution of a special order (BUY) was too late but not when I run a test on this order. These screenshots shows what I mean...
[Deleted]
Hello Folks, I know to you all it must not sound like much, but for me it is another step on the programming ladder. Current status: This array is giving me the lows of a 24hr period. What I want to archieve: 1st: Use an external variable in the brackets [], instead of the 24, so that I can set...
[Deleted]
  EA needs to be refined  (71   1 2 3 4 5 ... 7 8)
There is an actual working examiner who has been undergoing tests from 1999 to the present, on a year by year, month by month, - even by week. ( Only for 2002-2008 ) Not a scalper, not a pipser , works on Fr more than 30 min - 1 hour, 4 hours Stop Losses exceeding 20 pips, no martin , with stops
How to program for protecting EA account automatically stopped when the Free Margin down to a certain level and continue the Free Margin of up to certain levels?
[Deleted]
Hello, Trying to so a simple task really. Took a prepackaged MA sample (I believe I downloaded it from the code base here), and added another faster MA (10 SMA) to the code and I am trying to read both iMA values at the signal time to confirm divergence/conv. For some freakin' reason, the second...
[Deleted]
I would like to draw the MACD histigram bars different colors based on the valueof the bar. It seems that the histogram bars are drawn in the color of the last condition.Is there a way to draw the bars one bar at a time using a particular color? Code snippet if (MacdBuffer[i] > 0.0 )...
is there any way to automaticly (via EA or script) load all close orders into "Account history" that the settings in "Account history" will show "All History" ?
//+------------------------------------------------------------------+ //| SaveDataInFile.mq4 | //| http://www.metaquotes.net | //+------------------------------------------------------------------+...
  A Workplace  (18   1 2)
It may be fun and useful to see workplaces of other people. So, let's go -> https://www.mql5.com/ru/forum/122157
I have an idea for coding an EA, but at very first stage I found out that it would start making losses if by any reason MT4 would be switched off and on again. I need my EA to remember a set of data (an array to be specific) no matter what. I couldn't find any solution anywhere on the internet. My...
hi, I have some code below for classic pivot points, the problemwith this indicator is that it does not update automatically after thefirst tick of the new daily/weekly/monthly bar I have to keeprefreshing it to the 4H chart then it updates, I would like to have itupdate automatically on the first...
Let's Help Beginners
[Deleted]
Hello all I am coding an EA which trades when price closes below/above a 10 SMA, along with confirmation from 2 other indicators. The only problem is, that sometimes all criteria are met several candles AFTER the initial cross, so simply saying "if((TenSMA > Ask) && (etc, etc))" doesnt suffice. I...
Hi, I have programed my EA and now I am optimising the settings. During live testing (real money, real time) I would like to change some setting in the EA that are adjustable during launch (extern int EMAperiod=21;) . Can I do that while it is working. e.g. I would like to change the EMA Period,...
Hi Guys, I can program EAs a little bit, so I copy and paste what I need and adjust it to match my requriments. But there is one thing I could not find. I want an EA that is always in the market and only changes from long to short (or the other way) when a trailing stop is hit. Can you give me a...
I have created a EA using dll . When I attach it to the chart the MT4 crashes. Can anyone tell me the reason for that.
[Deleted]
  Buttons on Chart  (2)
Is it possible to code Buy and Sell Buttons on Chart wich can be use to open Order? I have here a solution wich is coded with objects on chart, but I asking myself if it could be possible to code real buttons?
[Deleted]
  AND OR handling  (14   1 2)
Hello folks, might be a silly question for most of you, but I'm just running in a problem and would appreciate some clarification. Sample: if (Variable1 == Variable2 && Variable3 == Variable4 || VariableA == VariableB && VariableC == VariableD)   {   bool CriteraMet = true;   } As far I my...
I am NOT accusing MetaQuotes for for anything here, I'm only speaking up on some concerns that I have. I would like MetaQuotes to submit their sourcecode for scrutiny by independent western security firms, and have the code ( including updates) certified free of application backdoors. IF MetaQuotes...
[Deleted]
Hi, I want to know how can we tell the program to continuously check for new bar opening
[Deleted]
The moving average only goes back so far. I have an EA that uses moving averages as one of many signals. The problem I am running into is that I can't back test further than the moving average goes. Are there any moving average indicators that go back as far as the time chart goes