Expert Advisors and Automated Trading - page 439

I run my EA on a VPS. Today, USDJPY orders closed by the EA at the non-existent price. This is not a small amount. How this happen?    https://www.mql5.com/en/charts/3070874/usdjpy-h1-fbs-inc-this-trade-make-me-loss-how-this-happen 
Hi, everyone.     I'm almost new to mql4 programming but I have been around programming some time in other languajes. I'm trying to code an EA that runs at once several Strategies but I found a problem when coding, as all Strategies use the same program but may have different parameters, when I...
Hi all, I contracted a programmer to code an Ea that failed to work well because the EA was loaded in a folder that was not same location as the folder the developer loads the EA.His MQl4 folder is located under the FBS folder(as attached below) while mine is located under the open data folder of...
I'm coding an EA and I have a margin check within my EA to make sure I have enough margin to enter a trade. But for some reason I always get an insufficient margin, and I have no idea what's wrong. Here is my code: //checks if we can send the order based on margin levels. bool enoughmargin( double
  Beginner Help?  (2)
Hello, sorry to annoy you with beginner questions, but believe me when I say I've tried for 2 days straight using google... I've switched from MQL4 to MQL5, and I'm surprised how hard it is to even have my EA make a trade. Can somebody tell me what I'm doing wrong here: I filled out my "...
void updatePosition(const MqlTradeTransaction& trans, double& iPosition)  {   printTradeTransaction(trans); if(trans.type == TRADE_TRANSACTION_HISTORY_ADD) { printf("TRADE_TRANSACTION_HISTORY_ADD detected"); printf("PositionSelect(Symbol()) result: %d "...
hi, can anybody give me advice on what historical data should i rely on? i have developed simple EA and backtested it on my brokers historical data. Results were not that bad, but i was confused about data i used - M1 chart is only available for 1 month past so i presume M5 is used to calculate...
Hi everyone! I am newbie in 4rum. I want create a EA auto order at fixed time. ex: server: Day 1: 01:00 > EA order buy or sell with SL, TP, size 0.01 If hit SL Day 2: 01:00 > EA order buy or sell with SL, TP, size 0.02 >>> hit TP return Day 1 If hit SL Day 3: 01:00 > EA order buy or sell...
Hello i want that there is stop from 5 minuten after my first alert (repeating), can somehelp me? This is my code where i think i need to put it? if(ArrowsBuy[0] != EMPTY_VALUE)   { if(AlertsOn)      { if (AlertsOnCurrent) int...
  iBand reading?  (6)
I need to test my EA with Strategy Tester. I am using iBands in my EA, but Strategy Tester cannot find that indicator. When I run that script under Demo Account all works well. What I must do for eliminating that obstacle?
Hi guys below is a code for a simple moving average add to chart expert. How would I change the colour of the indicator from the code??? What if I had several indicators such as bollinger bands, momentum in a sub-window and two moving averages what would be the easiest way to change the colour???...
Hi, 3 days I can't use the cloud agents. Is it coming from my own ... ?
I've been learning mql5 & OpenCL for some time. And I met a problem with OpenCL devices in the strategy tester. When I start MetaTrader5 on my PC. I can see the following log message in the "Journal" toolbox: 08:22:15.089    OpenCL    Device #0: CPU Intel(R)...
  Strategy Tester  (3)
Option to show average holding time for trades...where can I find that? regards
//+------------------------------------------------------------------+ //| ExpertMAPSARSizeOptimized.mq5 | //| Copyright 2010, MetaQuotes Software Corp. | //| http://www.mql5.com...
Script has developed some trades together several pairs, each pair a different magic number ?
I'm working on an EA, and I want to compare the current market price to the price from 30 or 90 seconds ago.  Is there a way to get this info from MarketInfo? Or does my EA need to record prices and timestamp them?
Hello. I am just wondering if expert advisors purchased on the marketplace can be transferred between different accounts/brokers on MT4? Thankyou!
[Deleted]
  EA NEEDED  (1)
Hello, I need the following: Open an order at 23:00 end MT4 time depending on that candle whether its bearish or bullish that is if its bearish open a buy order and if its bullish open a sell order. Inputs: Lots, Tp and SL which are presets when the order is activated. 23:00 end means 23:58. I...
  News Trading EA  (11   1 2)
Hi everyone , i'm interested in a news trading EA that has pending order strategies and specified trading period in date ,hours and minutes . I found the one attached below , but it contains many errors and warnings . Any help will be appreciated .
i dont know how to install ea and buy from whom and how it work please explain it
I am looking for a way to get events from other charts during back testing and forward testing. Anyone have any ideas or run into this problem?
Hey there! I just installed the Metatrader4 Build 765 on Windows 7 SP1 64bit system but my EA doesn´t work. I don´t get any kind of alarm from the event manager or anything, it just doesn send the signals. I already added the MT4 to the trust list from my firewall, but it didn´t helped. Is there...
I look for a Expert Advisor for MT4 of an order automatically to the given price opens and closes. (OrderLots, Order Open Price, Order Close) Which EA the can ? Thanks
  Hedging EA  (2)
Hello! So i was sniffing into the freelace for some new trading technuques and i found this one https://www.mql5.com/en/job/21596 anyway I've done it but the problem is that i still have problem with the lotsizes mine goes like 0.05, 0.10, 0.20, 0.40, 0.80, and whenever it hit the 80 thats the...
  Build 1085 error  (1)
Cannot load indicator " Moving average " [4002] This occurs on a newly installed MT5 Build 1085 Reading the text associated with 4002 do not help, talks about some internal error. Have no problem running on another instance of MT5 on Build 1060 All source for expert, includes and libraries are
  Backtesting  (1)
I am trying to do a backtest in an EA, that i just had developed here, but i am not getting any results at all. All the other EA's that i have tried either the ones that come after the installation  of MT4 or downloaded ones work just fine and i am getting results, reports etc. Anyone knows what...
I was trying to download the Roman5 Randomize EA to see the code; however, I don't see any link or such to download.  Am I missing something?
When I compile an EA that I try to develop I got this warning: return value of 'OrderDelete' should be checked  this Error message came from this function: int DeletePendingOrders(int Magic){int total  = OrdersTotal(); for (int cnt = total - 1; cnt >= 0; cnt--){ if(OrderSelect(cnt,SELECT_BY_POS...
Hello. I was surprise to see how "Comment" was written to my question yesterday about YTD% & Points changed . May I ask if (1) "Comment" line would replace my "DrawLabels" or "DrawInfos" at the right side of my chart which consists 30 lines (2) how can I make it to more than one line - horizontally