Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1030

To post a new topic, please log in or register
I would like to know how to avoid the famous "130:iinvalid stops" error. Thank you in advance.
Well... after about 9 months of intensive programming it finally looks like I've succeeded with a signalling system that really works. This "unreal" graph is a backtest result. But after two weeks of forward testing on demo the preliminary results are fully inline with the back tests... getting...
Hello, MACD Sample can work when I run in Tester. I changed its name to MACD Sample_1 which is not work in Tester. I don't know why it happened. Could anyone can explain that reason? Thank you in advance. szfishing
if i use a universal EMA setting some thing like this extern double ShortEma = 15; extern double LongEma = 35; extern int TakeProfit=750; extern int TrailingStop=100; extern int StopLoss = 100; extern int MAMode1 = 0; // 0=SMA 1=EMA 2=Smoothed 3=Linear Weighted - EMA rules (usually) on...
Today, I updated MT4 to the latest version (build 222) and noticed that the predefined variable "Point" returns 0 when using a sub-pip broker (such as United World Capital, which is the default demo broker in 222 build). MarketInfo(Symbol(), MODE_POINT) also returns 0. As as result, any code that...
Hi  I have created some code (from Period_converter_opt.mq4) to generate a HST file which is the differnce between to lines).  However, I find that when the difference goes -ve MT4 treats the data as invalid and refuses to display it and indeed removes it from the HST file.  Is anyone aware of this...
hi folks, i have a question on backtesting: what is the time frame and minimum number of orders to be backtested before you consider the code for testing on a life demo account? Do you consider a wider market structure over the back-testing period: for instance since second half 2007 the makret are...
I have custom indicators I use right now that I want to attach to charts, and then utilize information from the custom indicators to guide an expert advisor with automated trading. How do I pull in variables from custom indicators into an EA to use for automated trading?
in the following code i am trying to draw an arrow on the cci 8 change but i think i am doing something wrong, but can't figure it out help //+------------------------------------------------------------------+ //| custom_cci.mq4 | //|...
Is there an indicator code that places mMMLs automatically within the MMLs? If so, where might I find it? If not, how do I go about using editor to write the program? I have never used it before. Thanks! Tom
Hi all, plz, add 1 simple ma, period 3 for this indicator and when they cross,the alert will pop up with sound and information about the pair. sorry,not 3 sma, but only 1 sma, period 3 I attach the indicator. Thank you in advance.
I'm very interesting in this indicator, especially the color between the faseMA and the SlowMA. But the bad news is that I'm not good at program, so if you have this indicator or you can make a program of it, please share it to me.  The picture is the sample, the other is the MACD I'm in used. The...
Hello. I've written a number of Expert Advisors, but writing an Indicator is different (apparently). I can't my indicator to produce output except for the last 4 (rightmost - most recent) bars. I'm sure I'm doing something stupid, I just can see it. I've posted the code below. Will somebody please...
Firs sorry for my bad English.. Now i need some script to chek, is there open orders. Something like this: if (OrderType()>1) { .... } or MagigNumber, Order ticket... I don't know, and while i have this problem, i can't see the final ideia of EA. So please can somebady help me... please..
Hi Guys, First of all, I want to thank you all for contributing on this fine forum. I'm writing my own EA, but I still haven't mastered mql4... this problem is very easy to solve for a beginner coder :) : The idea of this function is not to trade, when last trade was closed with a loss: so a()=0 -...
Hello, How can we code a Macd and Stochastic Cross into an Expert Advisor. For example, if we have the Macd and the Stochastic in a same windowand that we want to open an order when the Macd signal goes over/underthe Stochactic main ? I have studied arrays but i don't see how we can do it.
If 2 or more data points in a range have the same highest price or lowest price for the range, will the newest bar be returned?
Francois Tremblay
Hi everyone, I need your help to understand something. Why on earth when I use this file "s_wininet.mq4", I have 4 pop up asking for my authorization to use the different wininet functions and when I use FFCal.mq4, I don't have any pop up while it's using the same functions ?? Thanks for your help....
Notice to Members I-09-10 April 13, 2009 Effective Date of NFA Requirements Regarding Forex Orders NFA has received notice that the Commodity Futures Trading Commission has approved new NFA Compliance Rule 2-43 regarding forex orders. The prohibition on carrying offsetting transactions will be...
Hello, I need to create a very simple indicator that divides volume by other indicator. Could someone, please, help me? I am just starting programming in MQL. Thanks, Miguel
HELLO FRDS I AM USING FRACTAL INDICATOR IN THE PLATEFORM ON A 4 H DATA 2 QUESTIONS FIRST ABOUT FRACTAL IS IT POSSIBLE TO HAVE A CODE WHERE I CAN CUSTOMISE THE NUMBER OF PERIOD/CANDLE THE FRACTAL STUDY USE ? MEANS INSTEAD OF 5 BARS LETS SAY 13 BARS ??? WHAT DO U THNIK ABOUT IT ? SECOND ON THE SCREEN...
I am testing an EA in demo but the comment and print functions do not work. The EA compiles successfully but nothing is ever printed in the journal, and no comments in the top left of the chart. The EA is loaded successfully an initialised and that's all. int...
  ADX EA (2)
Is there an adx ea that works. Please send thanks
Im trying to find the resistence level of the last 100 bars to use for a stop loss in an EA. I have tried to code and havent been successful with it, can someone please help me code that? this is basically everything I know Im doing right....which isnt much. int x = (100); for (int i = 0; i<=x; i++)...
My EA is set to trade only at certain times during the day (not between London close and Asian open), but I cannot get this to work in the strategy tester.  I thought I might be able to use iTime, but don't know how to get iTime to return values for "hour." Does anyone know how to get the "hour"...
  New UT . ??.. (2)
UT... M1, M5,...MN.... these UT are so old ! All other platform now allow us to get x ticks, x seconds, x minutes, x volume, ... I think that MetaTrader has to get performed, I 'ld so, but for now, I have to learn other language to make my system. I didn't know where saying that, so I write this...
  Fapturbo (33   1 2 3 4)
Can someone help me with setup of Fapturbo14 ?
Is there a way to position the comments on the top right of the charts as opposed to the top left?
What is wrong with this IF statement. It doesn't seem to work properly. if ( (Hour()== 7) && (Minute() >= 58) ) { }
I need some help in writing the code to open multiple orders in an ea I wrote. It should be able to open another buy, or sell order whenever conditions in the ea are met. Also, how do I place it in order to continue searching through conditions. Thanks in advance.
1...102310241025102610271028102910301031103210331034103510361037...1250