MQL4 and MetaTrader 4 - page 296

[Deleted]
hi, just wondering if anyone can point me in the direction of how to go about making the trailing stoploss of my EA equal to a moving average value. cheers geoff
Hi Please assist Trying to code an indicator, i would like to use the below indicator as directional bias , how can i get the bias from this indicator on the given TF
Hi, I am getting Zero Divide in Backtest of an Expert for this Indicator. I added it as iCustom and there are indications in the script about how to add it as iCustom but it still gives Zero Divide. It skips it it the Backtest but it looks like in Live Demo it might be blocking it. Do you know what
I am using BitmapLabelObject from mql4, to put a bmp on my panel. Though, the image has transparent background, it looks like a boxed image on the panel having white background. Also tried having an background color of the bmp as my panel color, Still it has white background. How can I fix it? (I
After updating to 1280 build, my MetaEditor stopped working. I am on Linux and Wine. Before the upgrade everything was good. When I click the MetaEditor icon in the MT4 toolbar, nothing happens and I got the message in the Journal: "MetaEditor not found". The metaeditor.exe is in the proper folder
Hi I am new in mql programming, I want to get specified candle trend by time : for example I want to get the candle in 8:15am (m15 time frame) trend , and if its red (down) do something or green (up) do somthing please help me to write this
Hi, thanks in advance for the help! I've spent hours trying to get this to work but after searching everywhere I still don't understand why it's not working. Any help would be appreciated. The following is defined at the top of the program for users to enter their offset from the exit moving
Hello, I contracted to have an MT4 expert built to my exact specifications. I paid for said expert to be built and now the coder will not give me the original source code and has written a copyright on the EX4.  I mean it's my idea and I paid for him to do it isn't it my expert?  Can someone with...
Please i want to create a trading bot (EA) i want to use it so that others can copy the trade of the EA from a broker trade copier. Python is my programming language, I know that mt5 has a python intergration module, but my broker doesn't have option of a copy trade for mt5 So i need help on how
I'm sure I'm making a newb mistake. if (whatever){ if (whatever && whoCares){ CloseBuyPositions(); /////// Gets error: 'CloseBuyPositions' - function not defined } } void CloseBuyPositions(){ /////// Gets error: 'CloseBuyPositions' - function declarations are allowed on global
Hello I just started MQL4 recently and being the complete newbie that I am, I would like to ask some help on the code below. Basically I am trying to have my EA randomly choose buy/sell on every tick and enter an order until it reaches the max number of orders . However after running the code on
I would like to capture the alert information for my indicator In real time ! I was thinking of capturing by / MQL4 / Logs but I saw that they are not inserted in real time, does anyone have any idea if there is a possibility to do it via webrequest? Thank you very much
I am using some Global Variables in my MT4 EA to store values which should be retained if, for example, the server re-boots. In the OnInit() method, the existence of these is checked using GlobalVariableCheck() for each variable. If not present, the variable is re-initialized, and a message is
Hi, I am trying to install Metatrader4 not the MT5 but it is keep installing Meta Trader 5 version. Can anyone please tell me what could be the reason ? I downloaded Meta Trader 4 from below location, file name mt4setup.exe https://www.metatrader4.com/en/download
[Deleted]
Hi all hero traders and tradettes. I want my EA to run once per bar. I have heard of complicated ways to do this, but I may have figured out a simple way. Setting a global datetime variable and an if statement making the program execute only if the datetime of the current bar is different to the...
Hi. I was thinking of making a indicator that plats the comment of pending orders on those buy/sell Limit/stop lines. Is there any way of finding pending orders? im using this for something eleas but this only gives me trades that have been open for ( int i=OrdersHistoryTotal() - 1 ; i >= 0 ; i--)
Hi everyone. I need help. I am trying to create a ea that will look through the open orders pool and if there is an open order it will modify the order to add both a take profit and stoploss. If there isn't an order it will just keep looking the time of the day is over. This is what I did so far
Hi All, I have been trying to find an indicator in the mt4 codebase that will give me a histogram of candle lengths expressed as a percentage over 'x' amount of candles. There is some similar stuff in the market area (Power Candles and DI Volume Bar) but I could do with the code. I just can't locate
Hi I'm trying to recognize the ctrl+mouse left click. When I press ctrl the ID is CHARTEVENT_KEYDOWN and the sparam is 29 if I hold the ctrl down the ID remains the same but the sparam is 16413, which I think this is what I need to use. I also know that the mouse left click id is CHARTEVEN_CLICK
I studied personally in the forum, no coding skills at all, I did it for 2 years. thank you for everything. and this time, I had difficulty closing the current order with the indicator. I want to close it with the indicator I chose, I think it might be done. but I was at my wits end and finally
Hello, I am trying to get the 15 min time frame MA on a 1 min time frame. I am able to get it in tradingview(See the attached Images .) These 2 images show how I am getting 15 min MA on 1 min chart . I like the first way, Is there anyway that I could get it on MT4 the same way? It helps
Backtest in model 'control points' slowed to half speed since recent mt4 update. What needed 35 seconds before, needs 75 seconds now. I test 4 years in M5 chart without M1 data, M1 data is still deleted. I there a way to get back to former testing speed
rewrite the sale conditions and sale closing conditions for the following link in mql4 form: https://www.google.com/amp/s/www.tradingview.com/script/RJBjyl2W-Ichimoku-Daily-Candle-X- HULL-MA-X-MacD /% 3famp
Hi 1) I wanna do historical backtest from 2008 till 2018, How do I download to my MT4? Pls advice, Thanks.
Hi all, Can someone help me with the below please? I have developed this piece of code, which aims to open a position following a sharp variation in price in a given time-span. If the price rises by at least 550 points in 2 candles, then the robot opens a SELL position. If the price drops by at last
Hi,  I'm an admin for a vps company that supports MT4 we have had a small number of clients who are experiencing random MT4 disconnects that do not reconnect until the MT4 terminal is restarted. In troubleshooting the issue we have verified the remote broker’s trading server is online when...
[Deleted]
  Help  (5)
Ive downloaded meta trader 4 and topped up my account but how do I now go about trading live on MetaTrader 4
[Deleted]
  Wishes for MQL5  (1310   1 2 3 4 5 ... 130 131)
With all due respect MQL4 is still the best MTS on the market, the following things are very much missing: 1. API or a possibility to call EA's functions from DLL (Mister Developers, you really need it !!!! ) Event handlers - at least one, system event (a CallBack or something with a message number
Hi everyone, Normally when the Buffers are printed, the minimum shift is 0. So you can only see the values from the past till now. My goal is to print the current value of shift 0 not just now, but till the end of the day. How can I do that ? It's an easier way to visualize for ex....
Hi there I have this code working fine on the simple version of my advisor: //------------------------------------------- Money management ---! double Tick=MarketInfo( _Symbol ,MODE_TICKVALUE); double minLot=MarketInfo( _Symbol ,MODE_MINLOT),maxLot=MarketInfo( _Symbol ,MODE_MAXLOT); double
This website uses cookies. Learn more about our Cookies Policy.