How do I close an exe opened with ShellExecuteW? I've heard of ShellExecuteEx and TerminateProcess but I do not know what parameters to import. If anybody could also tell me where you find how to import other shell32 functions for use in MQL4. #import "shell32.dll" int ShellExecuteW( int hwnd
Hello I would like to provide new signal on the account where is already some traiding history. But I dont want to be the history imported into my new signal. (there are trades diff. from my strategy) I want there is imported only trades since i started the signal. Is there any posibility how to
Hello, This morning I have updated my MacBook to the latest system and after this my MT4 wouldn't open. Does anyone have any ideas on how to fix this? Thank you
Hi all, When I initialize a buffer using SetIndexBuffer(), is the buffer contents filled with EMPTY_VALUE? Reason for that is I want to check if there is a value at [1] or if it is empty. Thanks
if OrderLots() value is known , and the Expected Loss is also known , how can one get the Pips ? For example : Let say my expected Loss is $50 and my LotSize is 0.07, How can I calculate the StopLoss Pips so that in case the StopLoss gets Hit My loss would be $50
why am I having trouble installing mt4 programs, all I get is mt5 on windows 10
hello, I have a custom indicator which gives buy and sell signals and want to make an EA based on its signals so I need a video tutorial for doing so ( iCustom function)
I have coded this EA with a Trailing Stop and I Trailing Take Profit. I would like the Trailing to trail every time it moves so that the stop will move every time a tick moves in the direction of the stop. So if the stop is at 20 pips and moves 1 pip in the direction then back again 1 pip the Stop
hello, I was implementing an indicator in my EA, but I don't understand why it takes only the buffer of the long and not of the short, I send you below the codes to understand what I have done. Thanks for whoever answers me Indicator init: int init() { TimeFrame = fmax (TimeFrame, _Period );
Hi, I'm inspecting this code written by someone else. //+------------------------------------------------------------------+ //| MACD.mq4 | //| Copyright © 2005, David W. Thomas | //|
Hello, I am trying to open a simple piece of code which allow me to open a position (buy or sell) at a certain time (for instance 11:30:58). I would like this code to run on its own and to be able to open this position on its own, but I can't do it :( Any help would be appreciated, thank you
Hi! I'm having a very strange problem when trying to access the close price of the candle in another timeframe. Sometimes the value comes right, but sometimes it comes wrong. Any idea what might be happening? Code: input ENUM_TIMEFRAMES UseTimeFrame = PERIOD_D1;Print(iClose(Symbol()...
Hello everyone, I'm not sure how to do this. Sorry not very helpful code snippet, can it be achieved? if(MRH<MO){c=true;} if(MRH>MO){d=true;} if(MRL<MO){e=true;} if(MRL>MO){f=true;} if(MRH>MRL){g=true;} if(MRH<MRL){h=true;} if(CR<OR){i=true;} if(CR>OR){j=true;} if(g==h){DlWI()};
Hi, In mt4, is it possible to add a pair that gets the historical data manually? I hope the question is easy. Regards
Hello Guys I was writing a script for the first time and now im finished and the order isnt opening and im getting this uninit reason 0 I know that this is the expert remove but how do I fix it
Hello I would like to know how to add the moving average(s) into a separate window (not by code but manually) the screenshot below is for that MA I am asking for: .. set file attached for the above screenshot
I am taking an online course, but I am stuck. The Expert Advisor I am coding cannot submit automated orders on the Demo Account. I am attaching a file showing the output of the EA. The source code is listed below. It compiles cleanly, and it does execute on the IG chart. As you can see from the
Would it possible for the developers to add an option to the 'Terminal' so that instead of it being black and white, have it the same as the app with respective colours (blue / red) for buy / sell trades and profit / loss ? Or is there a script out there that can do this?
Hello, I use NY+7 brokers on multiple MT4 platforms, there are no Sunday daily bars on the charts. But why when I switch to weelky timeframe, the open date for bars becomes Sunday? E.g. currently the most recent weekly bar opens on 2021.10.10, which is Sunday. Is it fixable
Hello. So I have this indicator which draws arrows in the chart ( NOT On the chart).. I want to use it in a EA but cannot find buffers.. any thoughts? Tried with iCustom all buffers from 0 to 100... when arrow is printed on the chart there is a price on that... aand after that is EMPTY_VALUE..so my
Hi! Good evening! I have a small code problem that is easy to solve, but slightly complicated for me. My idea is to close half the lots, when the price reaches half the profit pips of my stoploss. Ex: If the stoploss is 12 pips and my trade goes into profit by 6 pips, to close half the lots and
dear sir, your MT4 for PC is very good trading platform. but i think it would be better if you could coloring the outstanding position like this thank yo9u
hi dear friends before u hit me with critical comments im not a coder and i need a little help .. so i have this nice ea that is working on tester on renko charts with tick data .. but when plugged to renko generated chart is not operating and i guess its because its not updating price ask and bid
Dear all, hope you are fine, I need to execute a function when current bar is closed or current bar is open. How can I get that events? Thank you so much
Hello mates, I am trying to obtain the minimum and maximum prices in a time slot and I am not getting it. I have managed to obtain the minimum and maximum between a past hour and the current hour. But for example: If I want to create an indicator that draws two horizontal lines between the
Strategy Tester does not seem to be able to outpout Print or Alert from an indicator, Is there another way to test Alert or Print from an indicator? I embedded also the custom indicator into a dedicated EA, but no output was seen from the indicator, be it Print or Alert, Also Strategy Test handles
Hi, I have two buffers which I would like to color depending on a condition. In the following simple example the condition is on the close price. The script seems to work but I have an issue when, between two candles, the price change direction (see image attached). Note that the problem doesn't
script for quick calculation of pips made during some period of time. usage: - drop it on any chart and input start and finish dates, after that look in journal for values on each symbol. if you do not want to count still opened trades then set parameter count_opened=false. if you need to add more
On my MT4 platform in the Navigator window, under Indicators, there appears to be a small blue down arrow on the Market Folder. What does this mean? Thank you

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.