I am Back. Yes Back because I was 'Banned' from this Forum! I didn't get any warning about it though and it was my ignorance about the matter. I apologize for it and understood what I shouldn't had done.
Anyway, I am opening this thread with the hope of the solution as this is the Core of everything about Meta Trader.
I want to call a Custom indicator (in .ex4 format) into an EA. I have made a speculation about it. Please correct my mistakes.
I have opened the 'Data Window' by pressing Ctrl+D. There I got three parameters: Y,G and R.
While I hover the mouse over the bars I notice change in the value of these parameters. But the change happens when the indicator changes it's color.
When the indicator goes from Gray to Blue Y becomes 1.0000 to 0.0000 and G becomes 0.0000 to 1.0000 and vice versa for Blue to Gray changing. The value of R never changes.
In spite of it I guessed this indicator has 3 buffers. So for any 'Current Bar' I wrote the iCustom() function for the buffers as below:
iCustom(Symbol(),Timefram e,"CUSOMT INDI NAME",all parameters separated by coma, 0, 0);
iCustom(Symbol(),Timefram e,"CUSOMT INDI NAME",all parameters separated by coma, 1, 0);
iCustom(Symbol(),Timefram e,"CUSOMT INDI NAME",all parameters separated by coma, 2, 0);
Till this, what mistakes I have made? Please correct me. I want to approach step by step.
Does not support hedging orders on a single symbol on MT5
MultiMTCopier MT5Source - new and improved multi-terminal positions copier for your real / demo account, works faster, requires less, flexible in managing and upgrading, new information support. This expert is designed for terminal MetaTrader5 from which the position will be copied.
The EA will copy all positions without delays Additionally integrated notification in situations requiring user attention Buttons for re
FourAverage: A Breakthrough in Trend Identification
With evolving information technology and increasing number of market participants, financial markets get less and less analyzable using good old indicators. Common technical analysis tools, such as Moving Average or Stochastic alone, are not capable of identifying the trend direction or reversal.
Can a single indicator show the right direction of the future price, without changing its parameters over 14 years' history, while at the same time
Trading Chaos Expert Lite is a light version of Trading Chaos Expert. In the Lite version it is not possible to receive the table of trading signals, automatically place pending orders based on them and maintain open positions for multiple symbols at the same time in one window. Only the Current Chart mode is available. In all other features the panel is fully consistent with the basic version of the Expert Advisor.
This is, rather, a well thought out trader's assistant which is not easy to do
PipTick VSA is based on the original Volume Spread Analysis method. It was designed for quick and easy recognition of VSA patterns. Even though this indicator looks very simple, it is the most sophisticated tool that we've ever made. PipTick VSA indicator is a really powerful analytical tool that generates very reliable trading signals. Because it is very user friendly and understandable, it is suitable for every type of trader, regardless of his experience.
What is VSA?
VSA - Volume Spread An
Sideways Alert Indicator is a very effective tool to indicate sideways conditions on live charts and to determine its levels. It helps us trade within the range or trade the breakout or just simply to filter out sideways market conditions.
This software has no equals in the world and represents a universal trade "console" covering trading signals, automated market entry, setting of Stop Loss and Take Profit, as well as Trailing Profit for multiple trades at the same time in a single open window. Intuitive control of the Expert Advisor in "three clicks" ensures a comprehensive use of all its functions on different computers, including tablets PCs.
Interacting with additional signal indicators that mark the chart to give a real mar
TTMM – "Time To Make Money" – Time When Traders Makes Money on the Stock Exchanges
The ТТММ trade sessions indicator displays the following information:
Trade sessions: American, European, Asian and Pacific. (Note: Sessions are displayed on the previous five days and the current day only. The number of days may change depending on the holidays - they are not displayed in the terminals. The sessions are also not displayed on Saturday and Sunday).
The main trading hours of
The script allows users to easily close positions if their profit/loss reaches or exceeds a value specified in pips.
Please set slippage value first. Sometimes some positions do not close due to high volatility of the market. Please set larger slippage or restart the script.
qAutoActivation indicator is one of the main components of Trading Chaos Expert trading expert panel. The indicator displays the current trend on the current timeframe. This is the first indicator that is attached to the chart and saved in the trading complex template. It defines what trading signals from the expert panel should be automated for market entry (bullish or bearish ones).
When the trend changes, the indicator changes the line color and, at the same time, highlights the trading pane
This is Gekko's Cutomized Moving Average Convergence/Divergence (MACD), a customized version of the famous MACD indicator. Use the regular MACD and take advantage of several entry signals calculations and different ways of being alerted whenever there is potential entry point.
Fast MA Period: Period for the MACD's Fast Moving Average (default 12); Slow MA Period: Period for the MACD's Slow Moving Average (default 26); Signal Average Offset Period: Period for
The script is intended for automatic placing of Sell Stop pending orders, Stop Losses and Take Profits on the user specified levels. This script is not that useful as "Virtual pending buy stop", since short positions are opened as Bid price crosses the levels. Thus spread widening is not dangerous. Nevertheless, you need to have this script to prevent unwanted hitting of the Stop Loss levels.
Automation of the process of placing the Sell Stop pending orders, Stop Losses and T
SafeZone is a method for setting stops on the basis of recent volatility, outside the level of market noise. It is described in "Come into my Trading Room" book.
In a downtrend, SafeZone defines noise as the portion of the current bar that extends above the high of the previous bar, against the downtrend. It averages the noise level over a period of time and multiplies it by a trader-selected factor.
For short trades, it adds the average noise level, multiplied by a factor, to the latest hig
This indicator allows you to enjoy the two most popular products for analyzing request volumes and market deals at a favorable price:
Actual Depth of Market Chart Actual Tick Footprint Volume ChartThis product combines the power of both indicators and is provided as a single file.
The functionality of Actual COMBO Depth of Market AND Tick Volume Chart is fully identical to the original indicators. You will enjoy the power of these two products combined into the single super-indicator!
This is an utility for automatic scaling of a chart and making at least 140 bars visible in it. This is necessary for a correct wave analysis according to the Bill Williams' strategy "Trading Chaos". The utility can be used on any timeframe available in МetaТrader 5.
It draws a vertical line through the first bar the calculation starts from. This line allows you to see the probable starting point of the wave sequence along with a sufficient number of bars displayed in the chart. It also makes t
A script for opening a grid of orders
If you need to quickly open several pending orders (Buy Limit, Sell Limit, Buy Stop, Sell Stop) on a certain distance from the current price, this script will do all the routine for you! Allow AutoTrading before running the script.
Run the script on a chart.
Language of messages displayed (EN, RU, DE, FR, ES) - language of the output messages (English, Russian, German, French, Spanish). Price for open - open price. If set to
Smart Trend Line Alert, a professional Trend Line, Support Line and Resistance Line Alert
Auto and Click mode for converting any new drawn line into an alert line (Trend line or Horizontal line); Separating different time frame's lines by hiding drawn lines from lower time frames in higher time frames to avoid being confused by many lines on the chart from different time frames; Auto switch time frame when a line was hit in the lower time frame; Auto flatten horizontal lines
The indicator has standard settings. The new modification of indicator provides special marking of the segment when the moving averages begin to form a cross in one direction or another. The Alligator`s cross indicates that the trend is about to change. Modified Alligator helps traders to determine a trend on a particular timeframe even if the averages are intertwined and have a shift in the future. Direction of a trend is determined by a cross of the averages with a specified marking area on th
The main purpose of the indicator is to determine and mark trade signals on the histogram of the Accelerator Oscillator, which were described by Bill Williams in his book "New Trading Dimensions". The list of signals:
The buy signal when the indicator histogram is below the zero line. The sell signal when the indicator histogram is below the zero line.The sell signal when the indicator histogram is above the zero line. The buy signal when the indicator histogram is above the zero line. The
Does not support hedging orders on a single symbol on MT5
MultiMTCopier MT5Receiver - new and improved multi-terminal positions copier for your real/demo account, works faster, requires less, flexible in managing and upgrading, new information support. This Expert Advisor is designed for the MetaTrader 5 terminal, trades will be copied into this terminal.
The EA will copy all positions without delays Additionally integrated notification in situations requiring user attention
This unique indicator automatically builds Wolfe Waves and features a highly efficient trading strategy.
If number 5 appears, wait till the first candle is closed behind Moving Average, then look at the three center lines showing what lot volume should be used if the fifth dot crossed the line 25%. The candle is closed behind Moving Average, and then we open a trade with the lot: = (Let's apply the lot of, say, (0.40), divide it into four parts and open a quarter of the lot (0.10)). If
The main purpose of the indicator is to detect and mark trade signals on the histogram of the Awesome Oscillator according to the strategies "Trading Chaos, second edition" and "New Trading Dimensions".
The indicator detects and marks the following trade signals:
"Two peaks" - Divergence. The signal "Second wise-man" - third consequent bar of the Awesome Oscillator after its color is changed. The histogram crosses the zero line. The signal "Saucer".The indicator includes a signal block th
Cluster analysis is now available in MetaTrader 5!
YuСlusters indicator builds a cluster graph based on tick data. For exchange instruments it is the volume and the last deal price, for Forex instruments it is the real or tick volume (depends on broker) and selectable type of the current price: Bid, Ask or (Bid+Ask)/2.
There are 5 criteria of cluster generation: Time interval, the criterion is set in seconds. Price range, the criterion is set in points. The current cluster is closed when the
The script is intended for automatic placing of Buy Stop pending orders, Stop Losses and Take Profits on the user specified levels.
Avoiding unwanted entering a long position in case of false hitting the level as a result of widening of the spread by a dealing center. Avoiding unwanted triggering of a Stop Loss in case a quote pierces a significant level (fractal) without further confirmation with the close price. Setting a necessary virtual order and entering the market in
Purpose and functions of the indicator
The indicator determines and marks the moments of trend change on a chart based on the theory of fractal levels breakdown on any time frames. If a breakdown based on all rules is real, the horizontal lines will appear on the chart with corresponding color. If there is an up trend, the line will be blue. In the descending trend the line will be red. The blue line is a strong support level, the trader should look for buying opportunities above this line. The
The indicator is intended for determining the spread and swap size, the distance for setting stop orders and stop losses from the current price allowed and the risk per 1 point in the deposit currency.
The indicator informs a trader about possible additional expenses and profits connected with transferring a position to the next trade session of the financial instrument. It also informs about the spread size and the distance of pending orders, stop loss and trailing from the current price. In a
Exp COPYLOT CLIENT for MT5 is a copier for the МetaТrader 5 platform. It copies forex trades from any accounts. Including those from terminals МТ5 and МТ4.
Install the Expert Advisor in the terminal where you want to copy trades. Specify any text label name as pathRead, for example, "COPY". This should match the master terminal (to bind the two terminals). To copy trades, you need to install the free Master copier in the terminal from where you want to copy the trades: COPYLOT
Monitoring and Trend Analysis
This product shows the trend strength levels based on 16 standard indicators, time periods and currency groups.
Depending on the current trend, the indicator colors change from green to red, allowing you to see the full picture.
Whatever your trading method and strategy are, you should always know, in which direction you are trading and what the probability of the trend change is. This indicator will help you answer these questions by calculating the
Safe Automatic is a safe MetaТrader 5 trading robot working autonomously on a VPS server. The good results are achieved on EURUSD.
The EA applies modified versions of a trend-following strategy, half-pyramiding, scalping, Elliott Wave method and speculating trading with a deposit protection. The EA switches the strategies automatically. The program also takes the news calendar into account: the robot does not enter the market in a 10-minute interval before and after a news rel
Scalper with Automatic Parameter Setting
Would you like to have an Expert Advisor that could automatically calculate trade parameters and adjust to the current market situation?
We present you our new development for the Forex market. This is a tick scalper for МТ4 and МТ5 - TickSniper.
Trading with it is fully automated. Forget continuous monitoring - this Expert Advisor trades independently. Its settings have been optimized over the course of testing on our real accounts.
The Expert Advisor implements the classic "triangular arbitrage", which is successfully used by hedge funds.
Arbitrage refers to a class of neutral-market strategies, in which the profit or loss of open positions does not depend on the direction of the market movement as a whole.
In order to take profit, the EA exploits a weak spot of market makers - it utilizes the difficulty of combining cross rates of individual currency pairs.
The advantages of the strategy are the following:
You have a thread about this already . . . if you persist with this subject I will BAN this User ID too.
You seem fixed on using stolen property, so I am BANNING you.
Sorry I had to start this thread but I had no other way as you have Banned me. So I was unable to continue with that thread.
Also this thread is about something else. Previously I was trying to know the code of that indicator but now I am trying to use that indicator without knowing it's code. I hope this is not violation of anything.
I have tried to build a simple EA but the EA is not opening any trade! I am not understanding what wrong I did. What link up I have missed hence the program is not running at all or I have failed to call the .ex4 files by Custom()? Please Help.
I have used Two indicators here:
FIM and MoneyFlowIndex.
My observations about these 2 indicators are:
When 1st Indicator goes from Gray to Blue, it's 'Buffer 1' [Here G] goes 0 to 1.
When 2nd indicator goes from Red to Blue, it's 'Buffer 1' [Here G] goes 0 to 1.
When 1st Indicator goes from Blue to Gray, it's 'Buffer 0' [Here Y] goes 1 to 0.
When 2nd indicator goes from Blue to Red, it's 'Buffer 2' [Here R] goes 1 to 0.
My conditions for opening trade are:
When G(1st) and G(2nd) become 1, EA will open a Buy order.
When Y(1st) and R(2nd) become 0, EA will open a Sell order.
#property copyright "N"
#property link ""
//--- input parameters
extern double LotSize=0.01;
extern double Stoploss=30.0;
extern double TakeProfit=10.0;
extern int Slippage=5;
extern int MagicNumber=786;
extern bool EarlySignal=true;
extern bool M3_Coral_Filter=true;
//| expert initialization function |
//| expert deinitialization function |
//| expert start function |
double Y1, Y2, Y3, Y4;
int SL, TP;
Y1 = iCustom(NULL,0,"FIM",EarlySignal,M3_Coral_Filter,1,0);
Y2 = iCustom(NULL,0,"MoneyFlowIndex",EarlySignal,M3_Coral_Filter,1,0);
Y3 = iCustom(NULL,0,"FIM",EarlySignal,M3_Coral_Filter,0,0);
Y4 = iCustom(NULL,0,"MoneyFlowIndex",EarlySignal,M3_Coral_Filter,2,0);
if (Y1==1 && Y2==1)
BuyOrder=OrderSend(Symbol(), OP_BUY, LotSize,Ask,5,SL,TP,"Buy Order",MagicNumber, 0,Blue);
if (Y3==0 && Y4==0)
SellOrder=OrderSend(Symbol(), OP_SELL, LotSize,Bid,5,SL,TP,"Sell Order",MagicNumber, 0,Red);
int New_Stop(int Warning)
if (Warning > Min_Dist)
Alert("Stop level increased.");
I am getting the Error message in Expert tab.
'Order send failed, error#'
Now how can I detect why it is failing?
It opened an Order just now at Gold. But just one. Other time showing the same error.
It opened another Buy order in Gold yet showing the failing message for Gold too!
WHRoeder has given the link
What are Function return values ? How do I use them ? - MQL4 forum
is this not answering your question ??
There I got the idea how to check whether the function is working correctly or not but I haven't found how to detect the reason there I mean detailed process.
Wait I have found that the errors are showing in Journal tab too. Pardon me for my ignorance.
It opens log files of those errors. Now I am trying to figure out the errors reading log files.