Download MetaTrader 5

MQL4 and MetaTrader 4 - page 756

To post a new topic, please log in or register
i just tested the MACD.MQL4,but the terminal shows:couldnot send order,error 131.who could tell me why? the code is written by metasoft,isnot wrong?TKS!
I have an EA that produces an array of future prices. I'd like to be able to plot these on the chart to ensure the EA is working properly. Is there any way to do this, similar to loading the array into an indicator buffer-type object, or do i have to draw a bunch of small lines with ObjectCreate?
Hi, If someone could help me finding or coding this indicator I will appreciate your help. Im looking for an indicator that play an alert and popup a message when open a lot of x size (previously defined). I already have an ea, but the thing is that I have it running in 10 pairs, so it will be...
New article Use of Resources in MQL5 is published at mql5.com: MQL5 programs not only automate routine calculations, but also can create a full-featured graphical environment. The functions for creating truly interactive controls are now virtually the same rich, as those in classical programming...
MQL is so complicated. I need help. I need a script that will execute a stop loss at a set price if that stop loss has been hit two more more times within the last 5 minutes. For example, (this is a long position), wick of candle hits 1.9000 but open and close of the candle are at 1.8999 and 1...
Hi guys, I am coding a simple gap indy for myself and am wondering how to get rid of the extra zero's at the end of the usable numbers... have a look at the pic and you will see the extra 0's. I have tried normalizedouble, mathround and mathfloor to no avail. any help much appreciated....
Dear all FOREX traders, I am making this topic in the exclusive section after considering that all of you have at least one year experience in forex trading , Hope newdigitalagree with me for putting this topic here. A bunch of newbie or inexperience traders are trying too hard to find the PERFECT...
I don't have Copyright within my simple EA's I'm creating. However I noticed when I try to back-test them, someone elses copyright shows up next to my program in the strategy tester. Example OrderReliable C. Then I added something from Metaquotes in my De-Init and it started showing up. Tho, its...
What would you say is a general name for Stoploss, Takeprofit, Limit, and Buy/Sell Stops? "Pending orders" is one that comes to mind but Im trying to think of a name for them in terms of them essentially being a price value rather than an order type, if that makes any sense. Much appreciated!
Can I have multiple parameters stepped simultaneously during optimization? For instance, if I check the optimization box for 'ParamA' (start=0;step=1;end=5) and also for 'ParamB' (start=0;step=1;end=5), its going to do a run for [ParamA=0, ParamB=0], [ParamA=0, ParamB=1], [ ParamA=0, ParamB=2],...
What actually goes on when a user right clicks on the chart, brings up Expert Advisors --> Properties, changes an external parameter, then clicks OK? I always thought the expert was re-initialized but this doesn't seem to be the case based on my observations. Does it just keep running start() with...
Dear all, I have a problem in mql4. The image below consists 2 overlay indicator. RSI(2) and CCI(6). By visual I can determine the cross between cci and rsi ( pointed by red circle), but I don't know how implement in the ea (coding mql4). I think cci value must be transformed to rsi value or vice...
I was used to use 8 MTF_MA.mq4 and packed them in a template. Nevertheless, I want to consolidate them into 1 mq4. I modify the code, but it draw a lot of CPU resource and slow down my computer. Is there anything wrong in the program? Please help! -------------------------- #property copyright...
In the results graph, there are two lines, the blue profit line and the green equity line. many of the tests I do end with the equity line heading to zero near the end, my question is, why is this ? Is it a flaw in the strategy tester ?
//--------------------------------------------------------------------// tradingexpert.mq4 // The code should be used for educational purpose only.//--------------------------------------------------------------------#define MainBuffer 3#define SignalBuffer 4#define HighesBuffer 5#define LowesBuffer...
Hi there, Last week we released Expert Advisor Visual Wizard Pro. It’s our new strategy builder for MetaTrader 5 - It creates EAs in MQL5 without any coding. You don't need to know MQL5. It has an easy to use visual environment. You can read more about it at http://www.molanis...
What is the best way to change this code so that the alert only happens at the end of the candle once we know for sure whether it is going to be green or a red candle? //+------------------------------------------------------------------+//|                                                  Heiken...
I want t automade my stradegy wich i trade for a numerous years succefully can somme one helpme ??? pls contact me at " tranco@inbox.com"
Hi All, I was hoping you could help me, my MT4 company is smartlivemarkets and whenever I loose connection to there servers, whether its at my end or theirs the Expert Advisor button turns red. I have an EA running all night so when I get up lots of trades don't execute because the connection...
The arrows here are only shown in one direction. Any ideas where the error is? //+------------------------------------------------------------------+//|                                             100_200MAs_Alert.mq4 |//|                      Copyright © 2011, MetaQuotes Software Corp....
The two indicators are Positive Volume INdex, and Negative Volume Index. There is a way where you can download these indicators and attach them to mt4 am I correct? Or do I have to code them. All help is gretly appreciated
Hi, sorry to bother you all again, but I was wondering if anyone can point me in the right direction. The problem I am having is turning the formula on the attached file into code for my EA. I am trying to add code that will automatically change the lot size as my equity grows in increments of 500...
here is my problem, I have try to list up my orders for in case my pc shuts down during the night for exemple... here is what I coded for the listing tough it dosent seem to operate properly... maybe it's not on init() function I need to set these variables up. anyone haves a clue about it? I hope...
i'm very sorry if its a basic question, but i got stuck with that. My question is: how to change variable name in loop, for example: for (a=1;a=7;a++) { variable(here next number "a" taken from loop) } i'm not writing about using arrays, just want to test many variables in one loop. i've searched...
Is it possible to look at other sectors/instruments on m EA in MT4? For example, I would like to monitor the S&P 500 while I trade EURUSD? Thanks! Vishal
Is it possible to use regular arrays to accumulate price values so the array can then be used in ImaOnArray() or should drawing buffers always be used for this ?
Hello to all The existing code does work. I will post the code in the next message within this thread. Yes, this code does work, not that it is profitable, but it is a great learning tool. The system at this time trades one position at a time (enters a position, then closes that particular position)...
Is it possible to ue a mobile metatrader or a normal MetaTrader over a I-Phone? what i would use is a connection to a VPS-Server where my MetaTrader run, wich i can make over such a I-Phone from everyhwere, if somebody has experience and solutions with such thinks would be great to hear somethink...
Hi When I use MACD I only get an answer up to 4 digits. I need 6 digits. Have tried NormalizeDouble But still get 4 digits after the decimal point. Thanks!!!
I can't figure out why my EA isn't making trades. When I run it through the tester it has no problems, but when I try and use it it just sits there. I'm new to programming and I'm sure it's something simple. Any ideas would be appreciated as well as suggestion for the code.