Expert Advisors and Automated Trading - page 174

Hello, I'm currently developing support for multiple Symbol experts and I'm facing the following problem: Given the expert is attached to a chart, the documentation for OnTick says: > The NewTick event is generated only for EAs upon receiving a new tick for a symbol of the chart the EA is attached
Hi, I have a few newbie questions about charts. When I look at the chart of an EA I want to buy, on the X axis is shown number of trades. But what is shown on Y axis
  _rdb_The Best Free EA  (3394   1 2 3 4 5 ... 339 340)
Hello all, I open this thread because I create some EA and want to share it for free and unlimited to all of you. I choose TSD forum for place to share it because first time I learn MQL and all my knowlegde about MQL language begin when i read tutorials on this forum. First EA will be discussed is...
Hi all Please could someone assist with the code required to ensure that only one buy/sell order is executed per candle? Many thanks Sam
Hello Friend, I am new to mt5 . I am learning mql5 coding. My EA works like this ----------------------------- indicator RSI(14) Buy = RSI  cross 30 from  bottom Sell = RSI cross 70 from top I need help to develop a code 1)  open buy position if there is any buy signal and close if any sell position...
Hello, I am writing an EA using the MT5 Python library ( https://www.mql5.com/en/docs/integration/python_metatrader5 ) I have a working EA, however some of my trades do not close. It usually fails with the comment "Trade Failed Due to retcode: 10009, with comment: Request executed". This usually
  price close  (2)
I want to add some features in my robot. I just want bar closing code. Is it enough for me to write iclose? how should i define it? can you help me
Hey, I would like to sell an EA on the market. But I have a question, the pannel of the EA show my logo. This logo is a picture and need to be add to the picture folder of MQL5. But how it’s going to work if I want to sell this EA on the MQL5 market ? We only have the possibility to add a .exe Thank
Hello, I want to build a function to determine if we are currently trending or moving in a range. My idea is to compare the close price of the last 100 candles to an EMA Value of the close time. Is the close of the last candle higher or lower than the EMA value of the same sift value? Compare Close
In MT5 strategy test, the FileOpen() function deletes the files.  Why is this happening and what is the solution, please? handle=FileOpen(FileName,FILE_CSV|FILE_READ,',');
Hi Guys, First post here! I am writing an EA using the MT5 Python library. I am writing it directly in my python editor (PyCharm). https://www.mql5.com/en/docs/integration/python_metatrader5 So far, I was able to connect to MT5 and able to send orders as long as they are "ORDER_TIME_GTC". However I
The EA can be optimized but not added to the chart for trading. Does anyone know why
I'm trying to validate my ea. In Automatic Validation state, I'm getting errors as if I'm installing the moving average expert advisor. I also tried uploading the previously accepted code and still got the same error. I guess Automatic validation is trying to test its default moving average ea even
  Broker time  (4)
Hi there community, I'm about to share an advisor through the market. My broker works at GMT+2/+3 and the advisor is intended to work through this server time, so the question is: How could I set the advisor to work properly through an asian or american broker, which server time do those brokers
MqlTradeRequest trequest; MqlTradeResult tresult; trequest.action= TRADE_ACTION_PENDING ; trequest.type= ORDER_TYPE_BUY_STOP_LIMIT ; trequest.volume= 0.2 ; trequest.price=Ask+( 10 ); trequest.sl= 0 ;
#include <WinUser32.mqh>#import "user32.dll"int RegisterWindowMessageW(string lpString);#import //+------------------------------------------------------------------+ //| script program start function | //+------------------------------------------------------------------+ int start() { //---- int
  Adviser Ivan - the best of ilan  (90   1 2 3 4 5 ... 8 9)
The Ilans are already worn to a crisp. And that's why it's time for the Ivan series EA. This is a public attempt to write an EA taking into account the lack of Ilans. Next is going to be
Hello, I'm new to the community but like it thus far! My question is this: can anyone suggest where I may go to find (or have created) code for an Inside candle strategy? I see on the tutorials how to set up Bullish and Bearish engulfing strategies, but IC is kind of like the opposite and CANNOT
Hi everyone! I've been noticing something in my backtests. The problem is that, in real market, when the price (Candle High) touches a Sell Limit price, the order is not executed instantly, as the order is in the Book and so there's a Queue. But, in the backtest (using "every tick" modeling), if the
I have a strange problem: I have created an EA that I would like to test on a few different pairs. I have tested this EA on severals pairs in the past (the All Market Watch Symbols option) and it always worked. Today I want to test it again on several symbols but the whole optimisation just doesn't
hello everybody, is here any way to backtest with current day data (for example :last 1 hour data)? or the closest data i can select is yesterday data? thank you for answer
I've been wondering if I need to do anything about that possibility. Perhaps the odds of it happening are too small, perhaps it's theoretically impossible for a reason that I'm not aware of. And if it can be an issue, I'm wondering what I should do about it and running out of ideas so any help would
Hi folks, I have problem with my backtesting as you see from both pictures. The first one is every tick modelling and it's working fine but the second one, every tick based on real ticks, seems not working properly. I have never had this issue before so I try to reinstall everything but it doesn't
Hey, i want to know if it's possible to make an ea that will detect support and resistance levels as well as trendlines. If so, please guide me on how I can ho about creating one, thanks in advance
Can a EA be coded to change the time frame when a trade is opened and then return to the original time frame when the trade closes
Hello, I'm using the FileReadStruct function to read and copy data from a CSV file. However, the algo returns the 'array out of range' error (see execution_report file). I'm following the documentation available on https://www.mql5.com/en/docs/files/filereadstruct The CSV contains three columns
Hi again, In back-tests, usually we see both maximal and relative DD. Which one will be concidered in real time trading (or a copeid signal), maximal or relative DD? Regards
I guess the problem in the EA I'm writing now may be related to this. Does anyone know the answer to this question? thanks for answer
Hello all, I have been working on learning how to code an EA from scratch. I started in MQL4 and then moved it over to MQL5. I've made some mistakes and reworked it several times. And I'm posting for a critique of my coding style and ability. DISCLAIMER: NO I am not looking for anyone to code or
#include<Trade\Trade.mqh> CTrade trade; int OnStart () { double g; int m,s,k; m =Time[ 0 ] + Period ()* 60 - TimeCurrent (); g=m/ 60.0 ; s=m% 60 ; m=(m-s)/ 60 ; double OPen[]; double Close[]; double High[]; double Low[]; void OnTick () { double Ask=