首页 > > 详细

调试TB指标公式、公式选股代写、代写股票选股公式、开拓者带未来的突破性交易策略-



Params
Numeric length(5);
Numeric hands(1);
Numeric Stop_win(2000);
Numeric Stop_loss(1000);
Numeric n(-2);
Vars
Numeric myhigh;
Numeric mylow;
Numeric MyEntryPrice;
Numeric MyExitPrice;
Begin

if(time>=0.1455)
{
if(MarketPosition==1)
sell(0,open);
if(MarketPosition==-1)
{
buytocover(0,open);

}
}

myhigh = Highest(High[1],length);
mylow = Lowest(Low[1],length);
PlotNumeric("myhigh",myhigh);
PlotNumeric("mylow",mylow);
if (High>myhigh and MarketPosition1 and open=0.0901 time 1 and open>myhigh and time>=0.0901 time -1 and open>=mylow and time>=0.0901 time -1 and open=0.0901 time = MyEntryPrice + Stop_win) // 止赢条件表达式
{
MyExitPrice = MyEntryPrice + Stop_win;
If(Open > MyExitPrice) MyExitPrice = Open;
// 如果该Bar开盘价有跳空触发,则用开盘价代替
Sell(0,MyExitPrice);
}else if(Low = MyEntryPrice + Stop_loss)// 止损条件表达式
{
MyExitPrice = MyEntryPrice + Stop_loss;
If(Open > MyExitPrice) MyExitPrice = Open;
// 如果该Bar开盘价有跳空触发,则用开盘价代替
BuyToCover(0,MyExitPrice);
}
}
End




 

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