MQL4 and MetaTrader 4 - page 1028

To post a new topic, please log in or register
5th digit is irrelevant for the lot sizes I trade. The font sizes are small and almost impossible to read as is, any way to get rid of the 5th digit? Thanks.
Hi everyone, how are you? I need a very simple EA coded which will alert me when rsi levels have crossed a certain level on 2 or more time frames. For example, I would like to be alerted when: rsi(14) on tf 15 is below 50 and rsi(25) on tf 30 is above 60 and rsi(7) on tf 60 is below 45 ................
Although I have been reading all information I can get my hands on regardingback-testing in MT4 (including all Tester related articles in the articlessection), I still can't understand timeframes in the MT4 Tester... To better understand the significance of choosing timeframes in Tester I havedone a...
While backtesting an EA on a real live (not demo) account using an EA reading/writing to the same Gobalvariables as the live EA....had the REAL account pick up the backtest globalvariables and trade based on backtesting values..instead of current actual values.... NOT GOOD!!
Anyone know if it is possible to assign "fixed minimum and fixed maximum" in the EA for indicators that use those? ex: iMACD... The reason, is I would like to compare certain indicators and there scale is of different values. Or is there any other way of doing this? ex: if (rsi>macd) buy; (cant do...
I have a buy stop. It is not the current price, but a future price. The lotsize is good. The stop loss is good. And the takeprofit is good. I know the order is good because there is no error 130 or anything. It just gives me invalid parameter. What is the invalid parameter???? Can the dealer just...
Hi, I've made a custom indicator similar to bolinger bands. My EA is supposed to open and close orders when the price crosses the bands, but for about the first 200 bars, it opens and closes orders about 50 pips above the bands. I believe the problem is because the custom indicator needs to read...
Hi there, So I made a custom indicator, and the proper value of this custom indicator is contingent upon its value in previous bars... So for example let's say this custom indicator's algorithm is as followed, 1st day of calculation: Value = The Closing price of security = 2 2nd day: 1st day's Value...
I'm using MT4 with ODLSecurites. Once I open a position it appears in my trade tab. However the options to "Modify Order" or even "Close Position"! are grayed out from the right click menu. This is kind of insane, I wan't to close a bad position, and I'm just stuck here. Please help. Thanks. I'm...
Hi, I want to write my own EA. First I send a SellLimit and a BuyLimit. Then I want to see, which Orders of them are reached. How can I see which order is still open?? When I look at OrdersTotal() is get my OPEN and PENDING Orders. Lot's of thanks, sunshineh
when i test an ea it is very slow,even if move the speed button to 32,especiely there is a dll. how to accelerate it ?
New article Working with doubles in MQL4 is published: In this note we will consider a typical programming errors, that occurs while working with double numbers in MQL4 programs. Author: MetaQuotes
So sorry to bother you. I have never used an EA before. I am trying to run a stop loss EA that I found on forex-tsd after being directed there from one of the posts on this site. I "compiled" the program successfully and there appear to be no errors. I dragged it onto my chart and the EA name and...
Dear colleagues, If you want to be well informed about the new events and get an easy access to the recent codebase and articles about MQL, you can browse the Russian version using the Google Translate. English translation of Russian MQL4 site Engish translation of Russian MQL4 Articles English...
I have this alert set to tell me about other timeframes. However, because of the Time[0] setting, when I am on a 5min chart, it is alerting me about the Daily chart every 5mins instead of just once. How can I add a period time to the setting so it alerts me only once for daily, only once every 4hrs...
New article Step on New Rails: Custom Indicators in MQL5 is published: In this article we will consider the indicators, their structure,drawing, types and their programming details, as compared to MQL4. I hope that this article will be useful both for beginners andexperienced developers, maybe some...
if(order2 == true || order3 == true) { if(AccountProfit() >= 0) { for(i=OrdersTotal()-1;i>=0;i--) { OrderSelect(i, SELECT_BY_POS); int type = OrderType(); bool result = false; switch(type) {...
  Invalid Lot (7)
void CheckForOpen() {   int    res;   double entry,stop,profit;      if (exit) return;   //---- buy conditions   if (addbuy)  {res=OpenAtMarket(OP_BUY,_1stlots);if (res<=0) Print("Error opening BUY order : ",ErrorDescription(GetLastError()));else AdjustStops();   }//---- sell conditions   if...
Hello, i trie to read data´s high,low,open,close... from the 1 min History chart, but it is not understandable for me how I can select the values that i realy ned, with my script example i just get so much values i dont know what to do with them, can one of you show me please how i can read the...
Curious to see if anyone lives in the New York City area / Hudson Valley. Looking to start a small group of MQL traders who would like to meet about once a month for group discussions and to share what we've learned. Reply to this post with your general location. Thanks!
WHERE CAN I FIND A LESSON RELATED DLL COMPILING ?
Hello, sorry to bother you again. I want to calculate a MA of RSI in my Expert Advisor, I try to make an array and then calculate it using iMAonArray, but it's not working. Please look at my code double rsi[]; for(int i=0 ; i<=60 ; i++) { rsi[i]=iRSI(Symbol(),0,13,PRICE_CLOSE,i);...
Hi, i wanted to make EA for the following. if the RSI value equals to 52 then i wanted open the buy order. please send some one the code. RAJ
Are GlobalVariables shared between ALL MT4's running on the same computer??? Will a GlobalVariable set by an MT4 from IBFX be available to an MT4 from FxPro??
Hi guys, Was wondering as I have a Multi Time Frame indicator checking for a certain bar pattern (mainly inside bar) on the H1, H4, D1, W1 It works on the basis of if Previous bar high < Previous bar high + 2 && Previous Bar low > Previous bar low + 2 So it is using previous bar to prevent...
Hi, Does MT4 work with a satellite internet connection? Any feed backs would be appreciated. Tx.
and MQL5 doesn't look much better. sorry to say that - i'm usually not a complainer. it's probably never gonna happen but i'll make a proposal anyways: just embed python / make a python API / bindings instead of continuing this MQL crap. python's license allows it. continuing MQL is just a waste of...
i have mess up.. im a newbie.. if you all have a idea or opinion plz help me.. can you help me settel this.. plssssss......
Hello, I send an order and I have always the error 129 or 4107 (error price) then my price is 30 pips under the close...?? thanks for your comments Chris
I have the FXT file but I need to convert it to an M1 HST file...I understand the HST will not retain the underlying tick-by-tick sequence contain in the FXT file, this is not a concern for me at the moment, but how do I "import" the FXT file into MT4 and have it convert to an M1 HST file? A google...