论坛全局菜单下方 - TICKMILL 285X70论坛全局菜单下方 - ThinkMarkets285X70论坛全局菜单下方 - 荔枝返现285X70论坛全局菜单下方 -  icmarkets285X70
查看:2687回复:12
topholder
注册时间2004-03-03
MetaTrader 4
楼主发表于:2004-10-14 18:49只看该作者倒序浏览
1楼 电梯直达
电梯直达
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
TK29帖子1楼右侧xm竖版广告90-240
个性签名

韬客社区www.talkfx.co

广告
TK30+TK31帖子一樓廣告
TK30+TK31帖子一樓廣告
CASHBULL
注册时间2004-08-06
发表于:2004-10-14 21:22只看该作者
3楼
老兄,我Downlord了可是没法打开,请叫如何做?[em10] [em10]
lmzxcv
注册时间2004-08-21
SoftTrader
注册时间2003-12-07
发表于:2004-10-15 02:53只看该作者
8楼
有了策略测试器,可以节省许多人的时间。看起来又有了进步。
redbye_cn
注册时间2004-09-08
akfql
注册时间2004-01-04
发表于:2004-10-15 03:38只看该作者
10楼
[em43]
个性签名

市如人生,人生如市.

topholder
注册时间2004-03-03
楼主发表于:2004-10-16 07:43只看该作者
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&#59; int g_Lots&#59; int g_TakeProfit&#59; int g_TrailingStop&#59; int g_OpenLevel&#59; int g_CloseLevel&#59; int g_TrendPeriod&#59; //+------------------------------------------------------------------+ //| 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&#59; //---- store inputs into global variables g_Lots=Lots&#59; g_TakeProfit=TakeProfit&#59; g_TrailingStop=TakeProfit&#59; g_OpenLevel =OpenLevel&#59; g_CloseLevel=CloseLevel&#59; g_TrendPeriod=TrendPeriod&#59; //---- return(0)&#59; } //+------------------------------------------------------------------+ //| Expert destructor function | //+------------------------------------------------------------------+ int deinit() { return(0)&#59; } //+------------------------------------------------------------------+ //| Expert start function | //+------------------------------------------------------------------+ int start() { double MacdCurrent,MacdPrevious,SignalCurrent,SignalPrevious,MaCurrent,MaPrevious&#59; double point&#59; int orders,type&#59; //---- check if(g_Failed==true) return(0)&#59; //---- calculate MA's MacdCurrent =iMACD(12,26,9,PRICE_CLOSE,MODE_MAIN,0)&#59; MacdPrevious =iMACD(12,26,9,PRICE_CLOSE,MODE_MAIN,1)&#59; SignalCurrent =iMACD(12,26,9,PRICE_CLOSE,MODE_SIGNAL,0)&#59; SignalPrevious=iMACD(12,26,9,PRICE_CLOSE,MODE_SIGNAL,1)&#59; MaCurrent =iMA(g_TrendPeriod,MODE_EMA,0,PRICE_CLOSE,0)&#59; MaPrevious =iMA(g_TrendPeriod,MODE_EMA,0,PRICE_CLOSE,1)&#59; point=MarketInfo(Symbol(),MODE_POINT)&#59; orders=OrderTotal()&#59; // 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)&#59; // 桉镱腠屐 return(0)&#59; } //---- 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)&#59; // 桉镱腠屐 return(0)&#59; } } //---- it is very improtant to control opened positions for(int i=0&#59;i<orders&#59;i++) { type=OrderGet(i,VAL_TYPE)&#59; // precalculation //---- short or long position? if(type>OP_SELL) continue&#59; //---- 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)&#59; return(0)&#59; } } 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)&#59; return(0)&#59; } } //---- trailing stops available? //if(g_TrailingStop>0) TrailingStopSimple(i,g_TrailingStop)&#59; } //---- end return(0)&#59; } //+------------------------------------------------------------------+
在水一方
注册时间2004-02-15
发表于:2004-10-16 08:47只看该作者
12楼
[em10] [em10] [em10] [em10]
个性签名

冷静观察、稳住阵脚、沉着应付、韬光养晦、有所作为、决不当头。

GY
注册时间2003-12-07
发表于:2004-10-16 09:58只看该作者
13楼
我只要报价稳定,不要新功能[em34]
个性签名

只做熟悉的
利润需要时间积累

本站免责声明:

1、本站所有广告及宣传信息均与韬客无关,如需投资请依法自行决定是否投资、斟酌资金安全及交易亏损风险;

2、韬客是独立的、仅为投资者提供交流的平台,网友发布信息不代表韬客的观点与意思表示,所有因网友发布的信息而造成的任何法律后果、风险与责任,均与韬客无关;

3、金融交易存在极高法律风险,未必适合所有投资者,请不要轻信任何高额投资收益的诱导而贸然投资;投资保证金交易导致的损失可能超过您投入的资金和预期。请您考虑自身的投资经验及风险承担能力,进行合法、理性投资;

4、所有投资者的交易帐户应仅限本人使用,不应交由第三方操作,对于任何接受第三方喊单、操盘、理财等操作的投资和交易,由此导致的任何风险、亏损及责任由投资者个人自行承担;

5、韬客不隶属于任何券商平台,亦不受任何第三方控制,韬客不邀约客户投资任何保证金交易,不接触亦不涉及投资者的任何资金及账户信息,不代理任何交易操盘行为,不向客户推荐任何券商平台,亦不存在其他任何推荐行为。投资者应自行选择券商平台,券商平台的任何行为均与韬客无关。投资者注册及使用韬客即表示其接受和认可上述声明,并自行承担法律风险。

版权所有:韬客外汇论坛 www.talkfx.com 联络我们:[email protected]