Expert Advisors and Automated Trading - page 281

Hi all, I am trying to turn the "Shepherd Harmonic Pattern Indicator" into an EA. The developer has provided the following icustom codes, below. Can anyone point me in the right direction on where to start? Thank you double buy_signal=iCustom(NULL,0,"Market\\Shepherd_Harmonic_Patterns",0,0);...
Hello, I am trying to make a simple panel that will allow me to see the open trades taken today, but I can't seem to find code to do this. How can I determine the day a trade was opened, assuming it is still an open trade and in the terminal. I know I can use OrderOpenTime() to get the full...
How can I get real time economic date releases into my e.a .I only need to get the actual value when released for example the actual value for USD NFP.Any help with that?
as the pic, 6 trades,how to get the chart of every trade? how to see the most loss ? before using it in real trading ,how to make sure it will not go wrong in reality? thanks a lot!
how to make sure that my robot can only be used on one trading account?
Hi, My plan is join an Forex Prop Trader which use MT4, without EX support, and send order via a EA that I have on MT5. I don't know if I can use signals for that. I wish i could use another way to copy all the trades with slow delay. I have no problem requesting an job, i just need to know how it...
Hi guys I am trying to find a way to programmatically  re-initialise all of the active charts. What I tried is to write a loop that goes through all the active charts and change the TF to M1 and back to its previous TF. void InitialiseActiveCharts(){   long currChart,prevChart=ChartFirst();    int...
Hi guys, im trying to develop my EA. Im racing this problem: id set up moving everags is the same subwindow of Oscillator Stochastic , how Can i check if MA is higher then Stochastic level 90? Otherside, how can i get the value of the stochastic"'s level? Thank you in advance
test on EURUSD,H1 (netting)log files size exceeded 2095 MB, test terminated 2016.04.05 09:00:01 failed instant sell 0.01 EURUSD at 1.13854 [Invalid volume] 2016.04.05 09:00:01 failed instant buy 0.01 USDCHF at 0.95917 [Invalid volume] 2016.04.05 09:00:01 failed instant sell 0.01 EURUSD at 1...
Hello again mql5 community! Im back with another question im hoping someone has the answer for. I am trying to make a "scanForOrderModify" function that will add SL and TP when a BUYSTOP or SELLSTOP order is activated. This being my first time using pending orders instead of just market orders.......
Can we operate Terminal alerts set/get by mql4? I'm not talking abou this: https://docs.mql4.com/common/alert Talking about this which we can do on chart by right clikc on in tab "Alerts". If not, I'm sugest to do this. Need some scripts to delete all, I often have trash here or want some managment...
@MetaQuotes Software Corp. There is many cases that I want see 1.0000 or 1.0 in in IndicatorDigits and Comment but MT4/5 doing NormalizeDouble that omitting zero.
I'm running some tests and the stop loss value keeps changing. Why does it do this? Is it meant to? So when I check through a test report there are some much greater losses on individual trades than the S/L should permit......
[Deleted]
I have a custom symbol based on D1 Nasdaq data from Yahoo finances (exported MT5 data here: https://1drv.ms/u/s!AkWFtUMYnskYjqkzdhvArjI2aLlsPA). The issue is that the Strategy Tester MN1 chart is different from the terminal MN1 and hence my signals activate a little differently and more importantly...
I'm trying to move my VPS from an MT5 account to an MT4 account with the same broker. I tried going to the VPS list and selecting move from the settings menu but it doesn's seem to be working. Am I doing something wrong or is this allowed?
Hello, I have a problem with a function for partial order close, with a loop in it. Outside the loop i set a variable closed_volume =0, so the idea is to store the amount of closed lots , so that it may equal the previously set lot size for close - vlm .But what happens is when i run the loop once,...
When I click on the signal's subscribe button, it launches MT4 on my PC. So, the whole subscription process is initiated on my PC. Will the signal immediately go live on my PC? I'm guessing not. I presume at this point, I can 'subscribe' to a VPS (it will be the one here at MQL5.com). And it will...
I wonder if there is a problem. What can I do to get the full 10? With regards, Martin
Please can some add close % of lots when profit hits a certain target in pips to this EA! Struggling to find out how to do it. Code Below //+------------------------------------------------------------------+//| EM.mq4 |//|...
Hello, I have a strategy in which I have a few filters I am using, namely OsMA, Stochastic , RSI and CCI. Apart from the parameters of each indicator, I have on and off inputs for each one of them: input bool use_osma= true ; input bool use_sto = true ; input bool use_rsi = true ; input bool use_cci
[Deleted]
Hi Guys, I'm using MT4 Build 1090, Here's the problem: this is the default EA installed with the software, it will Open Short (SELL) trade when the price is is LOW! and Close Short when the price is HIGH, thereby trading a loss.. irrespective of the parameters used. It does the same when trading
HI all. Just recently converted to MT5 to use multi-pair strategies. Currently trying to write a currency strength meter indicator that looks at 28 pairs. At present, the only way I can make Bars("XXXYYY",PERIOD_CURRENT) work across all 28 pairs is to open all the relevant charts using...
Is there a plugin to calculate the size of the position automatically using the One Click trading or an input via the keyboard (or from a signal)? I manage multiple accounts with different risk, in each one I have to see the lot manually and it makes me lose a lot of time (I do it from an Excel...
Trying to get this EA to take a % of order once it hits a certain profit, all it seems to do is to take the Pips Above Breakeven as set and nothing else, any help would be greatly appreciated Thanks #property copyright ""#define RUNS 20#define SLEEP 1000enum ENUM_TIMEFRAMES_MY  {   //None    = -1,...
I have a question, as I am quite new to all this. I am trying to back test an EA before I put some money into a real account to open, however in running the Strategy Tester with the EA it won't open any lots, saying that 'Lot is less than the minimum. Order will open with minimum lot.' However, I...
We have tons of EA's around, but never with a smart SL and TP. My point is simple. When we place a trade, to place your SL you'll do one of these two options: Use support and resistant previews levels, or.... chose a number of candle (e.g. the last 5 or 10 candles) and pick the lower low (in case of...
Hello Everyone. I'm new to MQL5 but there's something I wanted to create as a very basic rule, to then test as an automatic trade robot in a particular currency or stock. the code is quite simple and in a way i can make it in excel and sql: (assuming I'm only considering this to be executed at every...
Hello, after updating Metratrader for build 1940, one of my thefts that uses the following includes; #include <MT4Orders.mqh> #include <Math \ Fuzzy \ MamdaniFuzzySystem.mqh> #include <Math \ Stat \ Uniform .mqh> #include <Math \ Alglib \ dataanalysis.mqh> started to return a strange double
Hello, Can anyone help me please complete uploading my EA, my problem is the last part which is automatic validation. Error says "there are no trading operations" but it is not a trading EA. only my EA is for drawing horizontal line or ray. Does anyone know what to do?  Thanks
Hi, Backtesting via the Strategy Tester reports the following drawdown variables: - Balance Drawdown Maximal - Balance Drawdown Relative - Equity Drawdown Maximal - Equity Drawdown Relative If I want to avoid a margin call of 50%, which indicator should I pay attention to? Thanks