MQL4 and MetaTrader 4 - page 1355

To post a new topic, please log in or register
Hi!! I've developed my first EA. The EA send pending orders at a determinated level,my problem is that the EA send a order every time that the price hit the level.I want to send only 1 buy and one sell order per sesion. Trading hours is includingin the EA. Thanks for your help!! This is the...
Hello, I have made a Custom Indicator which works. It displays on the Chart and everythingis fine. I am now wanting to use that in an Expert Advisor and the only value I get is 2147483647. It has one parameter which I pass in and that is all. (Below is the code iCustom(NULL,0,"myCustomIndicator1"...
What I do. I use ElliotWave, simple - not all that complicated counting, for that lead to nothing - and for that I count manually and also use Advanced Get. Just 1,2,3,4 and 5 count, and of course the countertrend 1,2,3. To pinpoint a top or low of a wave I use a special timecount. I start with...
Hi, Am looking for someone who can put my trading strategy into a script so I can backtestit. Have been using the same strategy for about 3 months now - with very good results- but I want to finetune it and perhaps we can learn something from each other. Contact me on gmail - shan.ahmed1@gmail.com...
On the website of the Automated Trading Championship 2007, an Interview with Nikolay (zona) has been published. Nikolay known as zonа has not been trading forex for a very long time. However, he has already developedabout 30 Expert Advisors. Nikolay trusts trading to Expert Advisors, because...
I'm calculating MACD and the histogram values as such and putting an arrow on thechart. Periodically I will get a false crossover signal. Can anyone tell me why? Thanks very much in advance, E MacdCurrent=iMACD(NULL,0,8,17,9,PRICE_CLOSE,MODE_MAIN,0); MacdPrevious=iMACD(NULL,0,8,17,9,PRICE_CLOSE...
Hi guys -- I'm new to MQL. What I'm looking to do is using the common Laguerre indicator, invert any valuesunder 0.45 and turning those inverted values Red. I inverted them fine, but I'm having an issue with making the color red. Help wouldbe much appreciated....
  EXIT point - LOGIC (16   1 2)
Greetings! Can anyone give me any ideas for indicator based exits strategies that you may think works. I like to try anything and everything.
I've tried everything to get my code working, something is wrong but what? I'm simply trying to keep BUY && SELL ratios approximately even. I've allowed for in the code a situation whereby five positions can be unhedged,why does my code not work?  Any help greatly appreciated and thankyou.
Hi, I am learning. To have my EA do: "A winning order repeats itself, a losing buy order is followedby a sell order, and a losing sell order is followed by a buy order." Is belowright? int order; if (Ballance!=0.0) { if (Ballance>AccountBalance() && OrderType()==OP_BUY) {...
On the website of the Automated Trading Championship 2007, the article Reporting the Championship: First Week (1 – 7 October) has been published. The article summarizes the results of the fisrt week of theChampionship. The Top Ten Expert Advisors alternated all the time during the week.The Top Three...
MT4TerminalSync - System for the Synchronization of MetaTrader 4 Terminals This article is devoted to the topic "Widening possibilities of MQL4 programsby using functions of operating systems and other means of program development".The article describes an example of a program system that implements...
First week is done, 11 more weeks to go. Leader is winwin2007, who raised a LOT of controversy with his method. His expertis a 1 pip scalper, and trades EURGBP during Asian session only. This expert trades only if there is a 2 pip spread, and he is able to set take profitat 1 pip profit (this is...
Is it possible to use\reference M5 and M15 data on an M1 chart? If so, how? Arethere any implications or benefits for doing this? Much thanks in advance, E
How to detect that the indicator is attached to a chart in "visual" testingmode. Especially how to get the tick time, the Time[0] value is ok but the TimeCurrent() is market watch time.
Hello all I have written a dll to open an HTML email every time and save it as plain textto be useful to expert advisors. I use Mictosoft Word for opening html file andsave it as plain text , here is a part of dll code: ofstream Msg(Dest + "\\experts\\files\\MessageFile.htm",ios::out|ios::trunc);L3...
Hello, ive bin really, really trying to code an EA function that would do the following. It would find the value of the MA in the last two closed bars and see if theiris a difference of 'MinAng' in are case 5, between the two and in what direction. ex. shift 1 - 2.0325 (one bar back) shift 2 -...
To all Russian writers on this forum : Can you please post comments in english so everybody can understand ? There are great articles to read. I know they are all translated in english butmost of the comments are in russian in the russian section. So please, comment in english so everybody...
Hi, I need to calculate the stochastic formula on a array (looking for fast %k only),this array is not a indicator buffered array. This is my code: double SmallestBuffer[], LargestBuffer[], COTIndex[]; int COTIndexPeriod=13, //similar to Stochastic %K period...
Hi, i'm new in mql4 and need help now i'm trying to code my ea with condition; 1) run in m1 chart and do entry using complete bar on m1 2) i want do exit at m5 complete bar or above (m15,m30,m60,....). i'm facing a problem on how to code that my m1 ea can read larger bar. sorry for my bad...
I would like to update my code so that my EA can detect divergence/convergence betweenprice and momentum. My idea goes something like  this:   Have threevariables, macda, macdb and macdc. Macda would be on the current bar ie 0 shift,macdb on a 1 bar shift and macdc on a 2 bar shift . A peak would...
I have the following start function in my expert : static double EMA_Short_Saved=0; int start() {//---- if(!isNewBar()) { return(0); } double EMA_Short_Current = NormalizeDouble(iMA(NULL, 0, 5, 0, MODE_EMA, PRICE_CLOSE, 0), 4); double EMA_Short_Previous =...
Programmer. Create indicators, advisers in the shortest terms. ICQ 228-875-471 e_mail: yyyamiyyy@yahoo.com
Is it not possible to set a SYMBOL_LEFTPRICE as the arrow type in a SetIndexArrow(0, xxx) function? I've tried and it doesn't work. The docs aren't specific on this. I desire to insert price labels at the point of entry when the conditions for asignal are met. I'd rather not write a script to do...
Guys I'm trying to keep this as simple as possible but have hit a wall. The EA shouldplace orders when the RSI period gets to a cetain point which works fine. Howeverwhen sending the Order I only wish to send one and only one order but unfortunatelysends hundreds all at the one time. I would be also...
Alpari Databank imported into M4 Alpari Database imported into Mysql and using same formula in PHP Im using same formula and both at same time intervals for this year. Can you seethe difference???
Has anyone tried to trade automatically with MT and Ninjatrader? The thing is that my broker does not support MT so orders have to be sent fromMT to NT via DLL or COM interface. There is also option NT to generate order based on .txt file created by anotherprogram. So my question is does MQL have...
Hi, Just wondering if anyone else has been kicked off the trading championship (afteryour expert etc has been accepted), for no specified reason? After submitting myExpert about ten days ago, I received the following report about my expert: The verification of your Expert Advisor is complete....
I am trying to write a MA indicator that change color when it change from goingup to down and vice versa. I have tried to use SetIndexStyle but that change all of the indicator color. Can someone help me with this?
When the iRSI gets to XX value I attempting to Close Out all Open Orders howeverits not executing... I believe a 'if' condition is not being met? Cheers! if(iRSI(NULL,0,21,PRICE_CLOSE,0)==50) { for(cnt=OrdersTotal();cnt>=0;cnt--) { OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);...