Download MetaTrader 5

MQL4 and MetaTrader 4 - page 396

To post a new topic, please log in or register
Hello again folks, I have written an indicator which looks for a pinbar after a moving average cross over and have been trying in every spare minute for the last week to reliably get it to send me an email when conditions are satisfied. I have searched and read posts and documentation and the best i...
What is Immutable object in java? How to make an Object Immutable in Java? Is this any design pattern in Java?
Hi All, Once my MetaTrader4 is newly installed everything works fine. I am able to write my EA in mql4, when i compile ex4 file is created in Experts folder and it works fine. But, few hours after MetaTrader goes nuts. Here I mean that when i compile existing mq4 file it makes ex4 file disappear...
I am using the basic send pending script (seen here) http://pastebin.com/0aLPLuGm It enters the trade no problem, but it doesn't calculate stop loss/profit. My question is, how can I calculate a -100 stop loss and +30 take profit based on the entry price. Thanks in advance, Terry
Hi, I have had the offline button checked and now is unchecked. However the candle and bid line is frozen. It is live on all other timeframes.I even opened up another chart and it is the same but only on one timeframe please help maddog
Hi,I want to set up a TP on my ea, which equals (High[2]-Low[2])*1.5 Which is simply put range of a certain bar multplied by 1.5.. My question is How do I type it correctly because it seems that i make a calculation error. Thank you.   for(int s=OrdersTotal()-1;s>=0;s--)  {    if(OrderSelect(s...
  DLLs and passing control (21   1 2 3)
Is there a way to call a function in a DLL file (I'm using C++) and let it run while MT4 retains control. Specifically, it's for a tick collector. I would like the DLL to periodically write the logs to file, but I don't want to miss any incoming ticks during the open/write/close process. If not, the...
I am very grateful to 7Bit for his contribution elsewhere in the forum on creating a DLL with Lazarus/Free Pascal which can pass data between the DLL and an EA. I would like to install a Pascal InputBox in 7Bit's DLL foo() function to enable the user to pass text input (commands) to the EA. I have...
How to add break line in comment? when i tried it shows last comment. eg: Comment("ABC"); Comment("XYZ"); Comment("123"); In Screen which shows final comment only which is "123". How to display all comments line by line?
Hi I've built a code to an automatic indicator which calculate the range between 2 swing points (for Gann) and divide the range by a custom number (either 8 or 10) and than draw it on the chart and also draw a vertical line for the time forecast. Now I want to be able to edit and adjust the swing...
hello traders, i want to see what's the 1h term, and 30m to make the best decision. i know i can open it twice, but is it possible to have two timeframes in one window? does this script / template exist ? have a nice trade day, Marcel,
Hello. This is 180 cci. But still it has zigzag. I want to make it smooth. Below is code. Plz help. //+------------------------------------------------------------------+//|                                                          CCI.mq4 |//|                      Copyright © 2004, MetaQuotes...
Hi. Can someone participate in mql4 market if banned in mql5? This important to me as i had submitted some products to help market in testing the upcoming market and i have a lot in store for forex traders. Raptor has ban me for 10 years in mql5 and now what will happen. I cant even access my...
anybody can help me out to create volatility stop like this in the chart? Those dots. I heard this indicator is called volatility stop. Any help? I have no clue for this. I hope somebody has already created for me to download... Oh --- ><
Hi: I am using an indicator I have traded manually for 18 months with good success. I am attempting to automate the process. However, after reading about 25 posts relating to the subject of passing data from a custom indicator, I am having no success. I am calling the indicator as follows: double...
Dear Forum, I'm trying to program and test a simple base EMA program that buy and sell on the EMA crosses. There is the problema that the program is not opening orders, is only trying to close orders, I've reade the MQL4 references and tutorial for EA creation but till now I've not a clear idea of...
Hi everyone, I really search the internet for hours but I do not find an answer to my question. Let us assume there are two terminals: Terminal A: terminal with broker X Terminal B: terminal with broker Y With respect to the quotes from Terminal A and B, I want to execute orders in Terminal A and B...
  Help with this function (13   1 2)
//+------------------------------------------------------------------+//|                                               malfunc_tester.mq4 |//|                            Copyright © 2013, |//|...
Can anyone tell me where I can download this indicator for an MT4 platform Thanks smw10
  Why? (6)
Why does this SomeDouble=SomeDouble*-1; Causes a ea to fail to compile, while this SomeDouble=-1*SomeDouble; Works fine?
I'm trying to find a solid way to check if the history is loaded in a Custom Indicator. I only want my indicator to run when I've got my history available. I could try to use OrdersHistoryTotal() and check if that amount is larger than 0, but that would fail on new accounts? Or does the initial...
hello to the programming experts here, I got a short question: when - just as a simple example - using a code line like : for(i=0;i==Bars;i++) Buffer[i]=Close[i]; in a custom indicator (in a "separate_window") the Close prices are drawn from Bar 0 to the max number of Bars, it works fine......
Lets assume we have something like MarketInfo("EURUSD",MODE_BID); Then someone who has prefix and suffix wants to use the code. Which is the best way to add it to the "EURUSD" string. I know there are many ways to link strings but i want to make sure.
New article MQL5 Cookbook: Indicator Subwindow Controls - Buttons has been published at mql5.com: In this article, we will consider an example of developing a user interface with button controls. To convey the idea of interactivity to the user, buttons will change their colors when the cursor hovers...
Hi everyone, is there a magic number for manual orders? some on this forum have a view that by default it is zero. is it so? is there a reliable way to identify and differentiate between multiple orders placed manually?
Hello, EA running on a PC, VPS or dedicated server. Have you set up a monitoring service that control from time to time that your EA is always on? Some kind of watchdog.
Please think with me for a bit. I'm looking for good reasons to be found in indicators When NOT tot trade on the 15m chart on LONG. So far i collected: when MacD 1hour is fallingwhen MacD 4hour is fallingwhen price is above 4H and 1H 200Ema but 15m is onder 200Emawhen price is outside Pivot R3 or...
hello, i'm writing a code for ea, ea will open multiple orders buy n sell several times until close all profit. 'n i need to know how to code : if last order op buy, then ea will not open buy until it op sell first and vice versa Could someone give me a help here ? Thanks in advance...
  Indicators that work. (19   1 2)
I would guess that quite a few of the posters here have used various indicators in their technical analysis and incorporated the indicators in their work. I do wonder, has anyone actually used an indicator and found it to work consistently in the long term? Obviously, I'm talking about the standard...
1...389390391392393394395396397398399400401402403...1244