MQL4 and MetaTrader 4 - page 1044

... yeah, i have this strange thing happening - whether i have the "Genetic Algorithms" box during optimization checked or not it still trots all mud meticulously one by one iterating all inputs. anyone has any idea why?.. ever seen anything like that? . I think that i had it once, and
[Deleted]
Hi, I have a script that scans through the last completed bar of the charts and indicates the price action bars like pin bar, outside bar, inside bar etc. the only problem i am facing is that when i run it and it access all charts one after the other for price action formation, sometimes it does...
Want to delete pending orders of the particular symbol() alone(Where the EA is running) But the code given down deletes all other pending orders. Please give some idea to delete particular symbol's pending order alone. int start()                                       {   bool k;        double...
[Deleted]
Hi, how do I declare variable x in this code: switch(x) { case 'A': Print("CASE A"); break; case 'B': case 'C': Print("CASE B or C"); break; default: Print("NOT A, B or C"); break; } int or string is wrong. Compiler return error. Variable x will be value one...
here you can see what I mean, this indicator should show the same price, because it is reading from a different timeframe, but it seems to have different prices. Indicator Link: http://www.35pip.com/metatrader-indicators/mtf-movingaverage-mq4/ Wanna see my code? /**********************    5026...
[Deleted]
  Can't get Icustom value  (30   1 2 3)
Hi all, this is normally something simple but this time, after banging my head at several walls I still could not find a way to get the value output of this custom indicator attached to this post with the following settings: iCustom(NULL,0,"MTF_Moving_Average",1440,3,3,2,1,1); If you guys have any
Hi, I have a question. Is it possible to run an EA or something else that is only following a specific order or a group of orders so that it can for example change the stops? I've heard that it is easier using MT5 (true?) but unfortunately my broker doesn't support it yet. My idea is the following:...
  Undo upgrade  (2)
Hello Ive upgraded my Mt4 as per request by my broker, but i got a msg from my bot maker that the bot is not compatible with the new version. How do I undo the upgrade?
Let's assume I have one point left before the stop profit is triggered. And 49 pips before the stop loss is triggered. How do I estimate the probability that the stop loss will trigger? It's something very complicated
Can a moderator please publish my code on Code Base: I asked for a hold in Dec 2011 but now ready some weeks. The code to be published is ASK+BID+SPREAD-INDI, thanks
I am new to mql4 programming. i am trying to write an EA that showing error 4107 for following code... ppbid=Bid; ppask=Ask; MyLot=0.01; int ticket=OrderSend(Symbol(),OP_SELLSTOP,MyLot,ppbid-(10*Point),0,ppask+(20*Point),ppbid-(20*Point),"",16384,0,CLR_NONE); What is my fault? I will be grateful if...
[Deleted]
I need the value of the BollingerBand-lines, which apply on indicator data. If I use the iBands or iCustom function, I have no possibility to choose that it belongs to an indicator and I don't want to write down the code for every line of the BB to find out if it got crossed.
[Deleted]
This new 418 version has a seriousl bug, it will affect all ex4 which call double DLL fuctions. If the fuction of the DLL is double, it will return "-1.#IND" or other error value. If the fuction of the DLL is int, it is ok. http://Jmi8.com
[Deleted]
Hello all, Im kind of new with mql4 language, and I'm facing a weird problem (weird to me at least :) ). I have a custom script, with the following function : void valuate_operation(double currency_spread, double lot_size, double take_profit, double stop_loss, int current_tick, int...
Can anyoneadvise me on this error? I have builta set of common functions that I’m going to call in all my own indicators. Instead ofrecoding each function in every indicator, I put them all in a Library and nowI’m trying to import the library and the functions in the indicator. It...
I have been using MT4 some time with a demo account with a broker. Lately, I am facing problems with chart displays. There are discontinuities with whole blocks of bars missing from displays. When I reinstalled MT4, the charts were OK, but soon the problem reappeared. I find MT4 help is not...
Hey folks, I've found an indicator that probably deserves to be turned into an EA. It's under the Code Base as "ZigZag.mq4" but I'll repost it here for easiness of laziness ;) On anything higher than an hourly chart (M30 or less is no good), this thing seems to be hyper-intelligent at picking...
I am trying to display a rectangle from the start of the day 0000 to the current candle. How can I get start of the day into the Time[] section? ObjectCreate("Rectangle",OBJ_RECTANGLE,0,Time[24],RectangleLow,Time[0],RectangleHigh); ObjectSet("Rectangle",OBJPROP_SCALE,1.0);...
[Deleted]
Hello all, I have a problem running MetaTrader 4 after update via MetaQuotes LiveUpdate (latest, newest version). Before update, everything worked fine. And in last days I have been asked to update MT4. When I did it, and I started again MT4, program will not turn on. I checked the process
[Deleted]
  help needed  (6)
Hi I am wondering if someone could help to make GBP index like USD index (attached here). I found CCFp indicator but it is a bit different and I was thinking if someone could make similar one for other currencies like GBP, CHF, AUD, NZD,... Any help would be appreciated in advance. Jeff
I want an EA that buys Euro at 1.30 and sell it at 1.40 automatically, no matter how long it takes. How do I program and install the EA? Cheers.
THE VALUE POINT IN LATEST BUILD OF MT4 IS READING 0 ????????? CAUSING PROBLEMS ON EVERY EA AND INDI OUT THERE!!!!!!!
In codebase for publication should Advisor STORM over six weeks modernizing why not work? There is no answer at all!
  unbalanced parantheses  (77   1 2 3 4 5 ... 7 8)
I can't figure out the correct way to put the brackets. Please explain what my mistake is. int start() { //---- { pending = ExistOrders( NULL ); if (pending > 0 ) { return ;} positions = ExistPositions( NULL ); if (positions > 0 ) { return ;} } else { ticket= OrderSend ( Symbol
[Deleted]
Hi, I am a New to Forex Market and I am not aware of EA coding, So kindly convert below mentioned indicator into EA and provide me. It ll be greatful help to me. I am listed Indicators MQ4 below #property indicator_separate_window #property indicator_buffers 3 #property indicator_color1 Black...
[Deleted]
Hi Folks, I am writing some code for an EA, and am wondering how can I have the EA look at different time frames other than the time frame of the chart it is attached to. For example, if I attach my EA to a H1 chart. And the EA is coded with time[1], open[1] etc, these will be referring to the H1...
[Deleted]
Hello, can anyone give me an advice for a very special SW-problem with external input parameters: We are runnung an EA with external input parameters at the normal input-parameter menue.. This parameters can be changed at any time . The parameter changes are read by the EA and the EA responds to...
I need a script that will sound an alert when the enclosed TriangularMA Centered moving average crosses an adjustable EMA. I need to be able hear an audible alert, a text box and SMS email alerts. I want to choose the currency pair and time frame. I want to choose a unique sound so that the it can...
[Deleted]
By using OANDA, I found that the history data in the "History Center" missing between date 2012-Jan-13 & 2012-Mar-08 for EURUSD(1 Hour). Anyone please help. Thanks!