- 精华
- 0
- 在线时间
- 44 小时
- UID
- 267738
- 积分
- 94
- 帖子
- 68
- 阅读权限
- 30
- 注册时间
- 2018-7-21
- 最后登录
- 2020-4-9
- 精华
- 0
- UID
- 267738
- 积分
- 94
- 帖子
- 68
- 主题
- 18
- 阅读权限
- 30
- 注册时间
- 2018-7-21
- 最后登录
- 2020-4-9
|
Vars
Numeric zdfy;//最大浮盈
Numeric zxfy;//最小浮盈
Begin
if(MarketPosition==1)
{
zdfy=(High-EntryPrice)*MaxContracts*PriceScale()*MinMove*10;
zxfy=(low-EntryPrice)*MaxContracts*PriceScale()*MinMove*10;
PlotString("zdfy",text(zdfy),high,Green);
PlotString("zxfy",text(zxfy),close,White);
}
if(MarketPosition==-1)
{
zdfy=(low-EntryPrice)*MaxContracts*PriceScale()*MinMove*10;
zxfy=(high-EntryPrice)*MaxContracts*PriceScale()*MinMove*10;
PlotString("zdfy",text(zdfy),high,Green);
PlotString("zxfy",text(zxfy),close,White);
}
没问题吧? |
|