Doesn't SYMBOL_TRADE_TICK_VALUE refer to the profit corresponding to a position fluctuation?
(13 1 2)
According the MQL5 Reference SYMBOL_TRADE_TICK_VALUE Value of SYMBOL_TRADE_TICK_VALUE_PROFIT SYMBOL_TRADE_TICK_VALUE – one-tick price change value for a profitable position Isn't SYMBOL_TRADE_TICK_VALUE the value corresponding to every 1 point fluctuation? ====== To calculate the profit in points
Hi , new to mql5,i conditioned my bot to open only one trade with a loop , but now i want it to open a new trade after the initial one is set to be . so the bot set's the sl to be but then opens inifite trade when the conditions are met again. i will post the code here. any way that i can repeat the
Good day. I have been trying to Rn Debug in mt5 and when I press F5 or the debug button from Meta-editor I am taken to MT5 but immediately I am taken back to Meta-editor and no debug is initiated. Is this a common issue
Hi, having some trouble here, not sure if anyone will be able to assist me? Price level was 154.023, 10.8 pips from the attempted SL so not sure why there would be 2024.12.17 23:13:36.741 2024.12.16 16:00:00 failed modify #325 sell 0.2 USDJPY sl: 154.131, tp: 0.000 -> sl: 154.131, tp: 0.000
Good day, I have an EA to perform an Ordermodify function after the Trade has been opened for a certain Period. The logic is simple: Step 1: Enter a trade Step 2: If the trade is open for longer than Time "T1" but less than "T2", perform Ordermodify and reduce the TP. Step 3: If the trade is open
I wanted to share a function I have developed to get the latest message from a Discord channel. It requires only the channel ID and the Discord Bot Token, and returns a string with the latest message in the chat. It can be combined with another function to send messages from an EA to Discord . I
I set myself a task: to demonstrate the capabilities of custom graphics via CCanvas class in a short code. Here's what came out of it. This script works in both MQL5 and MQL4. But it is much faster on MT5. Each frame is unique and does not repeat, i.e. the script is not cyclic. #include
So I need help with certain errors showing up whenever I compile my code. I feel like i have done everything I could but now I need to reach out to some other experts.. 'iMA' - wrong parameters count built-in: int iMA(const string,ENUM_TIMEFRAMES,int,int,ENUM_MA_METHOD,int) scalptheyass.mq5 29 18
Hello. If I restart VPS every 5-10 minutes for 3-4 times, the EA gets detached. I have to reattach it. The reason why it happens is it seems because MT5 blacklists my account. If I launch the EA from shortcut 10-20 times to limitless as much as possible, the ea and MT5 works fine. It happens only if
Hi everyone, I hope you're well, Do you know if there is a search button in the toolbox in the codebase tab? Best Reguards, ZeroCafeine
Recently EA has an error with magic number, sometimes there are orders without magic number. Is metatrader 5 having an error
Hi there, Bellow code works perfectly in MQL4: void HMA07_LINES_ARRAY( int &HMA07_LINES_ARRAYx[]) { HMA07 b= 0 ; int result2[]; int n = EnumToArray(b, result2, - 100 , 100 ); int HMA07_ENUMSIZE = n; ArrayResize(HMA07_LINES_ARRAYx,HMA07_ENUMSIZE,HMA07_ENUMSIZE);
I am trying to open 2 buy and 2 sell at once after void tick. 1st buy and sell has one step TP. 2nd buy and sell has 2 step TP. When 1st buy hits TP, that, market moves 1 step up, TP of 2 sells must move one step up, not to one place, but one step from their own previous TP level. Question is how to
Hi All, I hope all is well? So, I am looking to get in to Autotrading, with an algorithmic robot which trades for me (and hopefully is consistently profitable). I'm a Mac user on MT5 (or could downgrade to MT4), and I wondered if there are any recommendations for a Mac user for something that fits
Hello Traders, Developers, I am looking for an expert advisor for MT5, which closes at RSI ( Typical price , Period 8) on H1 or H4 after opening a manual trade. Unfortunately I am not a programmer and what I found on the net are mainly focusing on opening a trade based on RSI. For me, all I need is
i've been using high frequency trading strategy [redacted] . that strategy works during new york session and i saw some taders trading account bannd by thier broker what i wanna know is doing high frequency trading will banned my account too
Maybe I am not using the right search terms in google or on this forum (if so, please enlighten me so I can find the golden key). I cannot find easy solutions to aligning my timezone with my broker's timezone in the strategy tester ... and take into account DST. So, I kludged my way through it as
I have an EA which works fine in back testing and Demo mode but on my real [redacted] doesn't take any trade what can be the issue
Hi I made a trading robot with python that uses metatrader5 module to interact with MT5. But the problem rises when I backtest the strategy on different accounts and the results come totally different. Is there a way I can fix that
what is the equal of this mql4 code in mql5 : double PointValuePerLot( string pair= "" ) { if (pair == "" ) pair = Symbol (); return ( MarketInfo(pair, MODE_TICKVALUE)/ MarketInfo(pair, MODE_TICKSIZE) ); // Not Point. }
When do a EA backtest I read in journal the follow line: tester: 2024.12.14 09:32:03.427 Tester "00 - EURUSD -01-XMLOW-Double\EURUSD-01-XMLOW-DoubleLong.ex5" 32 bit Question: MT5 (build 4755 on Windows 11, AMD7940HX processor) is 32 or 64 bit? In build I use flag "AVX512" or "AVX2", same
Hello everybody, I have a code like below. I want to add something to this code but I couldn't. Can you help me. I want to do the following: This code sends 22 orders at the beginning. The TP and SL points of these orders are certain. When the market starts trading, I want to open a new transaction
Hi, my understanding of logic regarding this event is, that it is sent when the chart changes. But it does not in many circumstances in MT5: 1. User changes the scale from normal to fixed scale 2. When bars are growing and exceed the current price scale 3. When the scaling (zoom) is changed These
I am looking for a bot that can send my metatrader trades directly to my signal channel. With clear text that gives my entry sl and tp
I have strange issue. I have this code: #include <Trade\Trade.mqh> CTrade trade; CPositionInfo pos; COrderInfo ord; trade.Sell(0.01, _Symbol, 0, 0, 0, "Test SELL"); // I open sell somewhere in my code, then call myFunct() below to read that void myFunct() { for ( int i = PositionsTotal
Hello folks, I was running a very large cloud optimization and in the middle of it, windows rebooted. Is there any way to see the previous results or do I have to start from scratch again and pay the $$$ :( :( Thnx
Hello, I often encounter errors. How do I get to the bottom of this and find the source of the issue for my Python scripts? 12-12-2024 23:45:27 (-10001, 'IPC send failed') 12-12-2024 23:45:04 Failed receiving rates. Reason: (-10004, 'No IPC connection') 12-12-2024 23:30:03 Failed receiving rates
Hello everyone, Could you please help me resolve this error? The MQL5 checker displays the message: "Cannot load custom indicator...". However, both the indicator and the strategy work perfectly on demo and real accounts. Here’s the indicator path I’m using: #resource "\\Indicators\\Dynamic
Hi, when I see samples of how people use the CCanvas class, Im always surprised. When I use the class, I have to work asynchronously all the time since it is simply way too slow and I don`t know why. This little piece of code, which does not more than painting 3 times a text, needs between 0.3 and
Hello. Terminal is restarting periodically. So, LastOrderPrice is loosing. I want that when LastOrderPrice is lost because of restarting terminal and if OpenPosition >0, LastOrderPrice must be equal to the LastTicketPrice. Who can help me? the problem is the last ticket may be either in Open

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.