以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  轮巡K秒的交易系统  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=33805)

--  作者:ghc63
--  发布时间:2012/12/20 8:15:07
--  轮巡K秒的交易系统

   如何实现轮巡K秒,满足A,B,AP,BP条件则进行下面的操作(所选5分钟周期内可能多次开平仓),同时加上止损止赢象啊火给出的例子那样帮我写一下,我是菜鸟

 

 

 

 

 

   1.A马上开多单;

   2.B 马上开空单;

   3.AP马上平多单;

   4.BP 马上平空单;


--  作者:jinzhe
--  发布时间:2012/12/20 9:03:48
--  

if a then buy();

if b then buyshort();

if ap then sell();

if bp then sellshrot();


--  作者:ghc63
--  发布时间:2012/12/20 9:09:17
--  
5分钟周期内可能多次开平仓???
--  作者:jinzhe
--  发布时间:2012/12/20 9:11:59
--  

图表每个周期只会做一次同样的动作


--  作者:ghc63
--  发布时间:2012/12/20 9:13:30
--  

我需要后台交易


--  作者:jinzhe
--  发布时间:2012/12/20 9:23:49
--  
后台也一样,不加allowrepeat,也是一个周期做一次相同动作
--  作者:admin
--  发布时间:2012/12/20 9:48:45
--  
if a then buy(),allowrepeat;
if b then buyshort(),allowrepeat;
if ap then sell(),allowrepeat;
if bp then sellshrot(),allowrepeat;