Expert Advisors and Automated Trading - page 93

To post a new topic, please log in or register
I'm running two similar EA's on the same symbol in a demo account to compare the behavior between them. But it is very difficult to understand the visual comparison because the MT5 join the indications of trade of both EA's in the symbol graph. Someone know how to make a visual comparison easier?
I need an ea that stops other ea if spread is too high.
Hi, I like to know if functions like:HistorySelect(), and HistoryDealGetTicket() are being allowed during backtesting. In other words, does History cache gets filled with the simulated trades?
Hello I designed a robot and I have trouble running it on several pairs at a time ...   can you help me ?
I want to set my TP based on a target % of my account balance. Example: Balance=$100 Lotsize=0.01 EURUSD Target % profit = 0.5% of balance Once I have the $value per point I can then calculate my TP   
  Spread values of bars ? (11   1 2)
hi, functions : CopySpread() and iSpread return the spread value of bars. What's definition of spread for BARs ?!!! (as compared to tick spread) Spread at any tick = Ask - Bid. Ask and Bid can change each tick, and bars are accumulations of ticks. so spread of bar is first spread of ticks of that...
Hello, I am new under MT I use to trade with PRT, I am testing some EA on MT4 and I would like to know how :  - to change trade number label by date ?  - to have more time of test ? Thanks in advance AF
Many traded instruments start trading session not at full hour, e.g. US stocks, some indexes and commodities. In MT4, when the first bar starts for example at 8.30, all subsequent 1H bars will start at 9.30, 10.30 etc.  But there's significant difference with MT5 platform. It starts the first bar at...
Hi there, I am wondering how to figure out the close price and time, when a position was closed by its corresponding stop loss. The picture shows a part of the history. The original position id was 1253268, it contains no entries for profit or loss. The corresponding stop loss is below, 1253269,...
Hi guys... How is it possible to know the ticket number of the new Order after a CloseBy order without the Select function In case of multiple EAs runing on same account, it looks impossible to set a MagicNumber for a new order resulting of a CloseBy function.. Please Help..
Hi, I've been working on a EA for some months and got some very interesting results without optimization. Below is a graph using fixed 0.01 lots from 2012 to 2017 on EURUSD: The problem is that in 2012 there was a situation where my account could have easily reached a margin call (I mean, it reached...
Hello all, I need to calculate the average value of some values inside a vector. Let me explain better: #1 CopyBuffer(funz_RSI,0,0,20,value_RSI) With the above declaration I have the vector value_RSI composed of 20 values. I want to calculate the average value with the first 10 value of value_RSI,...
Hi I need help with coding in EA to 'print margin utilized for symbol'  If I have EAs running on 3 different currency charts, the EA on each of those charts should only print the margin utilized by that chart symbol.  Taking on new orders for that symbol would have EA on its chart to recalculate and...
What is the best Expert Martingale?
OrderOpenTime () is ORDER_TIME_SETUP I already looked at OrderGetInteger () HistoryOrderGetInteger () But it's all confusing.
hi one part of the expert i'm working on has this loop that i have problem making it the loop goes like this :   it opens 10 orders and when all the ten orders are opened it terminates conditions:1- before the loop begins to work the expert opens a buy order if that buy order hits tp the first order...
hi i found an ea here https://www.mql5.com/en/code/12598 but i want it to reopen trade again at original setup on trendline after closing at break even or stop loss until trend line is removed by me.  Also need breakeven.  And partial closure. can anyone do it please
Hi, Although SendMail works very fine when I test it in the Metatrader menu (on my Gmail account), it doesn't work at all on none of my 9 EAs.  How should I approach this error?  Thank you for your support. 
Hi everyone, I am new to Metaeditor. I have programmed one strategy (quite simple) for TradingView, and now I would like to make it automatic. I have been fighting with Metaeditor, but so far no luck in programming it. Could any of you help me in coding it? or at least give me some help so I can do...
I was planning to publish this free EA with the MT4 market, however because it calls user32 DLL, it's not allowed as a market product. So I'm putting it here. Manual Back Tester (MBT) allows discretionary trader to test their strategy with strategy tester using hot keys control entry and exit...
Hi, While reviewing the trades executed last week I've noticed that (apparently) one of my EAs initiated a trade on the Live account (at hours 3.00 on 12.07.18)  but it didn't also re-initiated it on the Strategy tester (that I ran today 15.07.18). It seems that one of the criteria was met on the...
Hi, I need to embed some data about positions I open, inside its comment. then on some other parts of code, need to retrieve the comment of OPEN POSITIONS, and modify each open position based on it's comment data (like it's signal category, it's signal reliability etc.) I know position comment is...
Hi Strategy Tester not working anymore..... I get in MT5 this message: "set mode to math calculations or adjust testing dates" ? Best regards JS
  Presets (3)
Would anyone know why presets on my EA are not loading. When attaching to chart they show up in the window when I load them, but when I press OK the default sets only show up? I wondered if I have set something wrong on MT4 or in the VPS hosting
Hey guys, I am trying to code an EA that takes positions every time the MACD (21, 48, 3) crosses 0. However, this code takes positions when the EMA 21 and EMA 48 cross. I believe my issue is that I incorrectly coded the calculation: EMA 48 - EMA 21. Can anyone please help me solve this issue? I...
I have a simple short question. If I run an expert that work on M1 chart(no need very very accurate , no need low accurate) from 1.1.2017 to 1.2.2017 in real account of a broker, Then I do a backtest 99% on 1.1.2017 to 1.2.2017 (tick data of same broker)  IS THE RESULT SAME by 99% accuracy ? (if no...
I have 2 equations written in my code (actually more but just to keep it simple), both should have exactly the same result. When I tested it though it turned out not to be true because when I did : if(value1==value2){ ....... } The code was not executed. So I decided to Print these two values and...
Hi there guys, I'm new to all this and I've been doing okay recently but I always been thinking of something exists (if it doesn't then I'd be willing to pay for it to make it a thing at some point) but basically I want an EA that has a range for profit so imagine if I want whatever currency to hit...
When I cancel the Server during the month,  can I restart it within the same month without paying again for the same month ?  How do I know when there is no left-over EA in the VPS when I clear all EAs ?
Hello, I'm trying to automatically take screenshots of charts that have Indicators on them but sometimes the indicator windows are empty. I'm guessing it is because the Expert Advisor tries to capture the image the same moment the Indicator is redrawn. For example the two screenshots below were...