首页 > > 详细

代写股票选股公式、TB程序化公式帮做、美林证券交易大师的交易策略-开拓者公式



源码仅供参考:
Params
Numeric Length1(23);
Numeric Length2(30);
Numeric Lots(1);
Numeric Offset(0);
Vars
Numeric EMA1;
Numeric EMA2;
NumericSeries Myhigh;
NumericSeries Mylow;
Begin
EMA1=XAverage(Close[1], Length1);
EMA2=XAverage(Close[1], Length2);

If(CurrentBar==0)
{
Myhigh=InvalidNumeric;
Mylow=InvalidNumeric;
}
Else
{
Myhigh=Myhigh[1];
Mylow=Mylow[1];
}
If(CurrentBarEMA1 Close>EMA2 MarketPosition!=1)
{
Myhigh=High;
}
If(Myhigh!=InvalidNumeric High>Myhigh)
{
Buy(Lots,Max(Open,Myhigh+Offset*MinMove*PriceScale));
Myhigh=InvalidNumeric;
}
If(Mylow==InvalidNumeric Close {
Mylow=Low;
}
If(Mylow!=InvalidNumeric Low {
SellShort(Lots,Min(Open,Mylow-Offset*MinMove*PriceScale));
Mylow=InvalidNumeric;
}
Commentary("多头入场价:"+Text(Myhigh));
Commentary("空头入场价:"+Text(Mylow));

End
//




 

联系我们 - QQ: 88652583
© 2014 www.93stock.com
代写选股公式网!
声明:警惕假冒分子冒充本站提供证券咨询服务,选股公式网为非证券咨询机构,本站不提供有关股评、投资分析报告、股市预测,证券咨询等服务。本站仅提供股票、期货、黄金、外汇的软件技术交流与分享。本站文章为互联网文章,其仅供参考,并不构成投资建议。