返回列表 发布新帖

依然喜欢你-----保证金(第11周)

评论969

夜猫子Lv.3 发表于 2005-7-21 00:49 | 查看全部
https://www.y2cn.com
原帖由 cashmere 于 2005-7-21 00:46 发表

我也mt4.怎么设定啊?。

不是设定,是我编的一个程序,你想要的话我给你。
沙子一屋子金子一袋子
回复 点赞

使用道具 举报

cashmere楼主Lv.64 发表于 2005-7-21 00:49 | 查看全部
发哥尼?怎么没动静啦?



===================================
Y2.CN 外汇论坛 标准报价
EURUSD:1.2043/1.2045
USDJPY:113.4500/113.4700
GBPUSD:1.7289/1.7292
USDCHF:1.2980/1.2983
AUDUSD:0.7526/0.7529
USDCAD:1.2239/1.2244
NZDUSD:0.6721/0.6725
EURCHF:1.5633/1.5636
EURGBP:0.6964/0.6966
EURJPY:136.6400/136.6700
GBPJPY:196.1600/196.2200

以上为发贴时市场即时汇率
===================================
回复 点赞

使用道具 举报

夜猫子Lv.3 发表于 2005-7-21 00:50 | 查看全部
妈的现在澳日下来了!我没坚持到现在!。
沙子一屋子金子一袋子
回复 点赞

使用道具 举报

cashmere楼主Lv.64 发表于 2005-7-21 00:51 | 查看全部
原帖由 夜猫子 于 2005-7-21 00:48 发表

模拟的!真的要这么做必须每仓0。01 (没那么多钱)
所以我想开一个这样的户头试试。

又这么小的吗?
回复 点赞

使用道具 举报

cashmere楼主Lv.64 发表于 2005-7-21 00:52 | 查看全部
原帖由 夜猫子 于 2005-7-21 00:49 发表

不是设定,是我编的一个程序,你想要的话我给你。

好呀!按着费劲吗?我笨.不会弄电脑.h:h:。
回复 点赞

使用道具 举报

夜猫子Lv.3 发表于 2005-7-21 00:59 | 查看全部
原帖由 cashmere 于 2005-7-21 00:51 发表

又这么小的吗?

那位300元裸奔的就是0。01手,我也是看到了才有这个想法:极轻的仓做超级短线,不只损,存着有利息高,还有就是开始价位是中长线介入,现在镑日如果 191以下值得这么做。
沙子一屋子金子一袋子
回复 点赞

使用道具 举报

zhj0313Lv.10 发表于 2005-7-21 01:01 | 查看全部
原帖由 cashmere 于 2005-7-21 00:49 发表
发哥尼?怎么没动静啦?



===================================
Y2.CN 外汇论坛 标准报价
EURUSD:1.2043/1.2045
USDJPY:113.4500/113.47 ...

现在美指90.04,不上不下,旁边看戏。明天再作决定。。
回复 点赞

使用道具 举报

cashmere楼主Lv.64 发表于 2005-7-21 01:01 | 查看全部
原帖由 夜猫子 于 2005-7-21 00:59 发表

那位300元裸奔的就是0。01手,我也是看到了才有这个想法:极轻的仓做超级短线,不只损,存着有利息高,还有就是开始价位是中长线介入,现在镑日如果 191以下值得这么做。

191.要等啊!我不行.没耐性.
回复 点赞

使用道具 举报

夜猫子Lv.3 发表于 2005-7-21 01:03 | 查看全部
原帖由 cashmere 于 2005-7-21 00:52 发表

好呀!按着费劲吗?我笨.不会弄电脑.h:h:。



#property copyright "Copyright ?2005, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"

//---- input parameters
extern double    lowlimit=184.0;
extern double    highlimit=204.0;
extern double    stopprice=180.0;
extern int    stopfloatvalue=400;
extern int    takeprofit=30;
extern int    takedelta=10;
extern int    totallotsnum=250;
extern double    lots=0.1;
extern bool      type=true;
double Points;
//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//---- TODO: Add your code here.
   Points = MarketInfo (Symbol(), MODE_POINT);
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//---- TODO: Add your code here.
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
{
  int cnt=0, total;
  double lastprice;
  double delta;
  int ordercount;
  int ii;
  double profitprice;
  double firstprice;
  double tmpprice;
  ordercount=0;
  firstprice=0;
  if (type==true)
  {
    lastprice=highlimit;
  }
  else
  {
    lastprice=lowlimit;
  }
//---- TODO: Add your code here.
  total=OrdersTotal();
  for(cnt=0;cnt<total;cnt++)
  {
    OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
    if (type==true)
    {
      if(OrderSymbol()==Symbol())
      {
        if(OrderType()==OP_BUY)
        {
          ordercount++;
          if (lastprice>OrderTakeProfit())
          {
            lastprice=OrderTakeProfit();
          }
        }
        else if(OrderType()==OP_BUYLIMIT)
        {
          if (firstprice<OrderTakeProfit())
          {
            firstprice=OrderTakeProfit();
          }
        }        
      }
    }
    else
    {
      if(OrderSymbol()==Symbol())
      {
        if(OrderType()==OP_SELL)
        {
          ordercount++;
          if (lastprice<OrderTakeProfit())
          {
            lastprice=OrderTakeProfit();
          }
        }
      }      
    }
  }  
  if (type==true)
  {
    delta=lastprice-firstprice+Points*1;
    ii=delta/(Points*(takeprofit-takedelta));
    Print(ii," ",lastprice," ",firstprice);
    if (ii>1)
    {
      for (cnt=0;cnt<ii;cnt++)
      {
        tmpprice=lastprice-Points*(takeprofit-takedelta);      
        if (tmpprice-Points*takeprofit>Ask){
           OrderSend(Symbol(),OP_BUY,lots,Ask,3,0,tmpprice,"夜猫子",16888,0,Red);
           if(GetLastError()==0){
             lastprice=tmpprice;              
           }
           else {
             cnt--;
           }
        }
      }
      //if (firstprice-Points*takeprofit<Ask){
         firstprice=lastprice-Points*(takeprofit-takedelta);
         OrderSend(Symbol(),OP_BUYLIMIT,lots,firstprice-Points*takeprofit,3,0,firstprice,"夜猫子",16888,0,Red);
      //}
    }   
  }
  return(0);
}

//+------------------------------------------------------------------+

把上面的拷贝下来,另存为文件 autoorder.mq4
把这个文件拷贝到 metatrader 4 \experts 目录下就可以用了。
沙子一屋子金子一袋子
回复 点赞

使用道具 举报

cashmere楼主Lv.64 发表于 2005-7-21 01:04 | 查看全部
老猫,你的奥/日可以了吧?



===================================
Y2.CN 外汇论坛 标准报价
EURUSD:1.2054/1.2055
USDJPY:113.3500/113.3700
GBPUSD:1.7293/1.7296
USDCHF:1.2966/1.2969
AUDUSD:0.7526/0.7529
USDCAD:1.2238/1.2243
NZDUSD:0.6724/0.6728
EURCHF:1.5630/1.5633
EURGBP:0.6968/0.6970
EURJPY:136.6300/136.6500
GBPJPY:196.0200/196.0900

以上为发贴时市场即时汇率
===================================
回复 点赞

使用道具 举报

回复

本版积分规则

关灯 在本版发帖
扫一扫添加微信客服
QQ客服返回顶部
快速回复 返回顶部 返回列表