MQL4 and MetaTrader 4 - page 1667

Basically I would like to reinitialize one variable if the user changes the inputsvalues. I think that if the user changes the input, the EA is not reloaded but just theinputs are reloaded. Are also the EA's globlal variables reinitialised or is there anything that isrun when the inputs are...
[Deleted]
Hi, everyone!! I wish your all success in FX market!! This is my test code in Expert Adviser. I expected the results like this. ..................... 2007.02.15 00:00,4996 2007.02.15 04:00,4997 2007.02.15 08:00,4998 2007.02.15 12:00,4999 2007.02.15 16:00,5000 But, I couldn't get this.....
After reading the article on Modes of Modeling ('Strategy Tester: Modes of Modeling during Testing') there's still several things which are not clear. Could somebody from the metatraderteam explain please whether this is the expected behaviour of the tester: I have the following problem - I am...
[Deleted]
I am frustrated with coding on MT4. iBarShift has serious bugs with it... for example.. iBarShift(GBPUSD,1,Time[1],false); //on 1H TF gives an output of 43 iBarShift(USDCHF,1,Time[1],false);//gives an output of 40 All I am asking for is 1 hour without it missing bars! Its would be a miracle to...
[Deleted]
Hi Everyone, First post here so be gentle. I've been looking at FXGame recently but in the lastweek have come over to MetaTrader to have a look around. I've created the EA below, but, here's my problem. A ticket is created, after which a trailing stop is added. Trailing Stops onlycome into...
[Deleted]
Hello, Sorry for such a noob question. I downloaded a few indicators from the Code Base but don't understand the protocol to import them into MetaTrader. Can someone please explain as I didn't understand the help file either. Thank you
[Deleted]
Hi, has someone an installation instruction of MetaTrader on a linux virtual privateserver. Maybe someone is interested to config/install metatrader on a vps for smallmoney?
[Deleted]
What is the most accurate way to Backtest using MT4 (BUILD 202)?? Every Tick, Control Points, or Open Prices Only?? Also how accurate is it? Doesit depend on the broker?? I use Interbank FX.
Hi All, I'm working on Back Testing of my EA. I realised that the tester doesn't work theway I expected. I describe: I am back-testing an EA on EURUSD, M1, day of 2007.01.02 I use a code to get information about the datas of the bar at the time of 17 hours55 minutes. if (Hour() == 17 && Minute()...
[Deleted]
Hi there, I managed to draw a trendline on my chart (well, let my EA draw one of course :)).But now comes the thing I actually need to know: how can I find out when the pricecrosses the trendline I drew? For example: I connected the highs during the last10 candles forming a resistance line. How can...
  This EA needs repair  (13   1 2)
This EA was coded to the following criteria: (see several posts below) The system simply buys and/or sells at a certain time of day (GMT), and either takes a profit or is stopped out. No indicators. 1) Must work on any pair, any timeframe. 2) Needs option for lot size 3) Needs option of buying...
I am looking for EA or EA's to use on live accounts trading from M5 - H4. Must bestable and at present free. I seem to be going round in cricles looking at variousEA's... from Firebird v.65 to Phoenix and 10points3. Has anyone got real experienceof trading for real, if so please get in touch. mark...
[Deleted]
  StochEA v0.1  (8)
This is an EA which me and my brother created for the past few months. its only profitable (actually very) on EUR/USDchart with 4H timeframe. I would be happy if you guys would check it out and comment this EA. Thanx, Tom. Explanations: StochEA2.mq4 - The EA 0.1 version. stochea-eurusd-4h.zip -...
[Deleted]
I have downloaded several indicator's to my MT4 platform and they show up on thecustom indicators list. but when I attach them to the chart nothing happens. Itshows the indicator being there but that is it.  Can someone please assistme in getting these indicators to work Thanks.
Hi: I cut and past one of the indicator from this site and inbed it in my expert. However,I have a difficulty geting it to work. Here is the setup. // -------------------------Property--------------------------------- #property indicator_color1 Blue // Medium at max or min #property...
[Deleted]
From the Expert program I write a variable into a file. handle = FileOpen( "test.text",FILE_WRITE|FILE_BIN); FileWriteInteger(handle,BarsOrderOpen); FileClose(handle);This file is stored as listing.......tester files. With icustom import I bring my indicator into the Expert program. My indicator...
  Bar size expert  (9)
Hello experts, I´ve been trying to develop my own expert but it is harder than I thought. What I want is this: I want the expert to calculate the average bar size of the last 15 periods, ifthe last bar is larger than the average and it is a bull bar then color it in blue,if it is a bear bar...
When you recompile an expert the strategy tester, displays a messages saying that the expert was reloaded due to recompilation. What happens if you you recompile it during a long optimization run? Will it reloadit and start testing the remaining optimization cases with the new, recompiledagent?...
[Deleted]
Strategy Tester ReportCZ_5 & 3 grupos_001_restrivcoes SB_03 Symbol EURUSD (Euro vs US Dollar) Period 5 Minutes (M5) 2006.11.09 02:00 - 2007.02.06 17:05 Parameters TakeProfit=2; StopLoss=20; Lots=4;...
I have been combining trading strategies that requires me to have indicators andobjects together in multiple timeframes. Here is the scenario, I am analyzing chart by putting objects (such as trendlines,arrows and texts) in different timeframes, using visualization tab in propertysetting. I want...
[Deleted]
In a script the following coding can be used to create a Horizontal Line and a labelfor it: ObjectCreate("Label 1",OBJ_HLINE,0,CurTie(),1.3000); ObjectSetText("Label 1","Text of Label",13,"Arial",Black); When the script is attached the above code is executed and places a horizontalat the proper...
I am using some functions to calculate my Closed Profits. Once closed profits = X, I am having the EA shut down all orders and restart. How can I get the closed profits to reset itself to 0? I have tried a few methods, such as getting the EA to reset closeProfit to 0 aswell as getting my...
Hello everybody, Could someone tell/give me a little help ? I need an easy language or best a QL4file with Fourier transform indicator. Many tks in advance for reply.
[Deleted]
Is there any way to download variable values using http protocoll? I think I could use an external DLL to do this but is there any easier way? Thanks, Mark
Hi There, I try to code an EA to buy and sell with Triggerline indecator, It is work ok now but if the order is stoplose or take profit it open new order. I wont EA to open one order for ech condetion, for ex, if triggerline red color open sell and not open new order even stoplose or takeprofit till...
[Deleted]
Just wanted to make histogram solid.. SetIndexStyle(2,DRAW_HISTOGRAM,0,5,Lime); 5 gives a wide bar, so that solid impression is seen on chart. Sometimes it works, sometimes it does not...ANY IDEAS... void SetIndexStyle(int index, int type, int style=EMPTY, int width=EMPTY, color clr=CLR_NONE)Sets...
New MetaTrader 4 Client Terminal Build 202 has been released: Improved balance chart drawing in the detailed trade history report.Fixed Andrews' Pitchfork drawing, in the case of anchoring points close to eachother.Added support of connection via HTTP proxy server when downloading quotes from...
[Deleted]
In MetaTrader, if I hover over a bar on my chart, the status bar gives me informationabout that bar - H, L, O, C, T, etc. Is there a way to programmatically get thatinformation when a user hovers over the bar? For instance, if the user hovers overa bar, I get it's time and display it as a comment in...
Hi All! I'm a beginner MQL4 user. There are lot of little - and smart - things dont know about it. I'm working on an indicator. I found myself face to an interesting thing aboutmultiplication. I show you: This row is works well: MD[pos] = iMA(NULL,0,13,0,0,ABS[pos],pos) ; But this one doesnt...
[Deleted]
I wrote EA to place pending order with expiration 10 days and everything is finewhen I'm testing strategy with tester. But when I put EA on grapfic (demo account),placed order expires the same day at 23:59 with label "expires [good for day]"in Account history. Extract from EA code: int exp;...