MQL4 and MetaTrader 4 - page 1394

[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....
[Deleted]
string str1; //( is default the str1 is Null or "") //**********str1 will change during the process //do something change str1 //end //check str1 if(str1==NULL) //this will report an ERROR { //........ } please tell me how to know is str1 an null
[Deleted]
Hi all, When I'm trying to use the following indicator in an EA via the following code double Chaikin = iCustom(NULL, 0, "Chaikins Volatility_Kalenzo", iChaikinPeriod, iChaikinMaPeriod, iChaikinBarsToCount,0, 1); I got an zero divide error from this indicator. I tried to fix the problem without...
Do any functions exist in MQL4 for finding the Hi/Lo/Open/Close based on time instead of bar index? Ie, if I want to know the hi from 13:25 but I don't know how many bars ago that was, how can I find out?
[Deleted]
Hi, Please,any one can tell me why my code below executes only sell orders while gives me error 0 and 130 for buy orders? and how can I fix this problem? Thanks //+------------------------------------------------------------------+ //| Ali 3.mq4...
[Deleted]
hi everyone, this is my first post at mql4.com I have a problem with expiration in OrderSend function . I want to set and expiration time for and hour . but I don't know how to set it . I mean I want to know the format that should be used in expiration . thanks
[Deleted]
I've read the limitations on stoploss levels for opening orders and I can succesfully open orders from an EA, but I have a script which I want to drop on a chart to reverse the single existing position to opposite side and it still fails to work. Can anyone try and help me to resolve the issue ?...