找回密码
 免费注册

QQ登录

只需一步,快速开始

1.瑞讯银行,10万CHF保障,免费公证! 2.盛宝银行,吉利控股,4万多种商品! 3.杜高斯贝银行,FINMA监管,瑞士银行! 4.FXPro浦汇,支持银联存取!

账户充值:充值介绍 淘宝直充:请联系旺旺libopsy WebMoney交流 电子货币交流 银行、财付通 请联系QQ:105360942

联系我们:9:00 - 22:00(工作日) 咨询QQ:120807536开户咨询 咨询Skype:taojin88.com 咨询热线:13522999558

查看: 55322|回复: 344

MT4的7种模版下载

[复制链接]
发表于 2008-12-17 22:41:44 | 显示全部楼层 |阅读模式
MT4的7种模版!模版里有指标可以做操作参考.

游客,如果您要查看本帖隐藏内容请回复
发表于 2008-12-25 10:42:22 | 显示全部楼层

/*[[

/*[[
        Name := OsMA
        Author := Copyright ?2003, MetaQuotes Software Corp.
        Link := http://www.metaquotes.ru/
        Separate Window := Yes
        First Color := White
        First Draw Type := Line
        Use Second Data := Yes
        Second Color := Red
        Second Draw Type := Line
]]*/
Inputs : FastMAPeriod(3), SlowMAPeriod(13), SignalMAPeriod(3);
Variables : shift(0), cnt(0), sum(0), loopbegin1(0), loopbegin2(0), first(True), prevbars(0);
Variables : FastMA(0), SlowMA(0);

SetLoopCount(0);
// initial checkings
If FastMAPeriod < 1 Or SlowMAPeriod < 1 Or SignalMAPeriod < 1 Then Exit;
If FastMAPeriod >= SlowMAPeriod Then Exit;
// check for additional bars loading or total reloading
If Bars < prevbars Or Bars-prevbars>1 Then first = True;
prevbars = Bars;
// loopbegin1 and loopbegin2 prevent couning of counted bars exclude current
If first Then Begin
        loopbegin1 = Bars-SlowMAPeriod-1;
        If loopbegin1 < 0 Then Exit;      // not enough bars for counting
        loopbegin2 = Bars-SlowMAPeriod-SignalMAPeriod-2;
        If loopbegin2 < 0 Then Exit;      // not enough bars for counting
        first = False;                    // this block is to be evaluated once only
End;

// convergence-divergence
loopbegin1 = loopbegin1+1;            // current bar is to be recounted too
For shift = loopbegin1 Downto 0 Begin
        FastMA = iMACDEx(FastMAPeriod,SlowMAPeriod,SignalMAPeriod,PRICE_CLOSE,MODE_MAIN,shift);
        SlowMA = iMACDEx(FastMAPeriod,SlowMAPeriod,SignalMAPeriod,PRICE_CLOSE,MODE_SIGNAL,shift);
        SetIndexValue(shift,FastMA-SlowMA);
        loopbegin1 = loopbegin1-1;        // prevent to previous bars recounting
End;
// signal line
loopbegin2 = loopbegin2+1;            // current bar is to be recounted too
For shift = loopbegin2 Downto 0 Begin
        sum = 0;
        for cnt = 0 To SignalMAPeriod-1 Begin
                sum = sum + GetIndexValue(shift+cnt);
        End;
        SetIndexValue2(shift,sum/SignalMAPeriod);
        loopbegin2 = loopbegin2-1;        // prevent to previous bars recounting
End;
回复

使用道具 举报

发表于 2008-12-28 10:18:04 | 显示全部楼层

琵琶琵琶

琵琶琵琶琵琶琵琶琵琶琵琶琵琶
回复

使用道具 举报

发表于 2008-12-29 00:28:29 | 显示全部楼层
琵琶琵琶
琵琶琵琶琵琶琵琶琵琶琵琶琵琶
回复

使用道具 举报

发表于 2008-12-29 17:27:22 | 显示全部楼层
回复

使用道具 举报

发表于 2008-12-31 23:02:43 | 显示全部楼层
琵琶琵琶琵琶琵琶琵琶琵琶琵琶
回复

使用道具 举报

发表于 2009-1-6 09:27:28 | 显示全部楼层
看看是什么东东
回复

使用道具 举报

发表于 2009-1-8 10:15:03 | 显示全部楼层
看看是什么东东
回复

使用道具 举报

发表于 2009-1-8 16:27:13 | 显示全部楼层

看看好用不

好用不 看看
回复

使用道具 举报

发表于 2009-1-14 22:10:27 | 显示全部楼层

ggggggggggg

nnnnnnnnnnnnnnnn
回复

使用道具 举报

发表于 2009-1-19 19:05:51 | 显示全部楼层

谢谢
回复

使用道具 举报

发表于 2009-1-24 14:19:27 | 显示全部楼层
谢谢楼主,看看一下
回复

使用道具 举报

发表于 2009-1-24 19:11:49 | 显示全部楼层

了解一下

看看能不能用
回复

使用道具 举报

发表于 2009-1-30 05:25:35 | 显示全部楼层
看看
回复

使用道具 举报

发表于 2009-2-28 23:15:29 | 显示全部楼层
看看是什么东东
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

QQ|Archiver|手机版|小黑屋|淘金吧外汇

GMT+8, 2024-4-27 08:35 , Processed in 0.042788 second(s), 24 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表