大伊人青草狠狠久久-大伊香蕉精品视频在线-大伊香蕉精品一区视频在线-大伊香蕉在线精品不卡视频-大伊香蕉在线精品视频75-大伊香蕉在线精品视频人碰人
打印本文
關閉窗口
開拓者道氏理論交易策略源碼
作者:開拓者 TB 來源:cxh99.com 發布時間:2012年11月17日
道氏理論內容:
//------------------------------------------------------------------------
// 簡稱: D1
// 名稱: 道氏理論
// 類別: 交易指令
// 類型: 多頭建倉
// 輸出:
m.weiqiv.net.cn
//------------------------------------------------------------------------
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
// 版權所有
m.weiqiv.net.cn
// 更改聲明 TradeBlazer Software保留對TradeBlazer平臺
// 每一版本的TrabeBlazer公式修改和重寫的權利
//------------------------------------------------------------------------
打印本文
關閉窗口
主站蜘蛛池模板:
欧美熟videos肥婆
|
久久综合综合久久
|
亚洲欧洲久久久精品
|
亚洲人成一区二区不卡
|
亚洲字幕
|
国产伦理一区二区三区
|
国产乱子伦视频大全
|
伊人不卡久久大香线蕉综合影院
|
精品国免费一区二区三区
|
精品久久久久久免费影院
|
久久婷婷色
|
综合久久影院
|
天天操天天搞
|
久久精品国内偷自一区
|
欧美三级aaa
|
色色在线视频
|
久久久久九九
|
免费国产黄线在线观看视频
|
日韩大乳视频中文字幕
|
国产成人精品午夜二三区
|
一本久久a久久精品vr综合
|
日本综合在线观看
|
国产精品美女一级在线观看
|
亚洲五月婷婷
|
92精品国产成人观看免费
|
欧美日韩国产一区三区
|
日本a视频
|
两性视频网站
|
国内精品福利在线视频
|
日韩欧美精品一区二区
|
香蕉久久夜色精品国产
|
国产va
|
国产精品成人在线播放
|
欧美久久视频
|
在线观看一级
|
婷婷开心中文字幕
|
亚洲欧美日韩国产精品
|
欧美亚洲专区
|
亚洲欧美小视频
|
99国产精品免费观看视频
|
亚洲欧美日韩综合一区久久
|