发表于:2008-07-07 05:25只看该作者
2楼
没有 这个很好吗啊???
韬客社区www.talkfx.co
发表于:2008-07-07 07:43只看该作者
3楼
韬客社区www.talkfx.co
发表于:2008-07-07 07:51只看该作者
4楼
自己划几条线不就得了:);P ;P ;P ;P
韬客社区www.talkfx.co
发表于:2008-07-07 08:46只看该作者
5楼
//+------------------------------------------------------------------+
//| pivotpoints.mq4 |
//| Copyright 2008, Lian starssoft |
//| |
//+------------------------------------------------------------------+
//网格交易系统(只买或只卖)
static int grid_period=40; //定义格子大小
static double Shou=1; //定义手数
static string trademodel="buy"; //定义买卖模式
//+------------------------------------------------------------------+
//| Start function |
//+------------------------------------------------------------------+
void start()
{
double mod;
double nowprice;
if(trademodel=="buy")
{
nowprice=Ask;
mod=MathMod((nowprice/Point),grid_period);
openbuy(nowprice-mod*Point);
openbuy(nowprice-mod*Point+grid_period*Point);
}
if(trademodel=="sell")
{
nowprice=Bid;
mod=MathMod((nowprice/Point),grid_period);
opensell(nowprice-mod*Point);
opensell(nowprice-mod*Point+grid_period*Point);
}
}
//+------------------------------------------------------------------+
void openbuy(double orderprice)
{
for (int i=0;iAsk)
{
OrderSend(Symbol(),OP_BUYSTOP,Shou,orderprice,3,0,orderprice+grid_period*Point,DoubleToStr(orderprice/Point,0),0,0,Red);
}
else if(orderpriceBid)
{
OrderSend(Symbol(),OP_SELLLIMIT,Shou,orderprice,3,0,orderprice-grid_period*Point,DoubleToStr(orderprice/Point,0),0,0,Red);
}
else if(orderprice
韬客社区www.talkfx.co
发表于:2012-11-20 14:21只看该作者
8楼
韬客社区www.talkfx.co