MQL4 and MetaTrader 4 - page 769

I made my own EA and Customer Indicator. The EA uses iCustom to call the Custom Indicator. As far as I can tell, both programs are working fine. If I set the Use Date in the strategy tester to just be for the last couple months, the EA opens trades no problem, but if I set it to a longer period of...
[Deleted]
My MT4 platform was able to correctly render full set of characters in my displays until the new release (Build 6xx). Not sure why. Is any one else having issues rendering their non-English Alphabet character set. Please help, MQL4 development team. Help.
[Deleted]
//+------------------------------------------------------------------+ //| px.mq4 | //| Copyright 2014, MetaQuotes Software Corp. | //| http://www.metaquotes.net |
[Deleted]
Hello, I'm working on an expert that will sometimes use sell-stop orders to get out of a position, rather than just having a stop-loss on that position. For example, if a long order for EURUSD has been placed at 1.0000, it may place sell-stop orders at 0.9950, 0.9900 and 0.9850 so that these orders...
Does anyone know how to get the broker commission in an EA for a symbol without placing an order. Thanks.
Hi all, Can anyone link Neuroshell and MT4 via DLL? Without DDE, Loadera and DT-Smarta - via DLL. Need to transfer quotes, transfer trading signals and get a report on trading signals execution? Or maybe there is a ready-made DLL? The office told me that this is possible and that such a DLL already
Is it normal for tester to repeatedly load and remove custom indicators with MT4 Build 625? On demo account the indicator loads and does not remove itself while running.. The indicator is Heiken Ashi and its called on three timeframes., yet shows its repeatedly removing and loading on just one...
Hi guys, I need a little programmers help. I want to use in my EA data stored in memory from another program. Example: I copy from excel value "2014" and I want it to be assigned to variable named YearValue in my EA. Any ideas how to make it ? ####### Excel, Cell A1, value "2014" - copy to clipboard...
[Deleted]
Hello, My broker (OANDA) does not allow hedging. Given this fact, consider this code fragment: int ticket; OnInit() { ticket = OrderSend(Symbol(),OP_BUY,0.02,Ask,3,0,0,"the long trade",0,0,Blue); } OnTick() { OrderSelect(ticket,SELECT_BY_TICKET); OrderPrint(); } This will continuously print the...
extern bool macdzirve,macddip,RSIzirve,RSIdip,CCIzirve,CCIdip;int start(){double macd=iMACD(Symbol(),0,12,26,9,0,0,0)*10000;double RSI=iRSI(Symbol(),0,14,0,0);double CCI=iCCI(Symbol(),0,100,0...
Hello everyone, The following code draws arrows of the latest high and low from the ZigZag indicator. The arrows will not be repainted and thus stay on the chart. The code snipped presented here is from someone else. I wanted to kindly ask if someone can built a loop or counter to find the number of...
for (i = 0;i < limit;i++) and for (i = limit;i >= 0;i--) What optimum condition to use count forward and count backward ? thank you
I am trying to code an HMA EA but I can't figure out what value it returns when it changes from one color to the other. Any assistance will be highly appreciated.
[Deleted]
Hi All, Sorry if this is a regular question, but I couldn't find the answers I was looking for. I have been a .NET developer for many years, but am new to MQL. I am looking to do the following, and would like to know if it's possible.... Access the data in the Trade and Account History tabs from the...
Hi, I know the list of changes for migrants of the existing MQL4. What I would like to ask is there a list of wishes of features for the actual MQL4 - maybe with an easy way of voting? I'd like to have e.g. an additional refresh option of the right-mouse-button-menu if the mouse is over the...
Hi, I know that it must be possible, but I have been unable to find out how. I use some buffers just for calculations that I don't really want to display in the data window. using INDICATOR_CALCULATIONS in SetIndexBuffer seems like it may be the way to go, but as usual, the documentation is not very...
i think this is bad upgrade ... because all mt4 at my laptop connect failed . but at codebase i can download EA script and indicator ... my internet connection is good ... 06:33:13.981 OctaTrader build 625 started (Octa Markets Inc.) 06:33:13.982 Data Folder: C:\Program Files (x86)\OctaTrader 06:33...
  Create Objet  (5)
Hi all, Here the code I use to insert data   ObjectCreate("txt_0",OBJ_TEXT,0,TimeCurrent() -100, Close[0] + 140 * Point);      ObjectSetText("txt_0", "Example", 14, "Times New Roman", Orange);   ObjectMove("txt_0", 0, TimeCurrent() - 100, Close[0] + 140 * Point); I would need to insert data on...
Ex. covert 5 digit to 3 digit. thank you
Hi, I'm using a Renko EA to produce my renko charts. but randomly the EA freezes during the file operations. I don't see any option to set a timeout delay when I do operations against a file. what Can I do to insure that the EA is never locked? thanks
is there a way to rename the label at the top left hand corner of MT4? I'm trying to shorten it so that another program can recognize it. So instead of saying 274530 Oanda Meta trader Account EURUSD IT WOULD SAY 274530 Oanda Meta trader Account If so, please guide me on how to do it. Thanks rick
If you declared AND initialize some Global and Local Variables, are these variables re-initialized after every cycle reaches return(0) or does it go back to Start() and skips the re-initialization of the variables? My own opinion is that it does not re-initialize the variables on every cycle - but...
[Deleted]
Hello, I am coding a small grid system and I have a problem now and can't solve that. For my system I need a function that closes all trades, if one order closed, for example at the stoploss or at the takeprofit. Can somebody help me please ? I thought that I need something that counts my closed...
Hi, 1) OnTick() is executed if a new Tick has been sent by the server. But if the the server gets buzzy I do hae the feeling the data stream slows down :( 2) If I am opening an order it takes some time I can get a new and actual prices by RefreshRates(); 3) If I am now within...
  Mt4 servers list  (6)
My Mt4(Broker: CNS invest) crashed. unable to reinstall, may be due to already having some related files in registry. fortunately mt4 of other broker is still installed and running properly. And as its possible to run Account of different broker in another brokers terminal only if you have The *.srv...
Hi i am a new programmer. Can someone please give me an answer to why I would use "Long" as integer type rather than "int" when creating ivolume variable? I speculate the reason is because int type is 4 bytes and Long type is 8 bytes...... but that should not make a difference for Volume. So why?...
[Deleted]
My EA doesn't close all my orders when reached a specified level during news period . There are 14 orders floating and it just only close up 12 orders leave 2 more floating . It is dangerous if I was not there to monitor my trades . How can I solve this problem ???? Does anyone has a problem like...
There are many many many changes going on in MT5 New tester results panel Checkin/Checkout Magazines etc. It occurred to me that since having the new ability to move MT4 scripts into MT5 - that work in MT4 work will slow and not cover new features. So............ I just want to mention..... I...
What hidden s/l,t/p? What is the usage? Please support me, is there any functions available to place hidden s/l,t/p? Thanks in Advance