Download MetaTrader 5

MQL4 and MetaTrader 4 - page 921

To post a new topic, please log in or register
Hi, I use this code to send a limit order (for some unknown reason I have to use a stop order to get it to work as I expected a limit order would do, dunno why....).  But the problem is that even though I've hardwired Type=4 it sends one stop order, and then one market order. Why?? It appares in...
i can get my Ea to do this in these dates but hard to complete upto the present.
What does this line of code do: string Market_Price = DoubleToStr(Bid, Digits); here is the full program: //+------------------------------------------------------------------+ //| Magnified Market Price.mq4 ver1.4 by Habeeb |...
Hello Guys, I have Create a simple indicator which shows a moving average on OsMa indicator everything works fine, but when i want to use it from an EA The backtesting Speed's is too slow I call it from EA like this OSMAmain=iCustom(NULL,0,"OsMA_SIGNAL",FastEMA,SlowEMA,SignalSMA,MAPeriod,MAMethod,0...
I am cannot come to a conclusive strategy regards error handling - especially OrderClose(). For sure, an order with a S/L will eventually close, but what about early closure via EA decision ? Not attempting to ruffle your feathers ;/ but most code seen is hard pressed to have any error checking,...
Hello, I noticed a new MT chart loads 2048 bars by default. My expert needs 2 complete days or 2 * 1440 = 2880 bars on a M1 chart. Can the expert force MT to load more bars?
When we are on specific Chart if we want to c more history bar usually we just simply press HOME button, metatrader terminal will try to request more data to view. I have an EA, sometimes EA need more historical bar from the terminal. How to force the metatrader terminal to get the history bar from...
sam
Hi, I want to know if someone have or can make a script who can send mutiples order at the same time. My strategy use several target profit, so I need a script which can duplicate several times the level of entry and stop loss but with differents takes profits. The better for me is not to have...
Hi, anyone knows how the files/messages in the mailbox folder are encoded? best regards
can anyone give me a few pointers for this please thank you
hi, i have a problem with converting Orderprofit() into Pips. I have tried the following code : OrderProfit()/OrderLots()/MarketInfo(OrderSymbol(),MODE_TICKVALUE) with OrderCommission() is 0 the order for all currency-pairs is a Long-position Backtesting shows this results : AUDUSD seems to...
I run into the strangest situation where trend lines can are not deleted – and there is no error code. Here’s a 35 lines program (indicator) that creates 20 simple trendlines. In the deinit() section it delete all of them – but only half are actually deleted. I would be grateful if someone can tell...
hii guys----only a suggest- i am trying my ea but i am thinking to insert a new possibility. i need to stop the program after a particular time .....for example......55 sec. how can i do?? i have tried with " timeseconds(orderopentime() ) == 55 ......but it doesnt go...
I have try conventional way to trade it show good profit..look at platform: www.tadawulfx.com Login : 999355967 Password : ib4nkoy 3k to 14k in 2 months interested to know the secret join me by email lansera@yahoo.com
Hello I'm writing my first EA and it includes and SMA. If it crosses, I just want it to close the old order(if there is one) and open the new order in the right direction. I tested it and improved it, but the EA opens the new position and doesn't close the old one. Here my codes: The one to close...
Greetings, I have an idea for an indicator and am hoping I can findsome suggestions here on how to build it. I have gotten very useful help in the past (thanks gordon) and look forward to peoples input. What I want to do is create an indicator that will plot theslope of 2 or 3 different length...
Hello Folks and Gurus of all kind, Here are the elements to use for figuring out this problem. Working on an EA 30 minute timeframe An ATR(20), (calculated on 20 bars) For grins and giggles, we will create a sell market order within the 05.30hr According to MQL, at this present time, this 05.30hr...
I looked through the documentation. no luck...
Ничего не понимаю в этом деле, но такой был мне ответ, когда я пожаловался, что Опера в некоторых темах на этом сайте вместо картинок в новом окне открывает кракозябры. Некритично, но неприятно. Поправьте, если можно.
Hello looking for simple EA with 2 EMA crossing with TP/SL /TRAILING STOP/LOT SIZE anyone can help ??
I am interested in the MT4 Java API and ready to pay for it. What price ? Is-it possible to test it ? I am working on a trading software written in Java and would like to pass order automatically to a Broker compatible with MT4
Hi I write a indicator how show me the value ( close – open ) for all symbols (currencies) In OBJ_LABEL What code I set for only the big value will displayed in chart for moment like 2 seconds till there is a others bigger values come up to in this 2 seconds Thank you dears
Not sure if this is even possible but I would like to draw the circle in the following code in the background : SetIndexBuffer(0,ExtUpFractalsBuffer); SetIndexStyle(0,DRAW_ARROW); SetIndexArrow(0,161); ObjectSet(0,OBJPROP_BACK,True); Well this did not work .. Any idea how I can make this work ??...
Hello, I am interested in work with the investment companies, brokers or large investors. I offer management of means from 50 000 euros and more. Itself 11 years work in the market. I am the professional programmer and the trader. It is ready to give reports on work on managements of accounts from 3...
Hello Every one im trying to add Moving Average to OsMa Indicator: What's wrong with that? #property  copyright "Copyright © 2004, MetaQuotes Software Corp."#property  link      "http://www.metaquotes.net/"//---- indicator settings#property  indicator_separate_window#property  indicator_buffers...
MQL5 YOU SONS OF CHEAP 5 DOLLAR BITCHEZ
HI,THERE LOOKING FOR AN EA PROGRAMMER WHO LIVES IN GERMANY HAMBURG..GOOD PAY SINCERELY AMBITIONZ.
I ussualy using this to manage my EA daily, setting "first" for balance before start, "over" for target plus, and "under" for minimal equity reach. How to change it to automatic, so i don't have to change it every day? example : first = 200, over = 20, under = 20, reach the target 20 so next day...
I would like MT4 to email me when it makes an order. Then when it closes it show in the email the profit/loss and the balance. How do i add that to my EA?
  again q & a! (1)
if (Hour() >=0 && Minute()==23) { if (orderstotal() <=1) { if (IsTradeAllowed()==true) { ..................order pending!!!----buy && sell stop } } } ////////////////////////////////////////////////// if (Hour() >=0 && Minute()==26 ) /// if current time is everhour everyminute 26' order open close....
Just wondering if anyone has used the Expert Advisor Lab on Vantage FX website?