Hi everyone, like the title I have this weird problem The onInit function is the following. The symbols are stored in the input variable Symbols separated by ",". I have some array for checking new bar in different timefrimes (such as TimeLastCheckTickProcessed) for each symbol and then I have an
Sir, I am getting 2 Warning but I tried " (string) (Font_name) " . double Balance = AccountInfoDouble ( ACCOUNT_BALANCE ); double Equity = AccountInfoDouble ( ACCOUNT_EQUITY ); string Balance_text = "Balance = " + DoubleToString (Balance); string Font_name = "Tahoma" ; // Set Create
How do I test an EA in the demo? I'm clicking the DEMO button, but nothing happens
Hello friends When running the code, how can it detect that Metatrader is closed and restart
Hi, besides EAs and indicators, there is this service-thing. I remember I read somewhere, that such can be used to support custom-symbols. Is this possible? What I would like to to is to restrict a given symbol, like EURUSD , and then restrict it to specific trading hours, e. g. from 7:00am to
Hi, I want to run a code once a month on OnTimer() function and here's how I do it. void CStrategy::OnTimerEvent( string & SymbolArray[], int numberOfTradeableSymbols, string FileName, TRADE_DIRECTION TradeDirection) { MqlDateTime dt; datetime now= TimeLocal (dt); //if not saturday and at
//+------------------------------------------------------------------+ //| SMABot.mq5 | //| Copyright MetaQuotes Ltd. | //| https://www.mql5.com/en/users/metaquotes  ; |
This function is taking only one trade, when the positions is greater than 1 then it is supposed to take entry on every 200 points. example. first buy trade was taken when market was at 1.5000 now the second trade is supposed to be taken when price reaches 1.4980. i am attaching my ea code file as
*edit: when I posted the thread, I was confused about the correct way to calculate position size based on entry price and stop loss price, so don't take anything I say here as truth, unless someone else verifies it in the comments.*
Hey guys, I opened a demo account , server is IC Markets Demo 6. However, in “create signal” page, there is no option for “Ic Markets Demo 6”, you may refer to my attachments. How to solve this? Many thanks
From what I remember, when I activated an EA on different installs of MT4 (tied to different accounts) on the same computer, I used one activation for each install. According to all the documentation I've read on this, it is one activation PER COMPUTER...meaning I can install the EA on as many...
I'm new to mql5, I don't know why it gives me an error, [invalid stops], it's a simple EA you must open a buy trade according to the condition and sell on stop loss or sell all trades on the next candle. I am thankful for any kind of help.... #include <Trade/Trade.mqh> CTrade trade; ulong
I know to get the highest price int bar_index= iHighest (symbol, PERIOD_W1 , MODE_HIGH , 0 , 0 ); double hg= iHigh (symbol, PERIOD_W1 ,bar_index); datetime bar_time= iTime (symbol, PERIOD_W1 ,bar_index) bar_time is the time of the candle but I need the time of the high price
Hi guys, Thank you in advance for your time and effort. I am very new to MT5/MQL5 and Python, trying to migrate from Pinescript to MT5 using Python for Auto-trading. I dont have much coding knowledge. Been using internet resources and some ChatGPT. I have come across a problem which i need help
There is a feature on cTrader that I think should be a standard, seen at the bototm of the page https://help.ctrader.com/trading-with-ctrader/orders/#stop-loss-and-take-profit or in the image below. Basically, instead of a standard stop loss which can be triggered by spread alone (the candleprice
I am working on this problem for several weeks now and I just can't find a proper way to solve it. I am looking for help. I want the following to happen: 1) Place 2 orders, n and n+1. n has a TP & SL level, n+1 has only SL level. SL levels are the same for both orders. 2) If SL is hit, fine. Both
When I read different material, I cannot figure out the exact formula for calculating 1 pip... I mean, number of pips, difference from opening and current price. is it (Current price- Opening price )/point? Please provide the exact formula that will calculate the number of pips for all pairs
Hi everyone, I hope you're well 🙂, I'm still a beginner on this famous MQL5 language, but I hope to make progress slowly but surely, However, I do have a few questions, even though I'm thinking of answering them myself one day in the future, but I can't hide the fact that I'm itching to know if
Hello folks, I would like to know if with the Strategy Tester, it is possible to step backward like forward?. With F12 key I can go forward (as I want), but I would like to go backward as well. Is there some way to do that?
Thanks in advance, Cyberglassed.
I have built lots of indicators and EA's in my time and I have a chap who would like to purchase an indicator from me. I am happy to provide the indicator and we have spoken extensively of the risks and such. He is 100% aware of what he is getting into. I haven't however ever sold one of my
Hi all, I am trying to optimize an EA, I have no trouble testing my strategy on a single test but once I try to optimize the inputs or test it on multiple symbols, the test run but not a single trade is taken on any pass. I don't receive any error. Any one had a similar problem? I tried to define my
Hello guys, how can i round a double to lowest number? I have issue for lotsize in martingale 1.5 Starting from 0.01 i have 0.01 * 1,5 = 0.015 (i want round down to 0.01)
Im new to coding, so my line for OrderSend is showing wrong parameter count, what would be the problem and how can i solve it OrderSend ( Symbol (),trade.SellLimit,Lots,entry, 3 ,sl,tp, "Gulitsa" , 0 ,expiration,Red);
Hi, I would like to develop a script that can connect to online mongodb atlas database threw Rest API to make CRUD operations (the authentification is with an API key ) by using the webrequest() function any help or suggestion
What can i use instead of SYMBOL_TRADE_TICK_VALUE ? I am calculating lot size based on risk percentage. Its giving me right lots on EURUSD,GBPUSD but it gives wrong valuein US30, USDJPY. Can anyone help me. I am calculating lot size based on risk percentage. Its giving me right l double calcLots(
Hi, i need to insert a time condition on which the EA trade only between 2pm and 5pm (variables that I will change on backtesting ). I've read several thread but cannot find a way to understand to how to manage "time variables" properly. Any idea on implement it very easily? (an IF Timecurrent > 2pm
Sir, I want to change this Colour Candles but it doesn't work to changing this colour candles int OnInit() { ChartSetInteger ( 0 , CHART_SHOW_GRID , false ); ChartSetInteger ( 0 , CHART_MODE , CHART_CANDLES ); ChartGetInteger ( 0 , CHART_COLOR_BACKGROUND , clrBlack ); ChartGetInteger ( 0
Hello! We're trying to upload our first EA in MQL5 Marketplace, and we are on the last part of the process now. Unfortunately, it gives us this error. Our EA is on M10. What does this mean? and how to solve this error? Please see attached file
Hello, I am new to coding mql5. And I have been coding a scalping EA. Now I need to code it to trade between a time range and two time periods should be as inputs to optimise it afterwards. I need a help with this issue. My code is down below. Thank you
I seem to be having a pathway issue i remove the "AccountNumber" as i dont want to give away my pathway info anyways If anyone could help resolve this would be great. Just noticed AppData Folder is missing in the Root yet i can still manually search it in the control panel function

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.