MQL4 and MetaTrader 4 - page 1627

[Deleted]
Is there a difference when your backtesting an EA on a mini account as opposed toa standard?
[Deleted]
Hi, My trailing stop only works for sell order but not for buy order. here's the code: for(int i=0; i<OrdersTotal(); i++) { OrderSelect(i,SELECT_BY_POS,MODE_TRADES); if(OrderMagicNumber()==magic || OrderSymbol()==Symbol()) { if(OrderType()<=OP_SELL) {...
[Deleted]
Hello everybody, I want to find the exact time of lowest and highest price in bar. Is it possible? If so how? My second question is how to get details bars of an H1 price bar? I need to getmy current H1 bar decomposed into M5 Bars. How? Could you please help?
[Deleted]
Hi, I would like to create an EA that I could run on multiple currency pairs for thesame account. However, I don't know how to get around the standard 1 order-at-a-timerestriction. Can someone help me with the code to allow me to place multiple concurrentorders (and close them all correctly) on a...
[Deleted]
I'm working on an EA that trade more then one currency and everything is fine withplacing orders, but when i try to close all orders it seems to only close the ordersof the currency the EA is attached to. I use this code: void CloseAll() { int total = OrdersTotal(); for(int cnt = 0; cnt < total;...
I need to write a script that makes testers fuctionallity not for one expert, symbolor timeframe as a bulit-in one but for a set of them. So I need to call user writtenexperts by it name and receive form them threi results. Tell me please how is itpossible to call an expert from a script by name....
Hi there! I'd like to close 3 open positions with the following code, but it closes justthe first position. How can I close all of them? My wrong code: if ********something********** { if (OrderSelect(MyOrderTicket0, SELECT_BY_TICKET)==true) { if (OrderType() == OP_BUY)...
[Deleted]
Can some one provide me a sample code (or guidance) with which i can draw horizontal lines on set of bars. For example for each set of 10 bars I want lower and higher values enveloped by horizontal lies. In case of uptrend, the result will be kind of stairs patters each with width of 10 bars. I have
All of a sudden the text created by the object code shown below does not appearon my bar chart. The objects list properly displays the name as "Objname4" but the descriptioncolumn now displays the word "Label" instead of the msg4 text? The program compiles without error. What must I do to correct...
On the website of the Automated Trading Championship 2007, the article Statistical Report #1 has been published. A month has passed since the contest started. Now we have arich source of materials to be analyzed. The results of multiaspect analysis ofall Participants' equities are given in the first...
[Deleted]
Hi, I am running a same EA on different currency pairs. I wanted only 1 trade openedfor any currency pair at one time. For e.g I would need only 1 trade opened forEURUSD, other opened trades can be of different currency pair but not EURUSD, whenthere is already open trade for this pair. Can any...
[Deleted]
After an efficient method to calulcate average price for given time period (1 day,1 week, 1 month etc). Do I need to use a certain indicator? Cheers!
[Deleted]
  I'm confused  (4)
Can someone please tell me how to do this. I am writing a strategy into code andthe instructions say to have a rsi(8) then add a EMA8 to the rsi and when the rsicrosses the ema take the trade. Ok i know how to do a rsi and a EMA on the priceitself but how do i do an EMA on the rsi in a indicator....
[Deleted]
Hi. I'm really getting up to speed with price action and identifying candle (bar) formations. Has anyone ever composed an indicator that'll spit out an alert when a candle closeswith the same low or high value as it's predecessor(s)? Ideally, I'd like to be able to set a tolerance of up to, say,...
[Deleted]
Indicator line width parameter 2 or 3 (that draw a thicker line) is not appliedinitially after program change and compilation when I return to Terminal. Linewidth is allways "1" after compilation when I return to Terminal. However,the indicator looks fine if I remove it and reinsert it on a chart....
I would like to rename a file (or copy, or move) in the experts\files default mt4working directory, without external custom dlls, and without hard-coding the pathname of the platform. Does anyone has an idea how it can be possible? The simple WinAPI functions doesn't seem to work without full...
[Deleted]
Hello Has anybody managed to control Matlab from MQL expert advisor? I tried it thisway: - I wrote C++ DLL to start Matlab, using Matlab Engine interface. DLL works finewhen called from other C++ programs. - I call my DLL from MQL expert advisor - Matlab starts ok, but exits immediatelyafter the...
[Deleted]
I open a chart for the pair GBP/USD . I have selected 15M. Then I scroll back as much as I can and I can see data as earliest as 22 Feb 2007. How can I see 15M data before this date
  Rhythm EA  (5)
Found this on another website. Strategy and instructions contained within code.
Can anyone tell me how I can get the expert advisor program for the zig zag indicator?
[Deleted]
I would like to setup the chart to highlight with different colors the hours of trading sessions , i.e. I would make the UK session hours as Green and the US trading sessions as blue, etc. thanks
[Deleted]
i want get some data such as iopen,and write to a file,from 2004.1.1-2007.1.1 how can i do this,help i tryed many times but fell.thanks!!
On the website of the Automated Trading Championship 2007, the article Jury Session Record of the 6th of November 2007 has been published. At the session, the Jury discussed disqualification of severalParticipants. Three more Participants dropped out of the competition. The full text of the article...
  icustom problem  (3)
Could some one please help me to find the right string name for this indicator soI can use it in an icustom EA set up
Trying to find examples of how to add simple graphics to the chart window that isdisplayed when backtesting in visual mode. The graphics would be very similar toa custom indicator. I cannot seem to find this info anywhere in the MT4 or MQL4help files. Thanks.
Hello, I'm trying to create an expert which open 2 pending order (buy and sell) on everynew candle. When one of the 2 pending orders get triggered, let say the buystop,and touch it's SL/TP, the other pending order will be deleted. How to do that? If the order closed becauseof it's SL/TP, can MT4...
[Deleted]
MTF = multi time frame indicators double BarCountDownInSec() { double g; g=Time[0]+Period()*60-TimeCurrent(); return(g); } The above function gives the second count down for bars in the current chart. Soif placed on a 5 min chart, it will show second count down for each 5 min bar. Q: How do I...
[Deleted]
Hello all, I wrote what I thought was great EA , and it might still be, but I'm having a bunchof difficulty with Data Center. I'm using version 4 build 221 with InterBank FX.I'm using my EA on USD/JPY 30 minute and when I backtest it to the beginning ofthe year all I get is 48.94% quality! Iv'e...
On the website of the Automated Trading Championship 2007, the article Reporting the Championship: Fifth Week (28 October-4 November) has been published. Five weeks have passed since the contest started. This week,like all preceding ones, made some changes in the Top Ten Expert Advisors. Thistime,...