MQL4 and MetaTrader 4 - page 1080

[Deleted]
Greatings pro's. I am trying to access the close of a higher timeframe in an indicator. Specifically, I want to calculate the value of the 20 period SMA on the M5 as it was on the M1. So what I would do is take the previous 19 closes of the M5 and average those in with the closes of the M1 that...
New article Evaluation of Trade Systems - the Effectiveness of Entering, Exiting and Trades in General is published at mql5.com: There are a lot of measures that allow determining the effectiveness and profitability of a trade system. However, traders are always ready to put any system to a new...
[Deleted]
We are looking for Forex strategy developers who have experience with creating longer term profitable strategies within the FX market. The strategies can be for any of the major pairs across any time frames. If your able to code this would be an advantage but not essential, we can code your...
I am having problems doing string and double arrays in c/cpp code to be imported by Mt4Terminal. Things don't seem to be working as documented. Does anyone have any experance with these
hi, i am running an EA on two currencies (GBP and EURUSD) on H1 charts. i 13:00 each of the EAs were supposed to initiate two pending orders (one BUYSTOP and one SELLSTOP each). here is the log: 13:00:00 grapple GBPUSD,H1:   type:      sell stop13:00:00 grapple GBPUSD,H1:   volume:    0.2900013:00...
[Deleted]
hi every body If in a EA for example we have two open order that the currency is the same and both of them are buy mode and we want to modify them . how ca we select both of them to modify? we do not know the ticket no. and oreder no. Tnx
Sorry for barging on you with such a request, but perhaps someone can help me? Can any of you smart people produce 2 Minutes Chart for MT4 ? Thank you kindly!
int cnt, ticket =0, ticket2=0, total; extern int lot = 1; extern int sl = 10; extern int tp = 10; extern int bias = 1; //we place our order x pips from current price double orderAsk; double orderBid; string OrderCloseDate; int init() { Print(MarketInfo(Symbol(), MODE_STOPLEVEL));...
[Deleted]
Wondering if its possible, or if anyone has done it. Make a EA that can just get you out by setting the alert at a set price and if hit trade close is executed by this alert setting. Without actually putting the active order in the game, that which is not seen is good, no big bullseye on you order....
Good Morning All, In the MT4 terminal, it ispossible to add a MA to an indicator by dragging the MA indicator onto thechart and selecting apply to “Previous Indicator’s Data” but, since I couldn’tfigure out how to duplicate that same action in my EA, I decided I needed tobuild my own indicator that...
[Deleted]
I would like expert opinnion regarding two brokers that provide verry different market data. So different it make me question. I tested my expert on both broker's MT4s - ForexLite and Instaforex. The expert trades on minor currency pairs (specially good for USDMXN and USDSGD) and it looks like 2...
Hello, I have very simple question: How to show indicator just on some timeframes ? If indicator is attached to chart, I could select time frames I want to be shown on Indicator->Visualization. But is it possible to select timeframes in indicator code ? Thanks, Edward
[Deleted]
I want to test OBJPROP_ANGLE function, and trying to draw a horizontal trandline, but the line sometime it appearss good, sometime is wrong, please see the attached photo, sometime appear nothing, please let me know what is wrong about it ....
Hi all, Im quite new to programming and I am trying to make an EA that does the following: When the price gets above a certain level, any pending sell order for the same symbol is deleted and a pending buy is placed at an x number of pips above the current price. The same counts when the price drops...
[Deleted]
Hello all, Whenever my EA gets a buy signal, it (correctly) sends only one order. However, when it gets a sell signal, it always opens two sell orders (instead of one). Please, help me solve this problem. I have copied the section of the BUY code, replaced OP_BUY with OP_SELL, still the same thing...
[Deleted]
Could anyone please tell me that when I optimize an EA why is it that the Profit Factor has no value?
[Deleted]
Hi, all, I met a problem for run EA on multiple currency.! In the same time, EA send order to server in each currency windows! also each currency EA program will be check Order was created succeed! but most time i check OrderSend status is succeed! but i used OrderSelect and OrderSymbol check...
Hi all, MT5- this function showing ONE error. Thanks for help. //+------------------------------------------------------------------+ //| TrailingFixedPips.mqh | //| Copyright © 2010, MetaQuotes Software Corp. | //|...
[Deleted]
Is it possible to do that for example daily line will appear in hour graph and 15 minute graph but hour lines won't appear in 4 h graph and daily graph? Netdania has this feature and it is very convenient because when all the lines go upwards you can't see anything in daily graph because of all the...
[Deleted]
  Run Time Problem  (1)
Hello, I am new to this Mql4 programing and I had a question I was hoping someone could help with. I have an indicator that during the initialization phase I have a loops a function mutiple times over. I think the loop is moving on to the next cycle before the function has time to fully calculate....
[Deleted]
Hi, I m Shantanu, Basically Im Software Engineer, but from last 2 years Im in forex Industry as a professionaly EA developer. If any-one want to develope EA, He/She can contact with me, well knon for Quick-n-Reliable-n-Reasonable service contact: forex.eamaster@gmail.com
[Deleted]
Hello at all, I am new in the forum. I have many problems with the AUD/USD testing, live account Journal : TestGenerator: no history data AUDUSDFXF1, but the file is in the history folder... Report: Bars in test 32441 / ticks modelled 2125823/ modeling quality 24.93% mistmached charts errors 0 and a...
Ok, indicators are not my strong suit. They seem fairly simple code-wise but I've been too busy lately to complete my studies on them, (sadly for me). After what I would call phase one learning with Fundamental Trading, I'm in learner's cycle back to Technical Trading. I'm curious about ATR (Average...
[Deleted]
Hello, I need help in order to translate a function MMA in mql 4. I'm sure it's easy but I have some problem to resolve : function MMA; input s(series), period(number); result res(series); vars i(number), tmp(number), l(number), cnt(number), f(number); begin f := front(s); l := f + period - 1;...
[Deleted]
Hi Im beginner with mql4 and im trying to build an EA with two RSI, the first RSI work with 4 HR and the second with 15 min timeframe, is it possible? and if yes can you give me some help please Thank you a head
[Deleted]
I want to use them in function below and try to creat a trendline.bool ObjectCreate(string name, int type, int window, datetime time1, double price1, void time2, void price2, void time3, void price3)
[Deleted]
  Mystery Error  (1)
Testing some EA for news events, the two lines of code compile fine: #import " kernel32 .dll" int WinExec(string NameEx, int dwFlags); But when it runs it generates an error: dll calls are not allowed; 'kernel32.dll'-'WinExec' I think many people have ran this EA just fine, did not see any errors or
[Deleted]
Is it possible to define a function that you can call with any number of parameters? If so, how? Thank you.
Hi I'm still looking for an MQL4 tutor. compensation is possible. But it seems that most of the people here, especial those who know something about making good EAs don't really need money. so there is something else I can offer. I live in the US and can guide you through a legalization process, or...