MetaTrader 4
Hello Folks.
My name is Lenar. Im from MetaQuotes Software Corp. - developer of FX Charts, MetaQuotes and MetaTrader platforms.
I glad to announce that now we are working on a new platform - MetaTrader 4. It will be more powerful than MetaTrader and it will be equipped with a new language ?MQL 4. New terminal will have strategy tester, tick chart, many technical indicators (about 40) and line studies (about 20) and it will also be free!
For now MetaEditor (editor for MQL4) is ready and you can download it from here: http://www.metaquotes.net/files/mteditor.exe
发表于:2004-10-14 21:05只看该作者
2楼
你真棒.
谢谢分享.[em28] [em28]
发表于:2004-10-14 23:47只看该作者
4楼
早上好[em43]
发表于:2004-10-15 01:53只看该作者
5楼
打开了吗?
I o this game
发表于:2004-10-15 02:01只看该作者
6楼
下载了,可是打不开
www.talkforex.com
发表于:2004-10-15 02:03只看该作者
7楼
Good Morning!!!
发表于:2004-10-15 02:53只看该作者
8楼
有了策略测试器,可以节省许多人的时间。看起来又有了进步。
发表于:2004-10-15 03:35只看该作者
9楼
[em57]
投一次机容易,难的是投一辈子机
发表于:2004-10-15 03:38只看该作者
10楼
[em43]
市如人生,人生如市.
11楼
//+------------------------------------------------------------------+
//| MACD.mq4 |
//| Copyright ?2004, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#define copyright "Copyright ?2004, MetaQuotes Software Corp."
#define link "http://www.metaquotes.net"
bool g_Failed=false;
int g_Lots;
int g_TakeProfit;
int g_TrailingStop;
int g_OpenLevel;
int g_CloseLevel;
int g_TrendPeriod;
//+------------------------------------------------------------------+
//| Expert initalization function |
//+------------------------------------------------------------------+
int init(int Lots,int TakeProfit=10,int TrailingStop=5,int OpenLevel=3,int CloseLevel=2,int TrendPeriod=56)
{
//---- check
if(TakeProfit<10) g_Failed=true;
//---- store inputs into global variables
g_Lots=Lots;
g_TakeProfit=TakeProfit;
g_TrailingStop=TakeProfit;
g_OpenLevel =OpenLevel;
g_CloseLevel=CloseLevel;
g_TrendPeriod=TrendPeriod;
//----
return(0);
}
//+------------------------------------------------------------------+
//| Expert destructor function |
//+------------------------------------------------------------------+
int deinit()
{
return(0);
}
//+------------------------------------------------------------------+
//| Expert start function |
//+------------------------------------------------------------------+
int start()
{
double MacdCurrent,MacdPrevious,SignalCurrent,SignalPrevious,MaCurrent,MaPrevious;
double point;
int orders,type;
//---- check
if(g_Failed==true) return(0);
//---- calculate MA's
MacdCurrent =iMACD(12,26,9,PRICE_CLOSE,MODE_MAIN,0);
MacdPrevious =iMACD(12,26,9,PRICE_CLOSE,MODE_MAIN,1);
SignalCurrent =iMACD(12,26,9,PRICE_CLOSE,MODE_SIGNAL,0);
SignalPrevious=iMACD(12,26,9,PRICE_CLOSE,MODE_SIGNAL,1);
MaCurrent =iMA(g_TrendPeriod,MODE_EMA,0,PRICE_CLOSE,0);
MaPrevious =iMA(g_TrendPeriod,MODE_EMA,0,PRICE_CLOSE,1);
point=MarketInfo(Symbol(),MODE_POINT);
orders=OrderTotal(); // precalculation
if(orders<1) // no open orders
{
//---- time to BUY?
if(MacdCurrent<0 && MacdCurrent>SignalCurrent &&
MacdPrevious<SignalPrevious && MathAbs(MacdCurrent)>(g_OpenLevel*point) &&
MaCurrent>MaPrevious)
{
OrderSet(OP_BUY,g_Lots,Ask,3,0,Ask+g_TakeProfit*point,Red); // 桉镱腠屐
return(0);
}
//---- time to SELL?
if(MacdCurrent>0 && MacdCurrent<SignalCurrent &&
MacdPrevious>SignalPrevious && MacdCurrent>(g_OpenLevel*point) &&
MaCurrent<MaPrevious)
{
OrderSet(OP_SELL,g_Lots,Bid,3,0,Bid-g_TakeProfit*point,Blue); // 桉镱腠屐
return(0);
}
}
//---- it is very improtant to control opened positions
for(int i=0;i<orders;i++)
{
type=OrderGet(i,VAL_TYPE); // precalculation
//---- short or long position?
if(type>OP_SELL) continue;
//---- long position
if(type==OP_BUY)
{
//---- time to close?
if(MacdCurrent>0 && MacdCurrent<SignalCurrent &&
MacdPrevious>SignalPrevious && MacdCurrent>(g_CloseLevel*point))
{
OrderClose(OrderGet(i,VAL_TICKET),OrderGet(i,VAL_LOTS),Bid,3,Violet);
return(0);
}
}
else //short position
{
if(MacdCurrent<0 && MacdCurrent>SignalCurrent &&
MacdPrevious<SignalPrevious && MathAbs(MacdCurrent)>(g_CloseLevel*point))
{
OrderClose(OrderGet(i,VAL_TICKET),OrderGet(i,VAL_LOTS),Ask,3,Magenta);
return(0);
}
}
//---- trailing stops available?
//if(g_TrailingStop>0) TrailingStopSimple(i,g_TrailingStop);
}
//---- end
return(0);
}
//+------------------------------------------------------------------+
韬客社区www.talkfx.co
发表于:2004-10-16 09:58只看该作者
13楼
我只要报价稳定,不要新功能[em34]
只做熟悉的
利润需要时间积累