MQL4 and MetaTrader 4 - page 1393

[Deleted]
Hi, I want my E.A to stop if my equty drops a fixed percent comparing the starting balance. How can I do that? If you provide me such a code that would be better...
[Deleted]
hi i have problem in EA. in program that use for currency(gbpusd) i want an information from (gbpchf) chart like" iopen("gbpchf",PERIOD_H4,0)" but this order just is doing at order (print()) buty in order (if()) is not doing, why??????? please help me
Hi All, I am a newbi so please be patient, I have been trying to get the colour of a Heiken Ashi candle and have it working up to a point. The trouble is that I dont get enough candles of the correct colour. What I did was to write the indicator values for a set of candles out to a file and I find...
Hi all, I am newbie for MQL4. I would like to program Exper Advisor with condition as follow: 1. If RSI(14) > 70 --> Sell 2. If RSI(14) < 30 --> Buy Please help me. Thanks
[Deleted]
Hello everybody ive read everywhere that alpari data would be the best for backtesting, and finding even better data seems quite difficult. problem is, ive only found the link to the databank yesterday, and it says its temporarily unavailable... so, my question is: if it is legal (i cant think of...
Hi I used to use the long winded method of importing alpari data and period converting to run backtests http://alansforexblog.com/2008/02/27/how-to-achieve-90-modeling-quality-when-testing-expert-advisors/ Now I see you can just click download from MT4 here http://alansforexblog...
[Deleted]
hi, i'm new to forex trading and to this forum. right now i'm studying technical analysis while forward testing FAPturbo on 15 minute charts on metatrader4 build 225. for the last two weeks i have wanted to backtest & optimize the forex robot on the strategy center - i follow the instructions...
I am just starting to code and I have review several examples of operational EA. However nothing that I have reviewed seem to help me with this problem. Based on indicators I am seeing a possible trade. I would like to keep the possibility of the trade open for a certain number of intervals....
Hi, I recently had a bad experience with unadequate MM... Now I'm going to do it RIGHT. Goal: Find lot size for a given true risk ( in $ or % of Balance) so I know beforehand how many dollars (or %) will be lost if the worst happends Given: -Balance -Leverage -SL (fixed) E.g. Say I have an account...
  The miracles continue!  (79   1 2 3 4 5 ... 7 8)
I was debugging the TS on the terminal downloaded from the MQ server, decided to do a parallel test on another part of the history, and put the TS on another terminal downloaded from the Alpari server. The TS started to work differently. For the sake of purity of the experiment I took the same
[Deleted]
i have an EA that sometime on monday when market open in gap give me a proble like this: exemple -on friday i have a long from 1.46 and a pending long from 1.4580 not filled yet and both have target at 1.47. -on monday morning market open at 1.48 an my "great broker close my posistion at 1.47 but...
[Deleted]
  SF Trend channel  (1)
I have been using this indicator that I downloaded from here. Works great. I am having trouble with it though. I have changed Indicator to name the the channel lines to "sellstop" and "buystop", and then using the "TrendMeLeaveMe" EA. Works pretty well but runs into a problem quite often. The trend...
[Deleted]
I cannot seem to get my head around the actual difference between Return; and Return(0); I assume they each take me to a differnt point of the program.? The book does not seem to make it clear for me. Many thanks guys for all your help
[Deleted]
Hi, Does anyone know how I can add a new level to a Fibo object? Thank you.
[Deleted]
I'm not sure how many are familiar with the linear regression tool found here: 'Linear Regression Channel' I'm having a brain fart and can't wrap my brain around how to do this, but I want to describe the concept I am considering implementing. The linear regression tool is an excellent channeling...
[Deleted]
i want to close an order in EA with if condition eg present=Bid; BP=OrderOpenPrice(); SL=BP-TrailingStop*Point; // Order stop Alert("stoploss==",SL); if (NormalizeDouble(SL,Digits)== // If it is equal than we...
[Deleted]
Strategy Tester Report MA-New Monex-Demo (Build 225) SymbolGBPUSD (Great Britain Pound vs US Dollar)Period1 Hour (H1) 2009.01.02 00:00 - 2009.08.28 22:00 (2009.01.01 - 2009.08.31)ModelEvery tick (the most precise method based on all available least timeframes)ParametersLots=1; MAP1=10; MAP2=20;...
[Deleted]
Hello everybody, I was working on indicators that are based on statistical concepts. I cerated two indicators. First one is very simple ZigZag which bases on price movement. It only have one parameter MinMove whitch stands for minimal movment that will be considered as a swig. Defalult value is 2...
[Deleted]
Hi, I am looking for a forex trading guide and I found some forex training. Please check it and suggest me more. Thanks, Greg
[Deleted]
Hello, friends, Can I ask if anyone knows how to draw objects in advance of the chart, which is drawing objects in front of the "0" bar as shown in the attached figure. Say, for example, if I used the command line: ObjectCreate("ArrowTest", OBJ_ARROW, 0, Time[0], High[0]); How would you...
[Deleted]
I need to code a program in C or Delphi that can capture MT4 price ticks while MT4 is running. Can someone direct me to a resource or an example of where to start?
[Deleted]
Hey guys, I was just wondering, how close to C/++ is MQL4? I have no programming experience but I'm looking to get an EA coded. Would it be worth calling a freelance computer programmer specializing in C/++?
[Deleted]
I presently have 3 open trades (1 lot each) by my EA at different prices but when I try to manually change the stop loss for one of the trades (by right-clicking the trade and selecting "modify or delete order"), the stop losses of all trades (with different order numbers) changed at the same time....
I guess the answer is probably no, but just to be sure - do u need to normalize any of the following: - predefined variables Ask, Bid - value returned from MarketInfo(Symbol(), MODE_BID) or MarketInfo(Symbol(), MODE_ASK) - value returned from OrderOpenPrice(), OrderTakeProfit() and similar...
[Deleted]
i need an alert that could tell me when to enter a trade when these 2 conditions are met: stochastic below level 30 and price below the daily pivot. These 2 conditions must be met at the same time i think about this solution it should be right? static datetime LastClosedBar =D'1980.01.1';
[Deleted]
Hi is possible to say like 5 tick consecutive in one diretion or more, how i can do that?? woth bid price?? es 1.4000..1.4001.1.4002 1.4003 1.4004 not like this 1.4000..1.4001 1.4002 1.4003 1.4002 1.4003
Hi evryone! I'm a starting programmer in MT.. and to be sincere I'm waiting the new MT 5 lanuage to better learn.. so .. how to say.. I'm pretty Anyhow I'm testing one EA I'm trying to make, but I can't figure how to have these two functions: 1) have the total profit of ALL the positions opened, may...
[Deleted]
Hi, Would anyone kindly be able to help me out on programing the following money mgmt strategy, please ? I took it from the following article: www.forexhound.com/article.cfm?articleID=104763 //------------------------------------------------------------------------------------------------------//...
I want to share this indicator breakout from panca eagle and i test that profitable, but you can use this my strategy to open Buy or Sell That system and I hope you can create Expert Advisor for that system. I hope we can take profit with That system Thank
Hi, I'm having some problems with my ISP and sometimes the internet connection fails. Using the isConnected() command it's possible to find is the internet connection is alive or not, but is the connection is down, there are no incoming ticks and therefore the start() section/code isn't executed....