I run EA on TF-H4. If I want to check TimeMinute(Time[0]) = 30 . How To do ? Thank you
[Deleted]
Hello again. I have recently had an issue resolved with the following function which was pretty silly now that I know what it is. I'm a little reluctant to post this issue just in case it is something as equally dumb. But they do say, the only stupid question is the one unasked. Though I'm not too...
[Deleted]
hi, I am just a beginner I need some help. one simple code request I tried to write it but fail, I am not sure how to write it. here is concept if (Close[0]>Close[1]>Close[2]) { //show signal on chart } possible to show signal for 500 bars. thanks in advance .
[Deleted]
I am trying to get the following values individually. Seller pending volume (how much is sitting on the board) Seller open interest Buyer pending volume (how much is sitting on the board) Buyer open interest iVolume only provides the total volume, I need this data individually for calculations.
Has anyone else gotten an optimization result like this? The negative profit is HUGE. And my EA is always using a stoploss. This is the first time I've ever seen this. Thanks.
Hi all, when I change the value of the external variables and then I push the Compile button, the expert don't refresh these values. I print these variables and I see the expert is using the old values of them. Where could be the problem? Thank you!
Hi everyone, I'm just starting to look into MT4 after many years of trading manually. This site seems like a great place to learn all the in and outs of the platform - so that's great! I have a demo account running on the MT4, and would like to run some tests on the EA function. For that i need...
I need to obtain the last few peak and low values of the zigzag buffer for time frames not pre programmed into mt4 all in a single EA. I've read the source and a few articles on the zigzag implementation but am still dumbfounded. Does any one know how it works in better terms or have an idea on how
Dear Traders, Can any one help me with Intraday Intensity Indicator in MT4, or any other indicator use same calculation ? Thank You Rock-Trader
I have problem with saving profiles. MT4 doesn't remember chart order. I.e. I have 10 charts. EURUSD is placed as the last one and I move it on the beginning (first chart/tab). I save profile but after restarting MT4, chart order isn't remembered and EURUSD is still on the last tab. I used this way...
I'm not sure if this is already documented, but I thought I'd share my findings from experimenting with iCustom and OnTimer. Basically, it doesn't work. Consider the following simple code: double TestBuffer[];double TestValue = 1;int OnInit() { IndicatorBuffers(1); SetIndexBuffer(0...
[Deleted]
For example I have a leveraged account with $10,000 balance. I open a position of 1 Lot requiring margin of $1000. Free Margin is now $9000. Market moves against me and my trade is losing $9000, I get a margin call and the trade is automatically closed. My question: In the above scenario does the...
I need to get iCustom to work to import some values from an indicator. This should not be difficult. I used the syntax straight from MQL4 documentaion: Var_1 = iCustom (NULL, 0, "Indi_1", 2, 0); I ensured that all my variables were correct; same pair, current time, indi name copied directly from the...
Does anyone have a consistent experience trading moving average crossovers? I read numerous articles on this but have yet to come across a trader who would share experiences and lessons learnt from them
[Deleted]
Hi, I'm new to this forum, so excuse me if this post is inappropriate. If this post would be more appropriate on another thread, forum or website, then feel free to let me know. Basically, I'm considering getting into automated trading and I'm reasonablly satisfied with the MetaTrader front-end
[Deleted]
When detaching the indicator from a chart, following error message shows up in the experts tab. It is probably due to the object holding the buffer gets destroyed in the deinit(). Any idea how to suppress the error message display? 08:20:34 P35-indicator GOLD,M10: uninit reason 108:20:34 Indicator...
Hello all, Hopefully this is the right place to ask this kind of question, it seems to be totally about developing stuff here, but since this is MT4 forms so I guess this topic might be in the right place, hopefully! I'm trying to decide which broker should I go with, choosing between the famous...
They say the best way to learn is by making mistakes - so I must be learning a lot right now. I know the coding may not be neat but it is a start for me. I am trying to learn two things. 1) How to only place one order per bar. 2) How to close an order after a set number of bars have passed....
Hello, I am a php programmer and new to mql4. I am making an ea that uses alert of an indicator to open trade. Check below code of indicator that prompts alert.... PlaySound("alert.wav"); if (gi_112 == 1) MessageBox("Entry point: buy at " + l_price_20 + "!!", "Entry Point", 0); else if (gi_112...
Hi i try test a EA in 1 1 2014 to 7 1 2014 and ea work like a charm without any loos trade. BUT when i try test from 1 1 2013 to 12 1 2013 result fully difference and result very bad Something that has surprised me is big difference in result test in that two period What I would like to ask why in
[Deleted]
Can anybody suggest why the following function would randomly delete TakeProfit levels when modifying the TrailingStop. TakeProfit, TrailingStop and TrailingStep are all controlled by this function. This function also controls these levels for two different strategies running within the EA. Both...
I'd be very grateful for a little help. I'm trying to extract the hours:minutes close time of the previous bar. Looking at the help here https://docs.mql4.com/convert/timetostring, I think I need something like this: HrsMinsTime TimeToString( datetime LastMarketCloseTime, int...
Hi all, Just starting out here and wondered if anyone can help. Complete newbie question: Do I have to already have opened a brokerage account in order to use the MT4 charts? I can't just download the software package and use the charts for my own practice? Many thanks!
after three letters typing a function name it drops the menu down and if you hit enter it pops the word into line, but not the parenthesis. Is there a way to get the ( ) to auto-fill along with the function name when you do this? I think over time it would be worth it, or am I being lazy?
Hello Forum, usually I use the following code to avoid the execution of my EA on every tick because I calculate with closed bars: void OnTick() { static datetime Time0; if (Time0 == Time[0]) return; Time0 = Time[0]; But now I want the EA to be executed once an hour. Is this code correct? void...
Dear, I'm currently backtesting my grid ea, it open multiple pending order set to expire within 3 hour. Unfortunately it makes so many little line that make my chart too noisy and hard to read. Any thought how to delete it without deleting the line that created by market order would be very much...
Just that question. Am adding 4/5 digit broker detection to an ea I wrote on a 5 digit broker. On the 5 digit broker I might send an order with a take profit or a stop loss of say 125 points which would be translated to 12.5 points for the 4 digit broker. So adding that to the four digit price...
//+------------------------------------------------------------------+//| Modify SL_Profit Lock.mq4 |//| MetaQuotes Software Corp. |//| http://www.metaquotes.net...
Will MT4 Platform be able to run on the Winows 8 Pro Tablet
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.