MQL4 and MetaTrader 4 - page 1290

To post a new topic, please log in or register
It just popped into my head!!! Is it possible to include option on MT to select a directory for experts, profiles,templates etc. This way, if several copies of MT are running, there is no needto copy and recopy and constantly synchronize experts, indicators, profiles, etc.One can even run the same...
the following: Print(WindowExpertName()," ",WindowFind(WindowExpertName())); returns: 2007.03.06 13:34:52 MACD_Colored_v102 EURUSD,H4: MACD_Colored_v102 -1 Where is a window number????
My EA Does Not Work , Some time it stop working untill I comile it again or removeit and attach it again can any one know how can i solve this problem ? Thank you
Please help me with this problem: It looks like the slippage value I am using for a BUYSTOP trade is missed by 2pips: BUYSTOP is at 1.9737 SLIPPAGE is 2 pips (see #define SLIPPAGE_ON_ENTER) EXECUTION happens at 1.9734. , which is not Ask+2pips but Ask+4pips I am running test in "Open Prices...
I am looking for a code for a percentage step stop i.e. I have an EA that has a4 percentage profit stop I would like then for a 1% step to kick in so every 1%the stop is moved. I have been trying to do this myself but I'm not having muchluck. Cheers
Is there a way to do this? I am a mql4 newbie. I have a system that trades on the M15, H1 and H4 that I want to automate. Runson the M15 but I want it to take into account indicator data from the H1 and H4time frames. Any help or direction appreciated. Luperon
Hello all, This is my first post so be gentle. After much (really, alot) of experimenting, something that someone said struckme. The biggest trade movements in a single day are on pairs where the USD is involved.The type of movements we are talking about are on the first friday of each month,and...
  FF Calendar Indicator for MT (72   1 2 3 4 5 ... 7 8)
FF Calendar Indicator for MT from forexfactory. http://www.forexfactory.com/showthread.php?t=19293
I'm writig an EA. This EA open a short position but i want to put automaticallystoploss level above 50 pip open price. How can i do it? I didn't find any help about in the forum.
Please help me express my variable. My EA (for backtesting) is attached to the 1 munute chart. I would like to work with a variable called "MyCCI". MyCCI = ExponencialMovingAverage(5) of CCI(13) of the 15 Minutes chart. Something like this: EMA(CCI(13),5) on M15. So, the values of my variable...
Good day all, I'm trying to figure out a way to get a value for where the Margin call would happen.I can calculate the margin level light this: Margin_level = ((AccountEquity()/AccountMargin())*100); but I want to know if there is an easy way to find out, if the trades in a buydrop till the...
Where are stored (all) the settings of: MetaTradre > Tools > Options None file was updated in "C:\Program Files\MetaTrader 4" (and sub folders)after changing some settings !! Thanks
I can't figure out why my if statement isn't working properly. Here is the segmentin question: Print("1-last_sar = ", last_sar, " current_SAR = ", current_SAR); if(last_sar != current_SAR) { Print("2-last_sar = ", last_sar, " current_SAR = ", current_SAR); mod_results = OrderModify(ticket,0...
I have just downloaded the MACD Sample program and ran it through the strategy tester.I used it on an interval of M1 over a period of 1 day (yesterday 30/1/2007) withthe following parameters. Take profit = 20 Lots = 0.1 Trailing Stop = 30 MACD Open level = 3 MACD Close level = 2 MA Trend...
Why when I start EA in tester with parameters for PTT less then 7 I have error ? I was tested this short code for USDJPY.
Dear Coders, What's the major difference between control point and every ticket? I am not veryclear at the information given at the help file of MT4. I collected some eas fromother forums and backtest them, some yield same nasty result on control pointsand everuyticket, some however work better on...
Hi there, Let's say I'm trading the GBP/USD, how can I calculate how much euro each pip is?Some goes for all other pairs ... 1 pip = xxxx Euro ??? Seems simple, but can't get it done ... Any help would be much appreciated! Thanks in advance. Greetingz, Koen.
can someone explain MacdCurrent>(MACDOpenLevel*Point) means ? tks
  ObjectCreate (3)
Is there any information available for using this function to create linear regressionand std dev channels? I have succesfully created an object, but when I use ObjectGet to query the deviation, it always returns 1. Help please?
I tried. the answers seem to be NO. Anyone can help?
Hi, Some how my MT4 market watch symbol quote screen has expanded across the wholewidth of MT4 form left to right (its too wide) , before it was only taking up theleft had side of the Mt4 GUI, and coming out 4 inches, so how do I get it backto this position ???
I noticed something weird - if you extend the From/To period, then sometimes youneed to re-run the Expert with "Visual" ON! Otherwise it ignores thefact that the period was extended and only works on the portion of the period whichwas used before. I.e. if you initially test between 1.Oct.2006 and 31...
When there is local function variable initialized example: _localFunction ( intfunction_Variable ){} it is not available to other functions but it's taking space in memory, with everycall of that function, variable is initialized again. My question is does the every call of the function variable...
Anyone got samples using Std Dev objects?
Hi The majority of EA's I saw call OrderSend, without worrying about the sever orthe context being busy. Its true that most EAs in all the examples detects an error and prints a err. messagebut shouldn't the function, which tries to open and order check for these "busy"errors and retry several...
Does file created with csv2fxt.mq4 file still works for tesing ?? I created fxt file with this 'simple csv2fxt' script but every time i run test with tick data option selected, test module ofMT4 replace my original file (yes i have recalculate option unticked). I am not sure what is going wrong....
I want to run optimization of my EA where some parameters vary between Start andStop value and one parameter does not vary. However, I want this one parameterto be different from the default value specified in the code ("extern ...").In my example this as the useable account margin - in my source...
Hello, How can i view the history of a tick by tick chart
Has anyone developed an ea for this system?
  File Problem (4)
In a script I: Open a binary file [ fHandle = FileOpen( FileName, FILE_BIN | FILE_WRITE ) ], write several strings [ FileWriteString( fHandle, string ), several times ] and close the file [ FileClose( fHandle ) ]. I get a message "handle 1 does not exist in FileClose". The file hasbeen written...