MQL4 and MetaTrader 4 - page 42

Hello guys, I'm facing an issue with my code: I want to check profit for a closed order, using OrderProfit() . In MT4 app, this trade is like this in history: In logs here are information coming from my code: In my code I use OrderSelect() in history with ticket ID ( OrderSelect(ID
Hello, I have recently purchased the VPS service offered directly on MT4. My EA has been tested for any potential bugs / errors and seems to be working fine when I run on my local machine. When I connect to the VPS, even when I can see valid entries on an external chart, it is not being entered on
When I click on a (standard/normal/OBJ_BUTTON) button, if the click is at or near a horizontal line, the line will be selected too (because the option "Select object by single mouse click" is activated), which is undesireable for me. How can I make it so that only the button is clicked and NOT other...
Hi, i need to use the OrderSend function (MQL4 language) in my EA to open some orders and i have the stop loss and the take profit value in two different string, instead the OrderSend receive them as double value. So i use this syntax: int order_result = OrderSend (order_params[ 0 ]
Hi All the MQL4 Experts, I am new to this forum although I have been creating my EAs and Custom Indicators. I have one EA right now I used to display my account status like PipValue, Exposure, Margin Percent,... to help me make decision whether I Buy/Sell more or Close Buy/Sell tickets. Now I need...
Hi. Fairly new to this, but have a question that some of you guys that know a lot more than me :-) I am looking for a trading bot that will take case of buying, selling and modifying my positions in the Forex market. I am copying a well know trader, and there are so many messages coming about TP1 is
Hello! Does MT4 have this function where, once a certain Price is met, a Pending Order will be then placed (Limit Order or Stop Order)? Thank you all!
I get the journal message "too many open orders" when I try to place a trade. It won't let me place a trade and I don't have any open orders. How do I resolve this issue
Hello, I have a small VPS service in Thailand, where I share IP internet to save costs. Suddenly, all MT4 in the node started showing a "connection failed" error. I have spent a lot of time investigating the cause, checking if there's an issue with the internet, but everything seemed normal
Hi All, will be appreciate can some help me to fix this , now all my mt4 can't get the product update or even download in the terminal market
Hello, I am trying to add Automatic Unique Magic number based on Currency pairs for my EA. Code 1 : //+------------------------------------------------------------------+ //| UniqueNumber | //| Copyright 2024, MetaQuotes
hi If there are 10 seconds left until the bar closing, I want to do something, like get position... how can i detect 10 seconds left to 5M bar closing??? i have no idea,I couldn't find codes
Hello, Ever since I upgraded to version 4 of MT4, I now get the following error message after downloading a demo EA from the marketplace and running a backtest: 2024.02 . 06 10 : 16 : 57.812 2023.01 . 01 23 : 04 : 23 XXXXX: testing stopped at 2011.04 . 07 16 : 24 because product is demo I guess
Hey guys! Would really appreciate someone taking out the time to clear these things. Need help in understanding how bots are installed and ran on desktop terminal. Also while testing a bot trades are completed really fast, is it the same when you purchase the bot and run it in real life
Hi Pls help me to change my expert name that i bought in MT4
An EA based on the BollBounce Method. Gain (2 year backtesting): 117.74% Entry Trade occurs when price bounces off the moving average of Bollinger, if the moving average is trendy (not flat). Examples of trades are attached. Stop Loss 1 pip below the low of the signal candle (for longs) 1 pip above...
Dear Developers, I created an EA in MQL4 where I send 3 lines of text to Telegram where each line is ended with <br> as follows message = StringFormat("%s v.%s<br>",EXPERT_NAME,EXPERT_VERSION) + StringFormat("%s:SELL: %.2f lot<br>", Symbol(), LOT_SIZE) + StringFormat("Sell Price
Hello, MQL4 complied with no error but when i am uploading in mql5 version then i got this error. anyone help me please? ERROR: Automatic validation Validation completed with error
I have here a function which i find in this forum: // Function to Determine Pip Point Value in Account Currency double dblPipValue( string strSymbol ) { double dblCalcPipValue = MarketInfo( strSymbol, MODE_TICKVALUE ); switch ( int (MarketInfo(
I want to know how to solve this problem, thank you
I apologize if I'm using the forum incorrectly, I'm learning. I'm referencing this article which has helped a lot. ( How to close all orders before weekend. - Market Hours - MQL4 and MetaTrader 4 - MQL4 programming forum (mql5.com) I'm close to having all trades close on Fridays using inputs for
Hello programmers, Please I need your assistance using the iCustom function of the ZigZag indicator for my EA . The EA is meant to close open orders once the Z //+------------------------------------------------------------------+ //| ZigZag_Closed Trades.mq4 |
[Deleted]
  How to change int to double?  (13   1 2)
I need a data about int / int to double(%). but it seems always return 0. How to do it?
  webrequest  (3)
need help curl -X GET "https://api.tradejini.com/v2/api/account/details" \ -H "Accept: application/json" \ -H "Authorization: Bearer 4d4ac4fb8d6289f6bf3f91e99a07b50e:a8999824d04ca5c62895d44975036816" \ above is curl and is working properly in python and other language as well as and i convert into
I have been testing using two demo accounts and two virtual servers at a cost of $10usd a month. I‌f i now want to run live trading, can i move one of these VPS to my real account? or do I have to cancel and re-register a new VPS at a cost of $10?
I actually avoid coming here, but I've spent 90 minutes trying to solve this big mystery with no success because the documentation absolutely does not help and all examples I find are very complex, seemingly going out of their way to avoid the simple. int Numbers [ 20 ][ 1 ]; Numbers[ 0 ] =
Hi, On MetaEditor MT4: Debug-> Start On Real Data-> Launches a new chart using the EA on the Editor. Is there a way to create a template (default) for this? I included a few indicators, saved it in the templates (named if default and tester just in case) but nothing works. Each time I launch the
All MT4 Signals are now disabled? I have a real MT4 cent account, but MQL5 disabled it with the argument its a DEMO account . But its not. any idea why? does it happen to you too? any issue with [redacted] cent accounts? is there any chat / support on MQL5? i cant find any support link
I have code within my EAs that shows on the chart, the total open and closed orders for that EA and magic number. I have been trying to modify it to only show closed orders for the current day. I have read and re-read the section describing the datetime function for MT4, but cannot work out how to...
suddenly cannot login on anymore with mt4 on the same terminal as I was using also cannot use IE to access any mql5 websites: HTTPS ERROR 403 Can you help? Thanks in advance