MQL4 and MetaTrader 4 - page 1127

To post a new topic, please log in or register
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...
I want to add a variable into the . here is the code: extern int wtime=10000 ; wtime = int wtime2; ObjectsDeleteAll(); ObjectCreate("wait_time", OBJ_LABEL, 0, 0, 0);// Creating obj. ObjectSet("wait_time", OBJPROP_CORNER, 4); // Reference corner ObjectSet("wait_time", OBJPROP_XDISTANCE,...
I am looking for someone to help write a simple code for MQ4. I want to create a basic alert that is activated when either of the following conditions are met: Account Equity = Account Balance x 1.03 Account Equity = Account Balance x 0.92 If anyone could help me with this I would really...
I've seen a couple EA's for sale on the net but have any been posted here to allow me to duplicate my trades from my mt4 to another mt4 through the internet? THANKS
  Python DLL (2)
Hi, is there some python DLL in order to connect metatrader and Python ? Thank you very much for your help. UKALGO
I can export live data from my broker (future, stocks, ETF...) to Excel or OpenOfficeCalc, with DDE link. He has very poor graphic tools. Do you think it is possible to import those data in real time into our great and free MT4 ? Thanks :-)
Hi, When an EA is run in Strategy Tester does anyone know where the following code gets its information from? MarketInfo(Symbol(),MODE_STOPLEVEL) I've found that the returned value is always 20 points. The symbol is EURUSDH1. As you can see from the Journal output, the Print operator shows the...
I wrote this function for my program, and am back testing it. Strangely, Orders Total is always equal to zero so that my Take profit doesn't function, even when there are orders open! Can anyone see why Orders Total is always equal to zero when trades are open? int ManualTakeProfit() { Print("Now...
Hello, I'm trying to make an indicator of an indicator. For example with iRSI( string symbol, int timeframe, int period, int applied_price, int shift), instead of using "applied_price" how can I apply the RSI to the values of another indicator? Similarly with iCustom, I'm wondering...
pls can someone help me on this EA i actually am just learning programming from this site but this is my first EA attached it does not open order. pls is anything wrong with it? and if yes pls help me on it
Hi, Can anyone let me know the code to make  only one trade a day. If it has opened a trade then irrespective whether it wins or loses that trade it must not open another trade. Many thanks How to code?...please help...
  EA Question (2)
Could iLowest give me the lowest point in the last 10 bars? Can I specify how many bars to check? Could iHighest give me the highest point in the last 10 bars? Can I specify how many bars to check? If I wanted find the momentum on a candle, ex: check 3 bars to see if the movement went up/down 10...
I have installed and attached to a graph, given it an inital deposit size. The program has been running 1 week, and I see no change. The 'experts' have been enabled.. What am I missing? anxious to get analysis going, thanks, chuck
I'm creating an EA which defines certain parameters / variables at Init(). When I started creating it, I was under the impression that Init() would only run when I first drag / enable the EA on a chart. Of course, I've read the manual which says: "In Expert Advisors the special function init() is...
Hello! I've tried to knock together a quick lot calc that takes the the current bar High/Low difference and divides it against 3% of your free margin.. However i'm getting unexpected results & I cant seem to work out why... It would seem that the Bid-lo & hi-Bid return results with many 0s in the...
It's Scalping in a SCAM broker... http://danielvc.mt4stats.com My dream is some day turn it true in my account :D I think that is the dream of all of us. Best regards, Dan
A very magical technical indicators you seen it? Ask you to seize the opportunity, right? I was in China, please contact me.QQ574012776;13313625412 Liu
Hi I have used this to build an EA but keep comming up with Trade Context Busy and Old tick http://sufx.core.t3-ism.net/ExpertAdvisorBuilder/ below is part of the template that is used but where does the code go that is contained in this article 'Error 146 ("Trade context busy") and How to Deal with...
Hi, I need someone to code for me, PM me please.
Hello, I am a software developer that is offering my service for those that may be having trouble writing EA's. I have been a software developer for 14 years and write in all variants of the C language (C/C++, C#), JAVA, SQL, etc. I have written EA's based on indicators and price action. Let me...