MQL4 and MetaTrader 4 - page 813

To post a new topic, please log in or register
as above please help ^_^
I have been 'playing' with some code examples and I cam across if (!ExistPositions()) { What is the significance of the ! or exclamation mark?
Hi, I would like to compare 5min Close with 1H indicator value in my strategy. But I am not sure about proper shift. if (NewBarOpened == true) // In my case it is every 5min { double Indicator=iCustom(NULL, 60, "Indicator name",Parameter,0,0); // What number should I use...
Hi, I experienced strange charting behavior: 15min multi-timeframe moving average is charted good for historical data, not for new real-time data. Everything gets fine when I reload indicator. But for new data it will do the same... and again and again and again. It it standard MTF indicator I saw...
In need some advices on how to remove/delete the unrequired custom indicators compileinside the interbankFX trading platform. I basically tried to delete/remove itbut it remain unsuccessful. Hope to hear your feedback.
Hello, Does anyone know to do/have an indicator or script that just alerts when the moving average crossover? the EMAs paramether´s 3 and 19. This probably already exists (or is simple to develop), so I ask if someone has it or can tell me how do it. Thanks.
Thanks to Paco Hernández Gómez (http://www.hernandezgomez.com), it is possible to work up on the idea of self learning PNN. In its original form, there are 2 EAs, 1 for the PNN training and another to trade acording to the examples learned. What I am trying to do is to combine the learning EA into...
St.Trader
  1 bar/1 trade (3)
Hi all, how set my ea when i need enter to position only once per bar. 1bar/1 trade (sell or buy) If will be take SL or TP next enter to trade in same bar must be prohibited. Thank you.
Hi, I know about Wine and emulating Windows on Linux for operating MetaTrader with Linux. Is there any plan to develope a MetaTrader version for Linux, because with many EA´s the Performance decreases significant, so Wine is inefficent. or maybe MetaTrader based on Java, which would also work ...
can I use #property indicator_chart_window in an EA, and if not why not and what do I have to do in its place / do to make it work ? I have copied it from a Pivots_daily indicator where it already draws to the main window so why will it not work when being used in an EA ? (in laymans terms please...
  vino (1)
Hi
Dear all I would like to ask for your help on two questions: 1) this seems to be an old question but I still can't find answer from this place : how can Playsound and Alert command work simultaneously in an "indicator"? Does it can't be solved in MT4? 2) If an indicator plays multiple sound files...
  PIP vs Profit (6)
where do I go to find out more about pips vs profit? What I want to know is if 2 different pairs that are priced way differently, move in the same direction the exact number of pips, does the profit move the same? Example: Eurusd right now is 1.44286 and Eurjpy is 119.93 (Friday 15th, 2011 after...
I want to put an Old LOG.file in the experts/files folder and built an expert advisor that places trades at the same 00:00:00 hour/minute +/- 10seconds from the previous day, week month etc. The purpose of doing this is having "trade automation" based from a previous trading day's activity. **...
Hi everyone, I am trying to figure out how to implement ordershistory to get my EA to go to the next day regardless of what whether its a gain or a loss. Right now i am using seprate subs to go to the next day but it is becoming cumbersome. I thought I could simply use the orders history function to...
St.Trader
Hello, how i set stoploss on open price of current bar in my EA? Thank you
One of the best indicators in financial world is Dollar index Because dollar is the opposite currency of the most assets . So if we can make an indicator of USDX that can be plotted in the screen together with the asset we wand to trade, then we can predict a significant moves but it must be in the...
I have a ideea for a EA but I don't know mql; somebody can help me?
I have a problem: when I download Forex Indicators, there are message: Cannot open .mq4 files on your system How od I solve the problem ? Could anyone give me the link to download free software to solve it ? Thanks in advance D
Looking at some optimization results, I asked myself the question: Is this profit worth this drawdown? Placing the results into a spreadsheet I figured a simple ratio of drawdown (in cash) to cash profit would more meaningfully describe which result is actually optimal. Thus, a ratio of 1 means that...
Does anyone know of a free ea that will open a buy order with one pair, and a sell order for another pair at the same time? And also close the two orders at the same time when the right time comes? For example: I am overlaying two charts... (could be any two charts, like EURUSD /CHFJPY, or...
Just wanted to get an idea of what others consider to be an unacceptable drawdown. To me, when I look at a testing result, anything above ~20% is a deal breaker, however, losing even 20% of your account, I would imagine, would be psychologically traumatizing.. I think I would find it hard to stick...
I have this in code: #define SIGNAL_NONE 0 #define SIGNAL_BUY 1 #define SIGNAL_SELL 2 Could anyone tell me in laymans terms what this code does please ? thanks in advance
Hi, I am new to MetaTrader and MQ4, so please excuse any obvious questions. However, I have failed to find the answer online. Here is my question: I wish to develop my own 'EA' running on 2 different MT4 instances connected to 2 different brokers. Under certain circumstances, I would like one EA...
I'm working in a trainling stop system, wich must follow the Low and High prices and return me if should i close or not some orders. The problem is that it works, but after some candles/bars it stops. I know that there is a stop order, that we can send using the order, but it have a minimal pip, and...
Hi All: I am brand new to coding in this platform, so I don't have a clear plan of how to do this: I have a requirement to create an EMA and have an alert triggered when the sell rate of whatever currency pair on a chart is selected ( I believe that is Symbol() function that is used for this ?? )...
Can anyone correct this bit of code... I NEED to get the Time that the high and low happened on each day. int D1_bar = iBarShift(NULL, PERIOD_D1, Time[i]);      double High_i=iHigh(NULL, PERIOD_D1, D1_bar);      double Low_i=iLow(NULL, PERIOD_D1, D1_bar);            datetime val=Time[iTime(NULL,0...
Hi can I hide or show the horizontal ask- (red) and bid- (grey) lines within the chart window? thanks
I hope I can frase my question clearly. i want to make my customed indicator so, it can be hold open for setting, and in the same time I can get to the screen, as in the setting of a new order. any ideas how to do it? thanks Cub
I am an newbie for MQ4,recently have tried to write TS() for my code as follows: void TS(double ts=550){  bool res = false;  int total = OrdersTotal();  for(int i = 0;i<total;i++)  {    if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES) ==false) continue;     if(OrderSymbol()==Symbol() &&...