[Deleted]
Hi all, I would like to program my EA to detect if an object appears (an arrow... put there by an indicator) on the current bar of my chart. Is this possible? Thanks! Shawn
Hi I have a hedging expert advisor running and it has currently opened many trades in both directions. I wanted to know if I switch off the auto trading button on mt4 to stop it opening more buy trades and hopefully it will recover on the sell side. When I switch the EA back on when it's back in the
how do i sequence conditions within a cycle? while ( Bars > LastBar) { if ( OrdersTotal ()<= 10 ) if (Zone1== "sell" ) //signal 1 if (Zone2== "sell" ) //signal 2 if (signal== "sell" ) //signal 3 if (Zone3== "sell" ) // signal 4
Hi i gave my accont to manage to someone, I want to know what ea they used to trade the account as they wont disclose this information. does anybody know how i can find out which ea they used
Hi, I'm trying to make an algorithm which will open all charts in selected template based on user inputs. I have 2 problems: 1) I cannot specify correct path to find proper template 2) Even I'll use workaround to 1) ChartApplyTemplate doesn't work for me. Description for 1) input string templateName...
Importing Tick Data on MT4. On MT4 After checking Tools->History Center, Import-> I see the minimum granularity is minute data. (nothing about ticks) On the MT4 tester I do not see any tick import option either. Is there any way to import tick data on MT4 or does it necessarly require a 3rd party
Hello, I am in EDT, New York, time. How do I change the time on the MT4 charts to my time? If I can't change it, is there a tool/program that can do it? Thanks.
Why does the Warning "empty controlled statement found" come up when using if (enableCount == true ) within the following code? void OnTick () { double close = Close[ 1 ]; datetime time = iTime( NULL , 0 , 1 ); static int barCount = 1 ; static bool enableCount = false ;
Hello, I would like to calculate the daily profit of one of my EA, my code is: double DailyProfit() { double profit = 0; int i,hstTotal=OrdersHistoryTotal(); for(i=0;i<hstTotal;i++) { if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)==TRUE) { if(TimeToStr(TimeCurrent()...
I would like to set my TakeProfit as closing in profit and not in pips. Below is my code closing in profit. for ( int Loop= OrdersTotal ()- 1 ;Loop>= 0 ;Loop--) { if ( OrderSelect (Loop,SELECT_BY_POS,MODE_TRADES)) if (OrderSymbol()== Symbol ()&&OrderMagicNumber()==MagicNumber) { bool
Hi, Doing a backtest my trades bunch-up how ca I correct this
Hi, I am looking for advice, as lot size do not match my expecation. My Provider had 20K account with leverage 1:500. I have 10K account with leverage 1:100. Nevertheless if the provider set a trade in size of 0.38 lot, than the trade is copied as 0.03 lot. I have 95% money in copy deposit. Spread
#property copyright "CVM" #property link "https://www.google.com" #property version "1.00" #property description "Trend Following EA Using EMA and eventually HTF confluence" #include <stdlib.mqh> #include <stderror.mqh> //--- indicator settings #property indicator_chart_window #property
I want to call buffer value from zone indicator , it is multitimeframe indicator. here is its buffer int t1; t1= 0 ; SetIndexBuffer (t1,BufferResistance1); SetIndexEmptyValue(t1, 0.0 ); SetIndexStyle(t1, DRAW_NONE ); t1+= 1 ; SetIndexBuffer (t1,BufferResistance2); SetIndexEmptyValue(t1, 0.0 );
Hi, I want to have iMA 200 period on iATR 14 period in MT4. I have written the following code but it returns 0 and I don't what is the problem. Any help is appreciated. MA200=iMA(_Symbol,PERIOD_CURRENT,200,0,MODE_SMA,iATR(_Symbol,PERIOD_CURRENT,14,0),0); Attached phot shows my request clearly
I have been using the following line: double ThisZigZag = iCustom(NULL,0,"ZigZag",12,5,3,3,0); in order to try to work out whether or not the indicator is going up or down but it just returns 0.0 (zero) all the time. I have spent all day trying to get some help and would welcome any suggestions.
I have the forex.com version of MT4. and when trying to set the Strategy Tester, I find that the Symbol drop-down is "jittery" in that it keeps updating the list and rebuilding it to the bottom of the list. This makes it hard to select a Symbol higher up on the list because the list keeps updating
This is one ive thought about many times, there are loads of EAs available for sale on here, who knows which ones are good, which are scams, which work sometimes etc. Does anyone trust their own EA to let me have a copy for an inflated price on the condition that I only pay for it after it has made
Hi! So I have been trying to implement a simple strategy, which I plan to develop further. The first step should work as follows: - buy at 23:30 and close at 00:05. I used a simple "if" function with "Hour", "minute" and "seconds", however it does not open any positions. Could you please help me
Hi! I try to create a strategy which works as follows: - open a Long position at 0:55 am with a very wide TP and SL - at 1:05 am change TP into the price, at which the current position was initially opened. Is this possible to create such condition? And if so, could anyone please help me with this
Hello, I would like to print the number of the line in my code. For example if (condition1 && condition2){Print("Error in line ",GetLineNumber());} where the function GetLineNumber() is a function the gives the number of the line where it is called. Is there such a function out there? Any...
[Deleted]
Hi all Error code 149 ("Hedge is prohibited") that is returned to a client at the attempt to open an opposite position to an existing one if hedging is prohibited But you need to try ordersend to know if it's ok or not ! How to know that in tne init() of an EA for example ? thanks
I have an indicator that adds values to the previous value of the buffer. My formula is: buffer[i] = buffer[i+1] + some_values Now the problem is after sometime when attaching the indicator to the chart, all the values indicator repaint. See images below: After attaching to chart: After sometime or
I have this value from a function MAXVALUE(). the value is less then 0.004. i need to show this value as it is; that is 0.004 and not 0 as it is currently shown. i've tried Normalize double and trying to multiple in the function then divide outside the function but the value is still 0. ideas
Hi, i have some important questions to ask about slippage in my EA (using ECN broker and low timeframe): 1) If i put an OrderSend() function it actually and set the slippage to lets say 20 fractional pips, that means that if wont go in the trade if the price moves more than 20 fpips before the...
Hi all, I have MT4 running with the same account on two laptops. On one of them the bid/ask "boxes" have disappeared - the two boxes on the top left of a chart that show the bid and ask in large font. Please see the attached image file. I have searched the settings and googled the issue endlessly
Hi ! So I created a simple Itchimoku strategy, with 5 iCustom functions. Unfortunately, although all values printed from iCustom functions work correctly, one "Itchim4", which is supposed to print a certain value of S&P500, prints "0" at the beginning. ( I have attached screenshot if these values
Hi everyone . I am learning MQL4 very beginner level . I had a code that did the following output on the chart window( first pic) . Learning from here and there I changed it so that the output is displayed on separate window and everything is horizontal instead of vertical as shown in the second
Hi, I'm (trying to) add this code into an existing program. If I compile it without the code listed below, it’s just fine. But no matter what I do with this section of code I ALWAYS get the same error '\end_of_program' - unbalanced left parenthesis . I've tried adding some in parenthesis, as well as...
In case some of you have been wondering what was the "wonder" indicator picture posted a couple of times in the digital filters thread, and, since rules for advanced elite section are a bit different : It was a MACD of a Hodrick-Prescott filter. One version of that indicator (Hodrick-Prescott...

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.