当前位置:分析家公式网 → 股票公式 → 文华公式 → 一键转帖:文华与开拓者通用的dual thrust系统策略源码[文华财经公式]
软件名称:[B]文华与开拓者通用的dual thrust系统策略源码[文华财经公式][/B]
软件类型:国产软件
运行环境:Win2000/WinXP/Win2003/WinVista
软件语言:简体中文
授权方式:共享软件
软件大小:0 Bytes
官方主页:Home Page
更新时间:2013-03-21 06:44:45
软件简介:
- dual thrust系统原形
开拓者TB源码:- Inputs: K1(.5),K2(.5),Mday(1),Nday(1);
- Vars: BuyRange(0), SellRange(0);
- Vars: BuyTrig(0),SellTrig(0);
- Vars: HH(0),LL(0),HC(0),LC(0);
- If CurrentBar > 1 Then Begin
- HH = Highest(High,Mday);
- HC = Highest(Close,Mday);
- LL = Lowest(Low,Mday);
- LC = Lowest(Close,Mday);
- If (HH - LC) >= (HC - LL) Then Begin
- SellRange = HH - LC;
- End Else Begin
- SellRange = HC - LL;
- End;
- HH = Highest(High,Nday);
- HC = Highest(Close,Nday);
- LL = Lowest(Low,Nday);
- LC = Lowest(Close,Nday);
- If (HH - LC) >= (HC - LL) Then Begin
- BuyRange = HH - LC;
- End Else Begin
- BuyRange = HC - LL;
- End;
- BuyTrig = K1*BuyRange;
- SellTrig = K2*SellRange;