MQL4 and MetaTrader 4 - page 519

To post a new topic, please log in or register
I would like an Indicator to do the following Horizantal lines 1000 pips range then 4 quarters of 250 pips then half the quarter with 50 pips above and below. then to do that on all the charts I have attached a pic for you also the Indi should do example GU 1.5000 - 1.6000 - 1.7000 should show...
  basket pips (3)
I'm trying to tackle an area re: basketpips I'm not sure if i ought concern myself with pipvalue at all. i.e. http://www.earnforex.com/pip-value-calculator Account Currency AUD Currency pair AUDJPY Position size, units 100000 Current AUD/JPY 87.672 Price of pip 11...
I need an very simple and easy ea wich is opening every 100 an buy trade and every 200 and sell trade ! But I am a very noob when it is going near to programming something maybe someone helps a noob ( I will be very pleasured in your help ! Kind regards Nikita
I would like that the maximum slippage for the OrderClose function to be the distance between the current price action and the preset STOP LOSS I set it like this but it doesnt work,it gives me an error 4051 for invalid slippage please help: FOR BUY:     for(i=0; i<OrdersTotal(); i++)   {...
everyday I want to get high/low value for first candle.ie. 00.00AM I tried with 4hr TF: But shows different candle high/low.i valdiate date with nday!=Day(); Please help me to fix the issue. #define  ZEROAM 00    int shift=iBarShift(NULL,0,ZEROAM);    hval=iHigh(NULL,0,shift);    lval=iLow(NULL,0...
New article Building an Automatic News Trader has been published at mql5.com: This is the continuation of Another MQL5 OOP class article which showed you how to build a simple OO EA from scratch and gave you some tips on object-oriented programming. Today I am showing you the technical basics needed...
Assume ! my interrest separate windows is number 2 ( Total separate windows = 3). How about code for self get this separate windows? thank you
I want to play sound when: 1. Pending order active>>sound1 2. TP reached>> sound2 3 SL hit>> sound3 int start()  {   int    counted_bars=IndicatorCounted();//----   temp = 0;   for (int i=0;i<OrdersTotal();i++)   {      OrderSelect(i, SELECT_BY_POS);      if (OrderSymbol() == Symbol()) temp++;...
I downloaded the latest build of MT4 (509) and tried to use the strategy tester offline with tick data.. It reads the EAs that are EX4 files but does not seem to read the EAs which are MQL4 files. Is there something I am doing wrong?
Hi!! Any one please help me to find this problem; when i use iCustom to call "FXA0 - RSI Crossing 50 plus ATR ver1[1].2" indicator only 0value return to me at all time. double RSI=1; RSI = iCustom(NULL, PERIOD_H1, "FXA0 - RSI Crossing 50 plus ATR ver1[1].2", 0.15, 21, 21, 2, 0);
Hi, the idea: start a function on Saturday or Sunday when the market is closed that e.g. investigates the performance of a (each single) system or of all together in order to e.g. change the parameter that e.g. calculates the lotsizes for the next week. The start()-function is started at each...
Hi all: I just notice that on MT4 platform, there is always a Sunday's "small" bar which is usually considered as part of Monday's market behavior. Is there any way to absorb the Sunday's bar into the Monday's Bar please? Thanks
int TrailingStop[10];int init()  {  Print("+++++ init done");  string s =DoubleToStr(TrailingStop,0);  return(0);  }int deinit() { return(0);   }int start() {  return(0);  } compiles well on compile time, but throws error on runtime: EURUSD,H1: invalid double number as parameter 1 for 'DoubleToStr'...
Hi all, I need to get the number of orders that have been closed. Could you show me how could one get that from order history ? thank you in advance for any support provided Luis
Just a snippet of information that I have not seen written into the documentation it might be useful to someone when debugging. I accidentally declared a variable both globalscope and localy it works in the following way. If a variable is declared globalscope and a variable of the same name is...
Hi dear noob brothers (and other). I've been suffering from this "unbalanced left parenthesis" from time to time and wanted to share with you an article I've found here, on how to find them in a more comf. way: https://www.mql5.com/en/articles/1547 Enjoy.
Hi, My code for adding Martingale money management to include in the lotsize calculation works in the tester but doesn't appear to work in a live account. (Please note my code isn't the prettiest, or possible the most efficient, but it did seem to work in tester, so appologese for posting so much...
I am new to Forex and MQL4 and currently trying out several systems. I'm trying to build an indicator that would draw an arrow when the conditions are met. I did some research and took a stab at writing the indicator, unfortunately it is not working. I would really appreciate any help in making this...
Hi, I want to close old order when new bar is opened. I tried to code it, but it doesn't work. Please tell me what its wrong. Thank you. double last_bar;int init(){//----   last_bar = Open[1];//----   return(0);}//------------------------------------------------------------------int...
for(int C = 0;C<Bars; C++){string name = "Label"+C;if(ObjectFind(name ) != -1) ObjectDelete(name);ObjectCreate(name ,OBJ_LABEL, 0, 0, 0, 0, 0);ObjectSet(name, OBJPROP_COLOR, Green); ObjectSet(name, OBJPROP_TIME1, Time[C] );ObjectSet(name, OBJPROP_PRICE1, High[C]);  ObjectSetText(name, "Test", 10,...
I am try to write a EA help me to check Candle sticks, but i don't know how to coding it, somebody who expert MQL4, please ! help me . - I have a Candle sticks on time frame M1 . - One Bollinger bands with Period is 18. - One Moving Average (3, exponential, close). - One MACD Histogram. - One...
int i;                        int  x;                        double BBI[];                        ArrayResize(BBI,20);                        double sum;                        double std;                        double upr;                        double dnr;                        double...
Hi all! I have a problem in MQ4, that if I call iMAOnArray on an indicator's data (for example Awesome oscill, or Bulls), it doesn't return the same value as the same (exponential 3) MA that I put on the same indicator by hand. The difference is about 0.03 in both direction. My code is (for example)...
If i want to capture Bar1 (closeprice), Bar2 (closeprice), Bar3(closeprice), and Bar4 (closeprice), how to write and what command suppose to use? Somebody can help...Thank q
please help me?? how to make a Fibonacci as shown below, in order to format .mq4,do not auto. thank you
Can anybody code for me a Technical Indicator in a separate window that can tell me the maximum spread Bid/Ask difference that was available for a given candle while trading. It should support all Timeframes.
Hi! I've been writing and testing my EA on 4 digit broker (insta),and everything worked perfectly,today I've opened pepperstone demo account and it places pending orders too far ... Now, I am a little stuck because I have a function that "adjusts" my ea to any broker(any number of digits), but for...
Hi, In the history center it possible to download quots data with 1M resolution (1 minutes) The strategy tester which works on this downloaded data may be used in "Every tick" mode. In this mode the EA is called on every tick in the history (many ticks per minutes). So how does this "every tick"...
hello, i've been working on a TI that write hist files as range bars. the first version works fairly well but i came across a problem in build509 that didn't arise in previous builds (i think). i was aiming to have a profile with pairs colecting data and building hist files acordingly, in previous...
I write some detect ticket's fuction,but,the forex price have refresh,but my EA not fast run,result my ticket not fast close,why