MQL4 and MetaTrader 4 - page 1585

[Deleted]
Is there any benefit to counting bars like this: for(i = limit; i >= 1; i--) or this for(i = 0; i <= limit; i++) ? Should I have all of my indicators counting bars the same way? Ifso, how do I convert it from counting bars using one method to theother. specifically from using ++ to using --?...
[Deleted]
  DrawDown Value  (1)
Hi all, I'm having some doubts abou the drawndown value. The maximal drawdown is the maximum "negative" value of one order, correct? How is calculated the Relative drawdown ? Thanks SB
Hello all, Anybody know about brokers that offer 0 (zero) spread acc. type? It must be registered broker company. Thanks in advance Best Regards, syanwar
I am completely new to MQL4. But trying to start using MQL4 for FOREX trading, I have an indicator I use in MetaStock, I call RSI-Swing. So, I need to convert it to MQL4. Trying to gain time is there anybody who could help? This is the MetaStock code: peri:=Input("RSI period: ",1,100,34); lbav...
Hi Is there any video lesson on how to creat EA available for new people who are starting out. Thanks.
[Deleted]
Kind thanks, I'd like to know how I can apply pivot points to my charts.  Cheers Neil
[Deleted]
  iHigh Problem  (2)
Iam trying to adjust a trailing stop depending on the highest price in the past 90 periods.. and have tried this code, but am not getting a result. Can anyone point me in the right direction.. .......... thanks ...........Krakatoa double Trailer = iHigh(NULL, 0, iHighest(NULL,0,MODE_HIGH,90,1))*0...
[Deleted]
Hi, I've been searching for a way to trade an expert advisor based on constant range bar charts. All I was able to find was this script: http://www.mqlservice.net/catalog/product_info.php?products_id=29 and I don't really want to pay for it... Has anyone here come across, or thought of developing a...
[Deleted]
Hi, I have a strategy to backtest based on the last trading day. It means that I just needs the previous bar. I launch the tester and it starts to trade after 6 months whereas I know lots of trade should have occured before. It's like if this release includes a sort of minimum bars needed. Like if...
-
Would like some help translating two CTL strategies to MQL4 EAs, Please feel free to drop me a note shyguy_y2g@yahoo.com.
[Deleted]
Currently I have set up three Moving Average indicators. (See attached) These indicatorsare standard MetaTrader 4 indicators, that I have attached to the chart using differenttimeframes. I'd like to be able to add these indicators to another chart, without having toadd them "manually" each time I...
Hello: What do I do if MetaTrader siezes up, after I had been trying to start strategy testing, I only run an EA on a demo account. It had never had a problem until I recently did the strategy testing that I'm certainly a novice at. Any help would be appreciated....
  Whats Wrong  (5)
Hi All, whats wrong with this code. I just want to get long as the last bar closes above the last 20 bars, and RSI is above 14. extern int Quant_Bars=15; extern int LongRSI = 50; extern int ShortRSI = 50; extern double TakeProfit = 100; extern double Lots = 1;...
Hi I would like to manipulate a two dimention array with one row containing strings (ie symbol pairs) and the second row with an associated boolean state. I hope to link the boolean state of a condiction to a symbol pair. Many thks ronaldosim
  How to ...  (3)
Hi! excuse for bad english How I can find Highest bettwen 12:05 - 14:10 in tester some day we have missing bars and when i wirte extern datetime T1=D'12:05'; MetaEditor give me some Errors I don t want to find for example T1=D'2008.06.01 12:05'; becuse this is for specfid day and not for...
Hello. I was wondering if there was a quicker way to download historical data (all time frames) without clicking each symbol one by one. I saw this thread in the forum but it did not help me. 'Historical Data' It's okay when I only have 20 or so currency pairs to download, but if I'm downloading...
-
Hi, today I learned about setting the preferences of MT4 in a config.ini, this is really awesome! And it really works! ;) The only thing which I cannot get to work is `DllConfirm`. When changing this key's value it's simply ignored! It just takes the input of the last setting manually made by the...
[Deleted]
Hello, I'm trying to find a way to have my EA limit its trading after it gets a winner over a user defined threshold. I am using the following code //---- check for successful trade for(cnt = OrdersTotal(); cnt >= 0; cnt--) { if (OrderSelect(cnt,SELECT_BY_POS,MODE_HISTORY)) { if (OrderSymbol() ==
How do I program the condition/signal (with an indicator) so that it is triggering the acoustic alert only if s predifined condition is true FOR THE LAST BAR in the chart? (now the alert is triggered as soon as I add the indicator to the chart window (due to previous signals in the chart) I'd...
[Deleted]
hello,pro,im a new bies, after i compiled an EA from the online library,then add to my navigator window, from there i attached it to a chart its show the EA on the top right corner of my chart with a dagger and i enable it and smily comes out the wait for the EA to work but its not working,pls can...
New article A Pattern Trailing Stop and Exit the Market is published: Developers of order modification/closing algorithms suffer from animperishable woe - how to compare results obtained by differentmethods? The mechanism of checking is well known - it is StrategyTester. But how to make an EA to...
Hello,I'm planning to refresh a repaint indicator from inside the indicator, it's similar with using a keyboard shortcut.How to do it? I found an information about it on http://www.metatrader.info/node/167, but it's not working. Anybody know why?Thank you
[Deleted]
Hey all, Great forum here, lots of great people and advice. Keep it up! First Q: Currently playing with this app, and just wondering, in the demo, if I can change my stop/profit loss to be lower than 100? Currently I place an order, then modify it, and try to change it lower than 100, but its not...
[Deleted]
Is there any way to identify the color of the bars in Acceleration/Deceleration Indicator (AC) using codes. Thanks in advance....
[Deleted]
hi how to complet this ? when i compil it, i still have 10 alerts . how i can do ? //+------------------------------------------------------------------+//|                                                            N.mq4 |//|                      Copyright © 2008, MetaQuotes Software Corp....
[Deleted]
Hi all, I'm trying to add PlaySound() to MFI BW indicator to alert me a change in bar color following the article here. Unfortunately, the article doesn't have an example code for this type of "compare" indicator. Could someone help and point me to any similar example code or if someone can help to...
[Deleted]
Not sure what I did but now if I try to activate either the indicator or object list, they do not appear but my system locks up just as if they where pulled up someplace. The only way to get out is to cancel the entire program with the Windows task manager. Any ideas. Just noticed someone having...
New Version: MetaTrader 4 Client Terminal Build 217: MQL4: Fixed a compiler error that caused crash in Windows Server 2008 operating system.MQL4: Fixed an error in the FileReadArray() function. When reading array lines, the number of read lines is returned now.MQL4: Changed the calculation algorithm...
[Deleted]
would someone help me go throught the steps needed to copy an expert advisor and make it function ?? thanks John
[Deleted]
built an EA for a new strategy im testing out, and it works really well untill it tries to open a 2nd trade. for some reason the EA will not open a trade after the first one closes, unless the ea is restarted or mt4 is restarted, it doesnt return any errors during the compiling or while its running...