大伊人青草狠狠久久-大伊香蕉精品视频在线-大伊香蕉精品一区视频在线-大伊香蕉在线精品不卡视频-大伊香蕉在线精品视频75-大伊香蕉在线精品视频人碰人
打印本文
關(guān)閉窗口
【跟風發(fā)套系統(tǒng)】道氏理論系統(tǒng)分享
作者:開拓者 TB 來源:cxh99.com 發(fā)布時間:2012年08月28日
咨詢內(nèi)容:
跟穿堂風一個群的 平時喜歡琢磨點系統(tǒng) 我看流氓風分享了好幾套系統(tǒng)了 我也跟風發(fā)一個吧~
道氏理論大家應該都很熟悉
不太清楚的同志請自己搜索下 這個東西是套很經(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)友回復:
我的測試結(jié)果怎么和版主的不一樣?
網(wǎng)友回復:
快把壓箱底的交出來
穿堂風 發(fā)表于 2011-7-26 17:34
才不要 -v-
打印本文
關(guān)閉窗口
主站蜘蛛池模板:
7777奇米
|
成人免费在线视频
|
国产不卡视频在线播放
|
欧日韩美香蕉在线观看
|
欧美日韩视频在线成人
|
免费看真人a一级毛片
|
国产高清自拍
|
极品欧美人体xxxxoo
|
视频一区国产精戏刘婷
|
亚洲最大成人在线
|
久草亚洲视频
|
日本欧美在线观看
|
91极品视频在线观看
|
亚洲一区二区三区精品国产
|
亚洲欧美日韩中文字幕在线一区
|
成人在线精品视频
|
亚洲另类 专区 欧美 制服
|
久久国产精品亚洲77777
|
米奇7777狠狠狠狠视频影院
|
奇米激情
|
99ri精品视频在线观看播放
|
久久99国产精品免费观看
|
天天躁天天碰天天看
|
亚洲免费视频观看
|
91破解版在线 | 亚洲
|
七次郎在线成人精品
|
欧美日韩1区
|
中文字幕不卡在线高清
|
久热国产在线视频
|
福利在线视频一区热舞
|
亚洲99在线的
|
日批日韩在线观看
|
草草在线观看视频
|
国产成人一区二区三区在线视频
|
香蕉视频a
|
国产精品欧美亚洲
|
国产精品亚洲欧美日韩区
|
欧美一级毛片免费网站
|
亚洲另类欧美日韩
|
午夜影院在线
|
热灸灸这里只有精品
|