MQL4 and MetaTrader 4 - page 860

[Deleted]
double SL,TP,onePip; int Ticket; onePip = 0.0001; if( (Symbol()=="EURJPY") || (Symbol()=="AUDJPY") || (Symbol()=="GBPJPY") || (Symbol()=="USDJPY") || (Symbol()=="CADJPY") || (Symbol()=="NZDJPY") ) { onePip = 0.01; } //check if price match       double currentPrice;   currentPrice =...
I don't know if I am the only one that has an issue with this. I find that whenever there is a long line of code included that is wider than my screen, I then have to keep scrolling left and right in order to read the rest of the page. Sometimes, especially with articles, this can be very irritating...
  To administrators and moderators  (76   1 2 3 4 5 ... 7 8)
Maybe it's time to end the smoking room with political topics? We could do with non-political ones too
  STOCHASTIC VALUE  (1)
How would I progam the current value of stochastic say 45.500 into a variable and how would I program the past value of stochastic into a variable and then the diffenrence between the two into Variable. What Im trying to do is program and buy or sell action when there is a x value different beetween
[Deleted]
Hi guys.. I need some help here. Previously I ask a similar question and i got this reply below.. however when I try compile, there quite a lot of errors as the variables are not fully declare and I not sure if its work below. Just to ask how do I create a code or function that do the following....
Hello I have an indicator and am trying to get it to work in my Ea. 1st I tried to use I custom no buffer values then I inserted it into my Ea and nothing. Need some help thanks. Here is part of my code....
[Deleted]
Hi guy. Is there anyway for me to obtain the instantaneous value of the bar?
[Deleted]
!!!! with your help, i managed to place data within a user-defined array, but still do not know how to use all of the data ... my array has the price data of 100 bars, How I can make an average of these data?
[Deleted]
Hello Guys, I coded password on my expert advisor but i want to change the values to be seen in the input window as asterisk. The "link101" should be (*******) extern string PIN ="-------"; if(PIN != "link101") {Alert ("Invalid PIN");return(0);}...
[Deleted]
  silly problem  (3)
can someone tell me why this loop doesn't store the data? int h1; int h2; int h3; int b1; int b2; double t1[]; b1 = iHighest(NULL,PERIOD_H1,MODE_CLOSE,700,1); b2 = iLowest(NULL,PERIOD_H1,MODE_CLOSE,700,1); h1 = b2; h2 = b2; for(h1=b2;h1<b1+1;h1++) { for(h2=b2;h2<b1+1;h2++) { t1[h1] = iClose
I'm fairy new to programming EAs. I've part complied an EA which uses MT4 to open a trade for Forex pairs. To exit the trade I would like to use the output from an Indicator on Tradestation on the corresponding Forex future. i.e. trading from MT4, stoploss set in MT4 EA, tradestation signal closes...
[Deleted]
  Please Help  (12   1 2)
I can't see why this function doesn't work. //Creates strings like these:// yyyymmdd,hh:mm,o(4dp) ,h(4dp) ,l(4dp) ,c(4dp) ,Volume// 20130829,20:25,33.2050,33.2060,33.2030,33.2040,20string MakeInfoString(string symbol, int period, int Bar){        string Strline = TimeToStr( iTime(symbol,period,...
[Deleted]
first of all, sorry for my bad English. I have problems storing data in a user-defined array using a loop ... I can store data in each position of the array by itself, but I can not store data in an array using a loop. someone can show me how to do it with an example? thanks.
Hi, is it possible to put my own picture / bitmap / icon on the metatrader chart?! Or a alternative possibility can I load my own font to write on the chart? Thank you
double iHi;double xHig;double iLo;double xLo;double out=10;int i;int Range_n=4;double lotsize=0.1;double stoploss=1;double takeprofit=100;double bsl;double btp;double ssl;double stp;double magicnumber1=1111;double magicnumber2=2222;double k=0;static double giamua;static double giaban;double...
[Deleted]
For my EURUSD charts, the price gapped to around 0.1120 yesterday. At the time, pressing refresh didn't help at all. I have a script that uses iClose(), iOpen(), etc. to write the chart info to file, and it also got absurd prices. Today, after pressing refresh, the chart data became more plausible...
i developed one trading system in AMIBROKER. i want to apply same in MT4 FOR selected stocks/instruments....... <LINK REMOVED by MODERATOR> how can i? Any third party, who can help me or any paid service? I am new here....... pls guide..... urgently........waiting
if I use +GMToffset in start/stop hours it will not work ... how can this be solved? fex: int extern FromHour = 8;int extern ToHour = 14;int extern GMToffset = 1;if(Hour()>=FromHour+GMToffset && Hour()<=ToHour+GMToffset) return(0);
Hi MQLers, after I have called OrderSelect, a couple of instructions later (like OrderType, OrderSymbol, ...) I am calling OrderProfit and I doubt this call returns the correct information. Therefore my query goes - all of these Orderxxx are supposed to be performed on a 'selected order'. I do not...
[Deleted]
Can someone show me some code simple code that will allow me to capture the high and low of a Bar at a specified time? For example ... how do I capture the high and low of a bar at 1:00 GMT?
I am using the iMA() function, but the values of the data obtaining by the function only produce a price up to 4 decimal places when it should be displaying pipettes (fractions of a pip). For example, if aud/usd is at 0.91236, iMA only uses 0.9124. I want the EA to display all 5 digits.
[Deleted]
Trying to access data from Excel file using Excellink. All OK at first Tick when indicator dropped onto chart ie reads and writes to file but when I later try to access Excellink reads only 0 data value. Problem appears to be Handle which on 1st pass = 0 but on subsequent accesses = -1. Error code...
My EA is a scalper. The logic I have of a good scalp works many times, that is the trade is positive.. but sometimes not. I have discovered that when the trade does not complete fast automatically either with my target price or stop loss exit, that means the quote goes on sideway and it is better to...
By "external" I mean an EA outside the folder that contains the Terminal. Say I have more than one account. I want to keep only a list of variable values with each Terminal, and with those values each terminal run the same EA from a third folder. Can this be done in MT4? Or will the Terminal forever...
[Deleted]
I wanted to ask you a couple questions that have got me baffled. Since MT4 has moved to and past build 500, some (actually most) of my older indicators from different systems from the past will not work. I can see them in the correct folders in windows explorer, I can see them in the navigator...
[Deleted]
hi guys, I am new to MQL4 and Meta Trader4 as well as this forum. just wondering how MQL4 works in terms of the Trading functions. Do all the functions required to call the backend server. Please let me explain a bit more my question below. For example: int total=OrdersTotal(); for(int...
[Deleted]
I read an interesting post on the web: "MetaTrader 4 works on a 30 second session length - That is when there has been no trading activity for 30 seconds the "session" times out. Outside of this time any communication with the Server from the same IP address needs to be re-authenticated ie: Go...
[Deleted]
  Hello to all  (1)
Hello my name is Giridhar & I ambasically from India but living in London at a moment. From past 2 1/2 years I am practicingforex daily almost 5-8 hours a day, keeping an eye on charts and understandingsignals.With the help of my friend who is also my mentor I learned so manythings and finally I am...
HI I WANT TO MAKE MY EA TO WORK ONLY FOR ONE FX ACCOUNT NUMBER, CAN ANYONE PLEASE HELP ME TO DO THAT THANK YOU
Hi, I am pretty new to programming and I worked through some first tutorials and now I thought I'd try out different things and see how far I would get. I want to make some market overview in a tabular style. I borrowed some code pieces from similar projects and now I just want do it step by step