Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:请老师修改公式

1楼
yzhybw 发表于:2021/3/3 14:26:28
周期高点:REF(HHV(H,X1),1);
周期低点:REF(LLV(L,X2),1);
平空开多:=HIGH>=周期高点;
平多开空:=LOW<=周期低点;
BUYSHORT_BUY(平空开多,LOW);
SELL_SELLSHORT(平多开空,HIGH);
AUTOFILTER;


请老师把通达信公式改成金字塔策略。
2楼
FireScript 发表于:2021/3/3 14:29:23
 这个不是通达信的。
不过看字面意思就是2个反手。改下下单语句就行了。

周期高点:REF(HHV(H,X1),1);
周期低点:REF(LLV(L,X2),1);
平空开多:=HIGH>=周期高点;
平多开空:=LOW<=周期低点;

if 平空开多  then
begin
sellshort(1,holding,market);
buy(holding=0,1,market);   
end

if 平多开空  then
begin
sell(1,holding,market);
buyshort(holding=0,1,market);   
end
共2 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.03271 s, 3 queries.