Download MetaTrader 5

MQL4 and MetaTrader 4 - page 979

To post a new topic, please log in or register
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...
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;...
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...
Hi, I am looking for a forex trading guide and I found some forex training. Please check it and suggest me more. Thanks, Greg
Hello, I'm new to this forum so hello to all!! I was hoping to get some help with my MT4 platform - I have 2 computer screens and a while back my Dad decided to remove one without asking me first. After struggling to revert to one screen I reconnected a different screen and started up the MT4...
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...
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?
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/++?
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...
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...
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
Hallo every body, my name is yusuf from indonesian. I am create indicator but idon't know create Expert advisor from my indicator. Can you help me?. Please...i am attach my indicator and please make Experd Advisor... If you can create, pleasesent to my e-mail : yusufbrb@yahoo.com... Thanks very much
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...
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....
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 ?
Francois Tremblay
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?
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...
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
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 ?...
This alert seems to sound constantly even when price is above the TENKANSEN it still sets it to 0. Is the init function being rerun? //+------------------------------------------------------------------+//|                                       AlertWhenHitsTenkansen.mq4...
Hello, I use the following code on a EURUSD chart but the condition never becomes true. What am I doing wrong? if (Symbol() == "EURUSDm" || Symbol() == "EURUSD") { MagicNumber = MagicNumber + 11; inst="EURUSD"; Print("here2"); } -Mike
Pls i have a strategy which i use in my trading and it works well and i will like to put in in a customise indicator. Am not a programmer but i have started learning from this site. This is how my strategy goes. close of one to fifth candlestick and divided by five if the result is lesser than the...
  brand new (13   1 2)
Hi, this is my first post here, i am after a little advise, i wish to do some backtesting of a strategy i have in mind, is using this mql to write an advisor the best way to do it, or should i be looking in a different direction? thanks in advance geoff
hi, im looking for a good calendar where i can see when stock market holidays are. does anybody know a good one? best regards, mike
hi, is it possible to get NYSE tick indicator on MT4 platform ? thanks kovas
Hi, I wanted to get an alert if the current price touches the cahnnel object which I've created with the Channel Equidistant Tool of MT4. In case if I use a Trendline instead it is clear that I get the current Price value by using the ObjectGetValueByShift() function on the current Bar, but in...