Hello, i'd like to know if somebody could develop me an Expert Advisor? I tried it myself but got so many errors, doesn't compile at all (over 40 errors, which can't be fixed). Following setup: - 20 EMA - 50 EMA - Stochastic Oscillator (5,3,3) Long: When 20 EMA is above the 50 EMA and Stochastic
Hi all, im very new to this, and after some research im not pretty ready to code anything yet. But I have something in mind maybe you guys can help. So I want to assign market orders to keyboard with this parameters: - BUY. (using current lotage shown in Trading panel) - SELL. (using current lotage
Hello, I have written an EA that should trade 36 symbols of the market watch at the same time. This works in the strategy tester exactly as expected, so it executes exactly the program. However, when I want to run the program live in the demo account, it stops at a certain point. Basically, the
Hello everyone, I've been coding an EA to automatize my daytrading strategy, and i've run into an issue I cannot seem to solve. The EA runs smoothly and executes the trades automatically in the Strategy Tester , but when it comes to real time trading it doesn't do anything. I have a variable to
Hello, I need your help for translating this MM module in mql5 using CExpertMoney double MoneyManagement() { double lot = 0 ; double Free = AccountInfoDouble ( ACCOUNT_EQUITY ); double LotVal = SymbolInfoDouble ( Symbol (), SYMBOL_TRADE_TICK_VALUE ); double Min_Lot = SymbolInfoDouble (
Hello My friends, i am searching for Martingale EA which uses SL and double the lot size every SL hit, Buttttttttttt the new trade is "in the reverse direction of this lost trade" if TP hit it returns to the initial lot size and absolutely in the same direction of the last profit trade any one have
int Data = CopyRates ( SymbolName (i, 1 ), PERIOD_D1 , 0 , 1 ,PriceInfo); The line of code above was extracted from a script I used to calculate the close prices of symbols. However, I do not quite understand what "Data" means in this code. I need to know what the value would be so that it would
Hello, I want to learn how to code Metatrader 5 with someone that I can meet up with from time to time. I'm based in London UK. Please only contact me if you an experienced MQL5 developer and know about trading. I'm a beginner with coding, more knowledge of trading. Thanks, Mark
Hello every one.... Something weird happened in my expert advisor. It perfectly works fine on XAUUSD but when I change it to another symbol it just stops opening positions, i've just written _Symbol for any required places but I don't know why it only works on gold... anyone happens to have
Hi, Is there a way to code to buy or sell only when it touches the value while coming from top to bottom? I mean, the condition for buy is when RSI value touches 30 and for sell, when RSI value touches 70. But I don't want the trade to happen when RSI moves from 35 to 30 instead i want the trade to
Hi everyone, I have a basic EA which I am using for backtesting indicators (or systems of indicators) for their effectiveness. I have run into an issue where the same indicator with exactly the same settings (input parameters) is giving me different results. A) When I backtest the EA with the
If the stochastic risk line crosses 20 up, buy. If it cuts 80 down, sell. How can I write these codes
Hi Expert, MQL5 reference has a standard library and contain a trade class, one of them is ctrade. However, Under same MQL5 reference, there are trade functions also. I found both can perform trade operation, but when programming, what is the difference, and which one is better? Can share your
This is the code: trade.Sell(fixed_lot,act_symbol,info.Bid(), 0 , 0 , "Sell" ) I don't have any problem usually, but sometimes, in the strategy tester this error appear. 2022.10.08 17:39:52.144 2022.09.05 01:36:00 requote 0.99053 / 0.99055 / 0.99053 (instant sell 0.1 EURUSD.Renko.ATR8.0 at
Hi Everyone, I am trying to run my expert on 4 currencies pairs during backtesting to check for margin calls etc. Unfortunately, one of the two following things keep happening during every backtest; 1) the expert does not trade on all forex pairs, infact it only trades on one, or 2) if it does trade
Hello Friends I am searching for Last day Daily data Open,High,Low,Close for Analyze data for swing high and swing low and for next day, weekly, monthly target projection. I am looking for download all major pair daily data in one click in dailydata.xls or csv file. Can some one help me to code it
Hello am wring this as an enquiry and as a trader its all about the mt5 backtester i need someone with vast knowledge and experience to provide advice about the mt5 tester as of now it seems like mt5 backtester is not a reality or perhaps our method of backtesting is bad,,,,, could someone
I copied a EA mql5 code from the internet, in the development environment it does not show any error, but when I run it it does not perform operations, Although others have this EA working correctly. The EA has this line #include <Trade/Trade.mqh> Do you think this line is the cause of the problem
The MetaTrader for Python documentation shows users can only use the history_orders_get and history_deals_get functions to access historical trade data, rather than a simple history_positions_get function. On MT5, trades are split into 5 elements; Position 'In' Order 'In' Deal 'Out' Order
#include <Trade/Trade.mqh> int handle; datetime lastSignal; CTrade trade; int OnInit() { string name = "test1\\Schaff Trend Cycle.ex5"; handle = iCustom(_Symbol, PERIOD_CURRENT, name ); return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| Expert
Hello, I can't understand how to close an open buy with a ORDER_TYPE_CLOSE_BY. my code : for ( int i= 0 ; i<tcount; i++) { if ( PositionSelectByTicket (ticket_chain[i]) && PositionGetInteger ( POSITION_TYPE ) == POSITION_TYPE_BUY ) { long stoplevel =
I did a search before creating this topic and the thread I found only explained how to hide an EA source code by converting it to an ex5 file. However, I have tried during this for my script but it doesn't work. Does this mean that scripts must be shared or am I missing something? I attached a
I have windows 11 pro 64 I tried several EA it is opining but not working as sell or buy. the test is not working probably
[Deleted]
Hi there,
Is there any variant for this to get only todays orders ?
HistorySelect(TimeCurrent(),TimeCurrent()); << does not work (looking for something like this)
HistorySelect(0,TimeCurrent()); << gets all orders
Thank you
MRC
My first bot to ever record profit is showing huge loss amounts. How can I circumvent this by reducing the cost of the loss? I have modified Stop Loss all over the place and still get the same results. I am using H8 BTCUSD. I have also tried the Intraday filter to try prevent trades on Thursday as
Why ? void OnStart () { double x = 9906.8 / 100000 ; printf ( "x = %s" , DoubleToString (x)); printf ( "ND(x) = %g" , NormalizeDouble (x, 2 )); } returns : 2022.10 . 05 13 : 07 : 07.736 ND (EURUSD,H1) x = 0.09 906800 2022.10 . 05 13 : 07 : 07.736 ND (EURUSD,H1) ND(x) = 0.1 I've asked 2
Hello , can someone can help me how to disable the algo trading button when launching the robot in the OnInit() function thanks
Hello, I’m looking for pointers on how to code for the 3hr Bollinger bands. The 1hr, 4hr and daily bollinger bands are built in but not the 3hr
I am trying to implement a function in a EA, after price moves 100 pips in your favor, Move SL to 10 pips after Entry poinT, so stop loss can stay in profit and also use tralling stop to stay in profit. Somebody have an idea of how to implement it
Hi All, Can any of you fine colleagues advise whether it is possible to execute take profit on the machine/platform, rather than sending it to the Broker as a request with the order? I'm getting hypertrading alerts from my broker and hoping that by removing the TP request from the order I will

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.