MQL4 and MetaTrader 4 - page 29

void OnTradeTransaction ( const MqlTradeTransaction & trans, const MqlTradeRequest & request, const MqlTradeResult & result) { ENUM_TRADE_TRANSACTION_TYPE type=trans.type; if (type== TRADE_TRANSACTION_DEAL_ADD ) { if ( HistoryDealSelect (trans.deal))
//------------------------------------------------------------------ #property copyright "Copyright Harry 2023." #property link "" #property description "Harry" //------------------------------------------------------------------ #property indicator_separate_window #property indicator_buffers
Hi there This is my 1st time on this Forum. I have a problem with changing the colors of the Trendline in the Strategy Tester output. The Trendline colors are Red and Blue. I'm trying to change the blue to Aqua as I'm blind to Blue. This script works but changes ALL the lines to Aqua. I'm trying to
on Sunday today 31st December 2023, I tried to scan the server and open my logon details ... So anybody could help me how to solve this issue. I contacted broker support. Post edited by moderator to remove broker references
When I download history data in form of csv file. All value in Volume column are zero after I import that file to the History Center in MT4 it can show volume. What is the formula they using for calculating the volume from OHLC data
Hi, I would like to include some images as Logo on the panel of my MT4 EA. I want the image to be included in the compiled file so that the customer can have it on their chart when using the EA How can i do that please ? Thanks for your answers
hello every one, I devised indicator that updated every tick but recently it stopped updated every tick , it is mql4, please help resolve this problem
  Cross pairs  (2)
Hello, is it possible to get the values of candle Where two pairs cross? I have a overlay indicator, but i would like the intersection between them. Thanks, Danilo
Hello friends I have written a code in mql4 everything is right but I am unable to add the lot and tp increment function into the EA. I request anyone with the knowledge to assist me in writing the code of this ne function. Here is the logic of the function and also keep in mind after the trade hits
I have a MT4 indicator, which gives me buy and sell signal. I am not sure how it works and what calculation it uses. What's the best way to figure it out
Hello I have written this piece of code into my EA but it's not working kindly help me correct the bug and make it function well: Below are the the conditions under which the function should follow: Every time a multiple of "n_op" successive loss-making operations is reached, the EA increases both
Hello. Is there a way to modify arrow anchor when it is a buffer in custom indicator
Hi all guys, I have a problem in mql4. I create objects (labels and buttons) to display on a graph by specifying anchoring and coordinates in pixels. Unfortunately, however, in some MT4s the position of the object is not correct, it overlaps with other objects, while in other MT4s you see everything
Hi everyone, it's like one year that I'm studying trading and automated trading. I'm trying to figure out different trading strategies in MQL4 using Metatrader4, manly focusing on forex scalping. I have a limitation on every algorithm that I create, the trade are open some pips too late, probably
If I insert a trendline in a daily chart, although it is set to 'Visible in all timeframes' it is not appearing on my hourly chart or 5 minute chart etc. Any suggestions to correct this?
Hello,  Is it possible to add in color transparency to an object?  Eg.  I want to take a rectangle and instead of making it while #ffffff i wanted to make it transparent.     I was wondering if anyone can show me some example code to do this?   Thank you 
Hello Everybody, when i set rectangle objects that overlay, their color mixes up like they are transparent. However, how can i change that, so the color stays the color i set up for the rectangle? really annoying ... thanks for any help!
[Deleted]
Hi I have seen If two object crossed with each other then the cross section get white or in other color. Is there any way to avoid that?   I don't want the white area, I want it to be full blue. How can I do that? One thing predicting object cross section are is not possible as its dynamic. Regards...
Hello Frends >>>>>>>>>> pleasae i need help in this code i just want to close all sell and buy orders in the profit target >=10 this codes below close only sell orders or only buy orders if the profit target >=10 ...... i need to close all orders when the all orders be >= 10 in profit target i
Hey guys, I'm looking for an MT4 EA that allows me to devide one limit order into several smaller orders all with the same risk %. Example: I want to enter a trade on this parameters: Limit: 5 $ SL: 4,5 $ Total risk 5 % Number of "sub-orders": 5 And the result would theoretically be: Trade #1
i am getting a Sell/buy Failed with Error #4051 Invalid lots amount for OrderSend function . i am still very new to coding and i am trying to fix these errors, but the ea places the buy&sell trades just fine. so i dont know what is wrong with the Ordersend line. could someone please give me some
Hello! How to write the code to detect the floor and ceiling in the market
Hello all, I just downloaded MT4 on my PC running Windows 10 - Version 10.0.16299 - Build 16299.  I'm trying the basic task of adding expert indicators, which requires that I go to File > Open Data Folder. However, when doing so, I get an error stating "This App Can't Run on Your PC" with a...
[Deleted]
I was wondering what the change in the buffers is when you scroll back and load older data. I am guessing the pre existing indexes are unchanged and the new data is added to the back. However what is the maximum size the buffer can get? Is an event created? Does the event cause the start() function...
Hi everyone, Ex: I have 2 order limit ( Buy Limit GOLD 1920 and Sell Limit 1925 ) When the price goes down to match the buy order, is there any way to check if it has matched the order to get information (opening direction) and delete the remaining sell limit order? Thank you
  Need an older version of mt4  (23   1 2 3)
Hey, the new 1045 build has issues.....does anyone have build 1030 or one lower for upload?
This topic has been discussed here many times, but I still haven't found a solution: On a Windows10 PC and a Windows 2022 VPS, I have not been able to log into MQL5 with MT4 for a week now.: Logging in works on MT5. The MQL5 website is also not displayed correctly on these two PCs.: On another
Since VPS does not accept global variables, do they accept files or not? I need a variable that will be retained even when I shut down MT4/5 and not just a variable that will be remembered within function calls. And I think file processing can handle this efficiently. Also my EA is meant to be
I need to draw a circle object after a text label, how can i do ? Could you please give me an example
Have anybody experienced difficulties when trying to login to MQL community via MetaTrader and if so did anyone manage to solve that problem? I use MetaTrader4 and i cannot login to MQL. It tells me that either my login or my password is incorrect. I can login via any web browser with no problem