Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
I am just a newbie in mql language so please bear with me.
My program logic is very simple. Daily timeframe. Open both buy and sell orders at the opening price of the candle. only closes orders base on 2 criteria, 1. when TP reached 2. When SL reached and when TP is set to disable, closes the order when the closing price reached for the day.
So any volunteer writing the above simple program? thanks for the help!
I noticed so many questions in this thread even on this site begging for answers. How I wish we could get somebody to answer them because I really want to know MQL4
I notice most seniors members are not answering ....... because the newbie questions are same and already answered so many times in these pages.
The newbie will not bother to read and explore all the forum they just need everything before "eye blink"
I red 100s of silly questions in forums which already answered
so please search your question i am sure there are 90% answers available of the questions which raises in newbies mind
I have downloaded the divergence trader EA from the library and have been optimizing it and testing it in a demo acct for about three weeks. It appears to be working quite well but each time I switch to the live account, I get the error in the title in an alert window. I get this alert about every 20 seconds. It actually caused other orders that I had open at the time to close immediately upon the alert.
Could you please help me to find out what the issue is?
I am very new in MetaTrader, but very interested if I can use order book data in my codes. If yes it would be great a simple sample code (or at least some keywords, built-in function names).
Ok, I must say the "Ask" and "Bid" predefined variables stores the actually best orders... But what about the other levels and lots of the order book? Can I use these data in my code anyway?
Please help me, I searched a lot everywhere on the web but didnt find the answer.
IN THIS EA
//---- indicator settings
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Lime
#property indicator_color2 Red
extern int MAType = 1;
extern int MAPeriod = 34;
extern int MAShift = 0;
extern int PriceType=0;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- 2 additional buffers are used for counting.
IndicatorBuffers(5);
It's not EA, it's the indicator, which show you moments when "Moving Average" indicator goes up or down.
That code you need calculates last ten bars only.
Put it in /indicators directory and restart your terminal.