大伊人青草狠狠久久-大伊香蕉精品视频在线-大伊香蕉精品一区视频在线-大伊香蕉在线精品不卡视频-大伊香蕉在线精品视频75-大伊香蕉在线精品视频人碰人
打印本文
關(guān)閉窗口
【跟風(fēng)發(fā)套系統(tǒng)】道氏理論系統(tǒng)分享
作者:開拓者 TB 來源:cxh99.com 發(fā)布時間:2012年08月28日
咨詢內(nèi)容:
跟穿堂風(fēng)一個群的 平時喜歡琢磨點系統(tǒng) 我看流氓風(fēng)分享了好幾套系統(tǒng)了 我也跟風(fēng)發(fā)一個吧~
道氏理論大家應(yīng)該都很熟悉
不太清楚的同志請自己搜索下 這個東西是套很經(jīng)典的系統(tǒng)
因為我是做日內(nèi)的 所以寫成了日內(nèi)交易 有興趣的朋友可以改成中長線的系統(tǒng)
代碼如下
//------------------------------------------------------------------------
// 簡稱: D1
// 名稱: 道氏理論
// 類別: 交易指令
// 類型: 多頭建倉
// 輸出:
//------------------------------------------------------------------------
Params
Numeric ATime(918);
Numeric CTime(1510);
Numeric Lot(1);
Numeric MoneyLoss(0.6);
Numeric BarCross(1);
Numeric Length(5);
Vars
Numeric bTime(0);
Numeric MyClose(0);
Numeric MyDiff(0);
NumericSeries estP(0);
NumericSeries ExitP(0);
NumericSeries Position(0);
NumericSeries est(0);
NumericSeries est1(0);
NumericSeries est2(0);
NumericSeries est3(0);
Bool bTimeCon;
Bool BarUpCon;
Bool BarDownCon;
Bool BarExitCon;
Bool LongOpenCon;
Bool ShortOpenCon;
Bool LongExitCon;
Bool ShortExitCon;
Begin
If (Date != Date[1])
{
est = Open;
est1 = Open;
est2 = Open;
est3 = Open;
estP = 0;
ExitP = 0;
Position = 0;
MyClose = Open;
}
Else
{
est = est[1];
est1 = est1[1];
est2 = est2[1];
est3 = est3[1];
estP = estP[1];
ExitP = ExitP[1];
Position = Position[1];
If(Length != 0) MyClose = Average(Close[1],Length);
Else MyClose = Close[1];
}
MyDiff = MyClose * BarCross / 1000;
bTime = IntPart(Time*10000);
bTimeCon = (bTime > ATime) And (bTime < CTime);
If((MyClose < est And MyClose < est1) Or (MyClose > est And MyClose > est1)) est = MyClose;
If(((MyClose - est) > MyDiff And est < est1) Or ((est - MyClose) > MyDiff And est > est1))
{
est3 = est2;
est2 = est1;
est1 = est;
est = MyClose;
}
If(Position > 0 And High > estP) estP = High;
If(Position < 0 And Low < estP) estP = Low;
If(Position > 0) ExitP = estP * (100 - MoneyLoss) / 100;
If(Position < 0) ExitP = estP * (100 + MoneyLoss) / 100;
If(bTime >= CTime)
{
If (Position > 0)
Sell(lot,Open);
Else
BuyToCover(lot,Open);
}
If(bTimeCon)
{
If (Position == 0)
{
If(est3 < est1 And (est2 / 2000 + est2) <= est And est3 < est2)
{
Buy(lot,Open);
Position = lot;
estP = Open;
ExitP = estP * (100 - MoneyLoss) / 100;
Commentary("LongOpen");
}
Else If(est3 > est1 And (est2 - est2 / 2000) >= est And est3 > est2)
{
SellShort(lot,Open);
Position = lot * -1;
estP = Open;
ExitP = estP * (100 + MoneyLoss) / 100;
Commentary("ShortOpen");
}
}
Else
{
If(Position > 0 And est3 > est1)
{
Sell(lot,Open);
Position = 0;
Commentary("LongExit1");
}
Else If(Position < 0 And est3 < est1)
{
BuyToCover(lot,Open);
Position = 0;
Commentary("ShortExit1");
}
Else If(Position > 0 And Open < ExitP)
{
Sell(lot,Open);
Position = 0;
Commentary("LongExit2");
}
Else If(Position < 0 And Open > ExitP)
{
BuyToCover(lot,Open);
Position = 0;
Commentary("ShortExit2");
}
}
}
Commentary("Position = "+Text(Position));
Commentary("ExitP = "+Text(ExitP));
End
//------------------------------------------------------------------------
// 編譯版本 GS2004.06.12
// 用戶版本 2011/05/03 13:21
// 版權(quán)所有 illidanyl
// 更改聲明 TradeBlazer Software保留對TradeBlazer平臺
// 每一版本的TrabeBlazer公式修改和重寫的權(quán)利
//------------------------------------------------------------------------
TB技術(shù)人員:
中間有些資金控制的東西 不修改任何參數(shù)的日內(nèi)結(jié)果如下 大家圖個樂吧~
11.jpg
(109.97 KB, 下載次數(shù): 8)
2011-7-26 17:08:48 上傳 下載次數(shù): 8
TB客服:
快把壓箱底的交出來
網(wǎng)友回復(fù):
我的測試結(jié)果怎么和版主的不一樣?
網(wǎng)友回復(fù):
快把壓箱底的交出來
穿堂風(fēng) 發(fā)表于 2011-7-26 17:34
才不要 -v-
打印本文
關(guān)閉窗口
主站蜘蛛池模板:
国产一级内谢a级高清毛片 国产一级片毛片
|
日本精品二区
|
中文字幕精品一区二区三区视频
|
99热在线精品观看
|
免费色片
|
在线视频99
|
欧美国产精品日韩在线
|
久久久一级
|
九九草在线观看
|
欧美特黄aaaaaa
|
亚洲va天堂va国产va久
|
性做久久久久久网站
|
国产3344永久在线观看视频
|
肉漫天堂
|
国产91精品一区二区视色
|
九九热视频精品
|
久久一区二区精品综合
|
亚洲天天做夜夜做天天欢人人
|
亚洲欧美色综合自拍
|
99热久久国产精品这里有全部
|
亚洲欧美综合一区二区三区四区
|
91亚洲精品一区二区自
|
国产精品一区二区三
|
在线观看精品一区
|
亚洲国产最新在线一区二区
|
老司机福利深夜亚洲入口
|
看一级特黄a大片日本片
|
香蕉视频免费在线观看
|
日日干夜夜骑
|
精品视频免费在线
|
五月久久婷婷综合片丁香花
|
国产精品国产色综合色
|
一本大道加勒比久久综合
|
久久精品欧美日韩精品
|
奇米影视奇奇米色狠狠色777
|
26uuu精品一区二区
|
se色成人亚洲综合
|
日日干日日操日日射
|
亚洲精品成人一区二区www
|
精品特级一级毛片免费观看
|
欧美一级艳片爽快片
|