MQL4 and MetaTrader 4 - page 27

Hello, I just activated my MT4 account through [broker name redacted] , and I have been trying to log into MT4 on my laptop and on the web, but every time I try to login it does not work. To my understanding the login is the number your broker gives you and your password is the password from the
Hello, I am attempting to develop a trailing stop loss feature for my EA. Here is the logic: Obtain the entry price of the open trade. Determine the trailing price: Entry Price + Take Profit. Define the trailing gap as follows: For Buy orders, Bid - Trailing Gap; For Sell orders, Ask + Trailing Gap
Hello,     i don't knew why MODE_CHIKOUSPAN return 0 usually   i use this code :  double CHIKOUSPAN=iIchimoku(NULL,0,9,26,52,MODE_CHIKOUSPAN,0);     waiting for help    thanks     
The MetaTrader 4 platform update will be released on Friday, November 10, 2023. Terminal: Improved Market security system. Now, in order to run the product, the user must be authorized in the platform with the same MQL5 account via which the product was purchased. The account must be specified under
This code doesn't work: struct LockStruct { int ticket; int locked; }; orderTicket1 = orderOpen( "buy" ); LockStruct orderTicket1 = {orderTicket1, 1 }; 'orderTicket1' - constant expression required declaration of 'orderTicket1' hides global variable If I am interpreting this correctly, I cannot
Hello, I wanted to double check the sequence of operations to follow a Signal using MT4 and a registered VPS. I login to the account in the terminal I subscribe to the signal I set the signal settings in the options (Ctrl+O > Signals tab) Check the "Enable realtime signal subscription" Check the
I am getting 4200 error, i tried to fix but failed.using RSI to change object. void textobject_side() { textobject_array[ 0 ] = "-------------------------------------------" ; textobject_array[ 1 ] = "" ; textobject_array[ 4 ] = "" ; textobject_array[ 5 ] = "" ; textobject_array[ 6 ] =
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?