设为首页收藏本站

 找回密码
 注册
查看: 1109|回复: 0

A涵数发单是不是这样写的, [复制链接]

Rank: 2

精华
0
UID
231668
积分
56
帖子
34
主题
8
阅读权限
30
注册时间
2016-4-6
最后登录
2020-3-5
发表于 2018-9-25 14:00:54 |显示全部楼层

Params
         Numeric Num(10);
Vars
Bool Condition1;
Bool Condition2;

Begin

Condition1=Average(o,5)>Average(o,10);
Condition2=Average(o,5)<=Average(o,10);
If(BarStatus==0)
{
SetGlobalVar(0,1);
}
if(Condition1 && A_BuyPosition()==0 && GetGlobalVar(0)==1)
{
A_SendOrder(Enum_Buy,Enum_Entry,1,Q_AskPrice);
SetGlobalVar(0,0);
}
If(Condition2&& A_sellPosition()==0 &&GetGlobalVar(0)==1)
{
A_SendOrder(Enum_sell,Enum_Entry,1,Q_BidPrice());
SetGlobalVar(0,0);
}
End
您需要登录后才可以回帖 登录 | 注册

bottom

静态版|手机版|联系我们|交易开拓者 ( 粤ICP备07044698   

GMT+8, 2024-3-29 22:46

Powered by Discuz! X2 LicensedChrome插件扩展

© 2011-2012 交易开拓者 Inc.

回顶部