MQL4 and MetaTrader 4 - page 1563

[Deleted]
Before reinventing the wheel.. wonder if there is any existing code that does this: - Check if price has crossed a threshold in the wrong direction - Automatically hedge the position: open an order with the same amount of the existing one in the opposite direction.. Thank you
[Deleted]
This is supposed to be two loops. The first determines if a trade is below an externally set profit. Seems to work. the second loop is supposed to check in the order comments to see if that order number appears and if it does it should not send another counter buy or sell order. Reading of the...
[Deleted]
Hi, I've an EA running on my MT4 but I don't want it to run 24hrs. Can any kind soul please advice how can I modify the EA to turn on only between 07:00GMT and 18:00GMT. Thanks! Cheers!
[Deleted]
Hi, I am looking for a way to easily changing the EA system to test around the conditions. So is there any template or anyone has a template that can let us change a few lines so the conditions(1,2,3, etc) are met depends on different senerio. Also it is easier to change the condition to...
[Deleted]
On the website of the Automated Trading Championship 2008,an article by Rashid Umarov "Zero Returns Diagram "has been published.There is a lot of various approaches to estimation of trading strategyefficiency. You can consider both the operations of one individualExpert Advisor and the trading...
this is my code:I have tried it several times with different conditions.thanks for(cnt=0;cnt 0) { if(Bid-OrderOpenPrice()>MarketInfo(Symbol(),MODE_POINT)*TrailingStop) { if(OrderStopLoss() isar(NULL,15,0.02,0.2,0)) { OrderClose(OrderTicket(),OrderLots(),Ask,3,Violet); // close position return(0); //
[Deleted]
Does anyone know of any simple code that will close all of my orders based on GMT (time?) Thanks, would be much appreciated!
I have added EA's to various active charts but so far have not seen any trades generated ... I can only see the smily face in the top right corner. What should I be looking for to check that the EA is actually working and able to trade? I have also tried to use the Strategy Test Function for a few...
[Deleted]
Dear All, The system I am coding open only one position at a time. This condition is closed later on following a few rules. In order to select this unique open position and apply the closing rules I use the following code: { ticket = OrderSend ( Symbol () , OP_SELL , Lots , Bid , 3 , Bid + StopLoss
[Deleted]
When a currency pair chart is opened…can specific news be displayed on the chart? Such as GBP/USD…all news for the 24 hours forward in RED as indicated on “Forex Factory” or another site as a reference source pertaining to USD and also GBP (this pair is just an example). Thanks, Fred
[Deleted]
Hi, my problem is probably very easy to solve, but i am really new to programming so i still cant solve it. I need my EA to recognize wich of the pending orders he opened already has been triggered and wich not. I need that to make the EA perform different actions on orders still pending and on...
[Deleted]
I want to find a ticket number once in my Init sequence and increment it through the rest of my code when I place orders. Basically I place an order. If there are other orders, I close the order. And decrement that ticket number until the symbol equals " EURUSD ". Other wise I leave the order open
[Deleted]
Books on Forex. With the increased interest in the Forex market, people often ask, what can be read on the laws functioning of the world currency markets. In this regard, spread its list of literature for beginners. Supplement welcome:) Forex for Beginners - A. Kulikov The basis of a book on the...
[Deleted]
Hello, How do I open Buy positions only when the market in goingup and a Down positions when the market is going down? For example, my pilot is going well when I manually switch it to Long only or Short Only but not both. Thanks for your time. rayve
[Deleted]
  help syntax  (3)
dear every one, I am lokking for the function who return the number of lot of a trade with ticket Number 555 I think that it is the function OrderLots but I don`t know use it. thanks in advance
[Deleted]
I am new to coding and am struggling to get started. I have tried for about 7 years to learn VBA, with MS Access databases. I started with the following advisor. extern int CapitalSpread = 50; extern int HedgeValue = 10; extern double RiskMargin = 10; extern double TradeVolume = 0.01; int start() {
[Deleted]
  Help me  (2)
I have a demo account, how can I set Stop Loss and Take Profit, on which prices? When I make an order it's tells me that Buy and sell are disabilitated! Help me
[Deleted]
my EA attach at GPBUSD chat. Ordersend() for GPBUSD is ok. But with EURUSD =>error: "unknow symbol name EURUSD for OrderSend function". ??? Pls help me!!!
[Deleted]
dear every one, I would like explanations about ordersend() function work. why is it necessary to put the ask as parameter in the function for an order buy? Is it not evidend that the currency pair will be buy on ask value automaticaly? thank in advance
[Deleted]
Is there a manual trading competition
[Deleted]
Hello everybody, I have recently came to the following problem. My notebook is completely broken. I fortunately recovered my my data I have a copy of MetaTrader folder with all indicators, EAs and so on. So I tried to migrate my data to another computer. First I installed new MetaTrader and then...
[Deleted]
Hello guru coders, I just discovered a good trading method using stochastic method, but unfortunately i can't code my ea bymyself. So i need someone to help me. You can contact me via e-mail - yemiojes@fastermail.com. thank you
[Deleted]
Just as I thought I was getting a small grasp of MetaTrader. The 'stochsig' array is displayed in the indicator window and in the data window. The 'upbar' and 'dnbar' arrays are not displayed in either window. Data is being entered into the arrays as evidenced by the print statements as the data...
Hi! I'd like to know the last values of Bollinger bands. //+------------------------------------------------------------------+//| Bollinger Bands                                                  |//+------------------------------------------------------------------+int start()  {   int    i,k...
[Deleted]
HellO Everyone How can I restrict or block My clients from login in with the same ID(Login) for multiple times. In simple terms I just want to restrict that the software pops up a message window when someone tries to login with the same ID on other desktop. Regards, Vikesh Parmar
Whats up Everyone! Could someone give me the simple code for entering when price closes above the 5 period EMA and exiting when it closes below? Also... I want it to always be in the market. So when it exits... it immediately enters a Short. I can figure out all the other stuff later... but I...
On the website of the Automated Trading Championship 2008,an article by Mikhail Korolyuk "Be In-Phase" has been published.Mikhail has been trading on equity market since 1995. He is also the creator of one of the first traders' internet resources, Moysha-online. Mr. Korolyuk is the author of...
  OIL on MT4  (1)
In general, what do people think of trading Oil rather than Forex. Does anyone have the right Scripts, Indicators or Expert Advisors for trading Oil on the MT4 Platform. Anyone who is interested in trading Oil please contact me.
Hello, Is it possible to do that? I know how to automatically save the screenshoot and send email in MQL4. But can we combine them? Saving the screenshoot and send it via email automatically? Thanks
[Deleted]
hi every one, I am beginner. I am looking for a simple script who buy a "once" of gold/usd when the spot is at value X-$10 and sell it when it is at value X and buy it again when it go down to X-$10 The script must show the margin used I din`t find it on the web thanks in advance