南海孤星 发表于 2013-12-9 21:10:59

指标在哪里

黄金初学者 发表于 2013-12-29 17:57:12

在哪里?????

董斌 发表于 2014-1-11 01:17:36

在哪

乡思月 发表于 2014-1-13 11:01:54

乡思月 发表于 2014-1-13 11:02:10

fcdtdestr

乡思月 发表于 2014-1-13 11:02:59

{:soso_e100:}

星月 发表于 2014-2-6 11:23:34

#property copyright "Eysen"
#property link      "2013"

#property indicator_chart_window

extern double    maxlevel=100.0;
extern double    bonus=0;
int init()
{
   return(0);
}
int deinit()
{
   return(0);
}
int start()
{
   int    counted_bars=IndicatorCounted();
double lots=0,maxlots,s;

    for(int a=0;a<=OrdersTotal();a++)
   if(OrderSelect(a,SELECT_BY_POS,MODE_TRADES)==true)
      if(OrderType()==OP_BUY || OrderType()==OP_SELL)
       lots+=OrderLots();                           //计算已经下单的手数
    maxlots=(AccountBalance()-bonus)*maxlevel/100000; //计算最大可以下单数

    if(lots>maxlots)
    {
   s=lots-maxlots;
   Alert("最多只能下"+maxlots+"手单子,请平仓"+s+"手");   
   }
   return(0);
}

淡忘过去 发表于 2014-2-7 13:12:51

fffffffffffffffffffffffffffffffff

黄金初学者 发表于 2014-2-7 22:35:28

发个图

紫竹青荷 发表于 2014-2-8 21:13:28

页: 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15
查看完整版本: 花1000元买的指标,用来分享给各位朋友