MQL4 and MetaTrader 4 - page 1092

[Deleted]
Hi, I am runng windows Vista x64, 80% of times when I copy some text ( pressing ctrl+c ) in MetaEditor it crashes, I believe this should be a problem with MetaEditor as my windows is very fresh with no problems, I tried to copy the text of Problem signature, but it was not working, so I post screen...
[Deleted]
Hello, I am a novice MQ4 programmer. I am looking for someone to hire to help me with completing my EA (the hard parts) and to educate me on the associated code. I would expect the programmer to place enough comments in the EA to explain the code intent and then time for us to discuss. I don't...
Hi, I am a newbie in MQL4 programming, I am having a problem applying my crossing MA Expert Advisor in my live trade? I made the program, successfully compile it, backtest it, quite happy with the result, ready to test it in the real live trading..... only to find this illogical problem... which is...
[Deleted]
Hi, I'm trying to write a program using the CCI index. I've noticed the chart value of CCI, and the value which the program obtain are different! When you write Comment("CCI: "+CCI); The value shown at the top-left of the chart is different from the value of the visual index. How is that possible?
I trie to create a time lock with this code but it doesn´t work all the time. Less trades are created, but when looking at the result I can se that there are two losses occuring within a smaller timeframe than the coded time lock should accept. Code explanation: If orderprofit is less than 0 I...
i am new to expert advisor. may i know how to set an exit if the current CCI value lower/higher than the previous value? if(iCCI(NULL,0,7,PRICE_TYPICAL,0)>iCCI(NULL,0,7,PRICE_TYPICAL,2)) ?? I really need help here!~
[Deleted]
I have a problem with assignments. In my code I have higher = (high - close)*0.33; the right side of the = operator has a value of 7.2 and the left has 0.99 after it is supposed to be initialized by the right side. higher,high, and close are declared as doubles and the high and close are assigned as...
This thread is a technical continuation of the "NFA ban on locking from 15 May 2009" thread. In particular, starting with this post: 'NFA bans locking from 15 May 2009' solandr 26.04.2009 12:06 2. If you have an American brokerage account you will divide it into 2 separate accounts of equal size. On
can anyone find a problem with the following code? four = (four*2) + 30; Is this bad coding? Because it is not doing what i want it to do. // ------------------------------------------ MORE DETAIL: - See the code below. // so every time "q" goes up in value by one, then the value of...
Hi Guys, I'm working on the current bar(j=0)..I know that Time[0] and Open[0] remain the same while the current bar is developing. I'm unable to get the next bid price which comes on the next tick on this current bar.. I like to be able to get the next current price(bid) which comes with the next...
[Deleted]
Hello. My name is Luke and i'm a beginer in forex and in programming. I wrote a very simple EA: int start(){if(   Close[1]>iBands(NULL,0,10,2,0,PRICE_CLOSE,MODE_LOWER,1)&&   Open[1]>iBands(NULL,0,10,2,0,PRICE_CLOSE,MODE_LOWER,1)&&   Low[1]<iBands(NULL,0,10,2,0,PRICE_CLOSE,MODE_LOWER,1)&&...
I want to draw a line to see what value my trailingstop has... Thats my code but there is only one dot when the EA is running, how can I program it that it creates many dots to make some kind of a line out of it... ObjectCreate("TR",OBJ_ARROW,0,TimeCurrent(),TRStop); ObjectSet("TR"...
[Deleted]
My platform flashes the "Not Responding" at the top left of the platform. This goes on and off all the time. I have uninstalled and reinstalled, used different brokers, installed in different files. The charts sometimes flash on and off, when I am trying to configure an Ea that I have open it...
I want to adjust some indicator parameter on the fly using template because structure doesn't change just the parameter values. So is it possible to load (and reload/refresh) a template programmatically
Hey, is it possible to create lines (not the straight ones) with an EA (not an indicator)? I didn't find any useful parameters when using the ObjectCreate()... I though it may be possible to draw just one dot everytime the EA is runned but you can't do that either with ObjectCreate. I want to use...
[Deleted]
I'm trying to find ways to localize an EA based on the current language selected by the user for the MetaTrader GUI. Browsing through the MQL4 documentation I found no API that can help figuring out what is the current UI language. Also I could not locate actually where MetaTrader stores that...
Hi, I have written an ea which has the following code-lines in his start function:   if(IsTradeAllowed()==false)       {         Alert("You have to activate your ea first or there is a disconnection between the server connection!");         return;      } Now it is sometimes the problem, that I get...
THE METATRADER 4 SMI GAP MARKET STRATEGY: --PLACE ORDERS OF BUY AND/OR SELL(depending on market mood) FOR A HIGHER AMOUNT,SAY,O.O5% OF TOTAL CAPITAL(IN A MARGIN ACCOUNT OF 500:1),NEAR THE PRICE OF THE LAST MINUTE CANDLESTICK OF THE DAY,THAT IS,AT 18.24 METATRADER TIME --USE TIGHT STOP LOSS,SAY 5...
[Deleted]
I've been setting OBJPROP_BACK to false to get the object to appear on top of candles (so that they can be seen). However, in build 409 this no longer seems to be working. Anybody have any ideas? Paul
I am placing text in a label but as soon as the text length expands, instead of the text moving to the right, it moves off to the left like it is right justified or something. Any ideas? ObjectCreate ( "alerttext" , OBJ_LABEL , 0 , 0 , 0 , 0 , 0 ) ; ObjectSet ( "alerttext" , OBJPROP_CORNER
  Basic Exel  (2)
Hey, does anyone know if its possible to export and import data from MetaTrader to exel? I was was thinking about an EA that may give some data to exel while running and let exel do some calculations and import the results than back to the EA... I have no idea what exacly to do with this ability
[Deleted]
I would like to use the tick by tick data of a forex pair outside MT4. Does the MT4 platform allow a data stream to be used by a third party software program? Thanks
[Deleted]
Hi everyone, I'm a new boy at this Forex and Meta Trader 4. Could someone please explain 2 things for me. 1/ Under the 'Trade Tab' at the bottom we have our 'Order' and on that order is the 'Size'. What exactly does that mean? Is 1 for example, equal to $1, $10, $100 (or 1 unit of whatever currency...
Hi all, I am coding an interface in C++ and ncurses. I simply need to connect to MT4 through DDE, retrieve market prices (ex EURUSD ) that I will be storing into arrays and make an analysis realtime. On the DDE side the only resource I have is the MSDN, but i'm getting lost in all the bits and
[Deleted]
  EA protection!?  (3)
Hello i want to protect my ea!? I can make it work on 1 account and also make it work for a limeted time (period protection) But i want both!! account number protection and period protection! How must i do that? Your help would be welcome
[Deleted]
Hello to the forum. I have an unusual problem regarding a time filter. In backtesting the filter works well ( no problems ). When running the EA on a live account, the filter still works well, but there is a problem with the difference in server time and local time. EA is set to trade 17:00 GMT to...
The end of the previous episode is here . The rules of the series remain the same
Hi I have been using IBFX partial close for more than a year now. Suddenly when I load say @ 30 pips close 50% of position. Suddenly it closes at 15pips 50% of my position. I recently moved my Accounts to AUX, did they changed anything there. In the past I use it and had no trouble, Earlier this...
Interview with Dr. Alexander Elder: "I want to be a psychiatrist in the market" is published at mql5.com: I think financial markets are like manic-depressive patients. Sell when they have mania, and buy when they have depression. The envelope helps me determine where these levels of depression and...
[Deleted]
Hi, I wrote an EA which is applied to 24 pairs of currencies. MY EA is fairly complex which has many routines calling each other. I notice that sometimes my EA will complete the tasks but sometimes it is kind of stopped halfway, making the EA works intermittently. Can someone please enlighten me how...