大伊人青草狠狠久久-大伊香蕉精品视频在线-大伊香蕉精品一区视频在线-大伊香蕉在线精品不卡视频-大伊香蕉在线精品视频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公式修改和重寫的權利
//------------------------------------------------------------------------
打印本文
關閉窗口
主站蜘蛛池模板:
久久久久夜夜夜精品国产
|
久久777国产线看观看精品卜
|
国产在线精品香蕉麻豆
|
亚洲成人福利
|
国产资源精品一区二区免费
|
精品成人免费一区二区在线播放
|
日韩欧美国产精品第一页不卡
|
在线看污网站
|
国产成人一区二区三区视频免费
|
久久久久久久久66精品片
|
日本日日黄
|
99国产精品一区二区
|
国产成人免费全部网站
|
一级中国毛片
|
久久久国产精品免费视频
|
国内精品自在自线香蕉
|
欧美日本在线一区二区三区
|
国产a做爰全过程片
|
国产在线精品香蕉综合网一区
|
亚洲羞羞视频
|
亚洲综合色丁香麻豆
|
漂亮女大学一级毛片
|
精品成人毛片一区二区视
|
国产永久一区二区三区
|
高清欧美一级在线观看
|
中文视频在线观看
|
www.午夜精品
|
四虎视频在线精品免费观看
|
一级做性色a爱片久久片
|
91在线网站
|
久久精品国产精品亚洲毛片
|
尤物久久99热国产综合
|
亚洲日本va中文字幕区
|
伊人激情久久综合中文字幕
|
91精品成人免费国产片
|
青青免费视频精品一区二区
|
国产激情久久久久影
|
日本一级高清片免费
|
精品久久久久国产
|
一区二区在线免费观看
|
九九99re在线视频精品免费
|