Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information
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.