- 精华
- 0
- 在线时间
- 21 小时
- UID
- 227668
- 积分
- 66
- 帖子
- 53
- 阅读权限
- 30
- 注册时间
- 2016-1-30
- 最后登录
- 2023-3-7
- 精华
- 0
- UID
- 227668
- 积分
- 66
- 帖子
- 53
- 主题
- 5
- 阅读权限
- 30
- 注册时间
- 2016-1-30
- 最后登录
- 2023-3-7
|
Params
Numeric N1(5);
Numeric N2(60);
Vars
NumericSeries MA1;
NumericSeries MA2;
Numeric MinPoint;
Numeric myEntryPrice;
Bool con1(False);
Bool con2(False);
Begin
MA1=AvregeFC(Close,N1);
MA2=AvregeFC(Close,N2);
MinPoint=MinMove*PriceScale;
con1= Crossover(MA1[1]),MA2[1]);
con2=H>=myEntryPrice+40* MinPoint OR L<=myEntryPrice-20* MinPoint;
If(MarketPosition=0 AND con1=ture)
{
myEntryPrice=Open;
BUY(0,myEntryPrice);
}
If(MarketPosition=1 AND con2=ture)Sell(0,0);
End
你试试
|
|