MQL4 and MetaTrader 4 - page 1086

To post a new topic, please log in or register
Anybody know how to code an average total holding days of a trade from the account history?
Is there any way to turn off or hide the indicator details and coefficients displayed on the screen so that proprietary indicators are private?
hi everyone, I need programmers to do a few EA, If you are keen i will give you more details. pls let me know your rate Regards Hans Ng
I have been trying to get the following code into a DLL for use by an Advisor. I am stumped...even after looking through all the error 127 postings on this forum. I am using VS2008 C++ to create the DLL. Below is my C++ Code. // Genetic Test.cpp : Defines the exported functions for the DLL...
  downloads (1)
hi unable to down load to desktop? keeps asking me where to download to if i say adobe, adobe will not allow. what am i doing wrong. d n
Hello to all, I have a working EA. Not saying it is a profitable EA. It is for experimenting or for a better understanding to this MQL4. Let's say a sell position is opened at .8555 AUDUSD. 12/15/2009 and that a 20 ATR was calculated day before at .0034. I want to set a stop for 2 times the ATR of...
I found this Ea and indictor on the forex-tsd website. It backtest great but won't trade LIVE. Can anyone help me??
hello, i need a custom indicator which will show me the values of all of my indicators. (for example stochastic: i dont want to just see the line i want t see the line AND below each point in the line (every bar) the value of that point in the line. (probably writtent topdown  so as to avoid values...
i need iStochastic to have fixed values. from 0 to 1. I can choose that in the chart but while i program that into an ea it has varying values it seems am i right? can I make it be 0 to 1? any info from the gurus will be much appreciated. thank you.
I can't set any of price arrow symbols (1-6) in a SetIndexArrow(0, xxx) function. Instead of a price label I get the symbol for SYMBOL_STOPSIGN! Dear moderators, please have some technical people take a look at this issue. Thanks in advance!
Hi, How can I import stock data into MetaTrader and manipulate them with the indicators? Ofcourse I mean offline for example Daily and Weekly. Regards
Hi, I am trying to write a function that returns a round number if it's present between two values; e.g. 1.66500 1.67000 1.67500 I want the funtion to take two price value and then return the round number between these values. I have already written this function...
Dear Programmers, I would like to send an e-mail with HTML codes. Normally, I ought to use two lines in the Header of the e-mail: MIME-Version: 1.0 Content-type: text/html; charset=iso-8859-2 But, how can we edit the Header of the e-mail? Or is there any way we can use HTML codes...
I'm trying to debug an indicator and and have been using the Strategy Tester along with the data window to try and get the exact values at specific events in my indicator. There is a balancing act between the speed you play time forward and the ability to click pause on the exact tick that triggered...
Dear All, Is there a way of having a smoother max/min of candle size. Using the max/min button either gives too large or small a candle for the one minite chart. The same is true for moving cursor along the time line. Any help much appreciated. D Fow
When Balance is change. How can i call my scripts
I want to pick up the colour change from green to red and vice versa on the Accelerator Oscillator and send an alert. I don't see any change of colour in the code. What variables would I use to confirm the colour change?...
Hey guys, I just found out about this site http://www.forex-robots.com, they do Real Money accounts competition between some of the EAs out there, like the Megadroid, FAPTurbo and the Ivybot. That way we can have some real proofs before making a desicion on which EA to buy. Hope it is helpful, Joe
Hello, 1. I have an external application which decides when to fire orders. 2. I know that expert advisor can be used to automate trading. 3. Now I want to link my external application to the expert advisor, which I think could be done through a DLL. The DLL example in the samples directory is just...
Hi Guys, I'm sorry if my question is a bit redundant. I've been searching the net all over for the answer, but I'm afraid of being fooled or scammed or otherwise hurt badly. So I'd like to ask your advice. I'm looking for a Meta Trader 4 supporting Forex broker which is based in Europe, UK or other...
If anybody want to take a part in expert advisors competition on real accounts I'll translate the rules. Now the rules are here in russian: http://acompetition.love-craft.ru/?q=node/1
If you're running several terminal-instances on a server, then it's really useful if you can see on first sight, which terminal you have in front of yourself. I've already changed the icon, and the colours, indicating productive environments. I'd find it extremely useful if one could modify the...
Does anyone know the code to say, "if Stochastic main>signal --> get current price and put it in a variable" For example...something like, double take_profit; if( stochastic_blue > stochastic_red ) {take_prifit = current price} ....so that I can use this variable called "take_profit" in my...
Hi, I am trying to create a simple indicator. Everyday at 12 am I want the the system to draw a rectangle from the low of 11 am to the high of 3 pm. I am stuck honestly as nothing is appearing on my screen, can somone give me a short insight on what I could be doing wrong ? Many thanks in advance,...
Hi, Does anyone know where I can learn about the Fibonacci Pivots custom indicator included in MT4? I want to code it in an EA and I can't figure out what parameters I can use to get the support and resistance levels? Please help. Thanks
  LSMA Question (2)
Trying to pin point when downward trend stops and upward trend begins. . Here's the LSMA code: . //+------------------------------------------------------------------+ //| | //| Copyright © 2004, MetaQuotes Software Corp. | //| http://www.metaquotes.net/ |...
my indicator are eating quite a lot of memory while referencing to other timeframe like example int MA_Direction(int TF, string Pair) { double F_MA = iMA(Pair, TF, 5, 0, MODE_EMA, PRICE_CLOSE, 0); double S_MA = iMA(Pair, TF, 5, 0, MODE_EMA, PRICE_CLOSE, 1); if(F_MA > S_MA) return(1); // UP...
Hi Can anyone please help me to convert this code for DPO (detrend price oscillator)? Thanks a lot. inputs: Price( Close ), Length( 250 ) ; variables: DPO( 0 ) ; DPO = Detrend( Price, Length ) ; if DPO crosses over 0 then Buy next bar market else if DPO crosses under 0 then Sell short...
This is a series, u will be getting the deatils bit by bit. I will not want any to fall victim of some people SELLING A FRAUD as EA. the next addition to this topic will be evidence that the ea IS a FRAUD