hmchen163 发表于 2013-7-10 21:54

非常感谢楼主的分享

hmchen163 发表于 2013-7-11 06:36

非常感谢楼主的分享

dygsoft 发表于 2013-7-11 12:01

不错,学习一下。:WX:

DDDEGGN 发表于 2013-7-21 10:32

感谢分享。。。。。

w125123721 发表于 2013-7-21 18:03


学习中 谢楼主分享

eee-ding 发表于 2013-7-25 08:36

进来看看了

hmchen163 发表于 2013-7-28 07:14

非常感谢楼主的分享

可以无名 发表于 2013-7-28 13:09

周末愉快,找到家了,呵呵。。。。。。。。。。。。

mbyc 发表于 2013-8-10 11:53

   红树林园 :
开新帖了。我又来学习了.
好图.
支持一下了.

菩提树989 发表于 2013-8-10 21:00

林园老师,周末愉快!

koopwang 发表于 2013-8-11 13:57

红树林园 发表于 2011-8-9 11:15 static/image/common/back.gif
吊灯止损策略(文章转载,图片自配)

    吊灯止损策略将跟踪止损点设置在市场最高价(或最高收盘价)下方某 ...

顶一下

cfashen 发表于 2013-8-28 20:08

//+------------------------------------------------------------------+
//|                                              SuperTrend.mq4 v1.2 |
//|                   Copyright ?2012, Jason Robinson (jnrtrading). |
//|                                 
//+------------------------------------------------------------------+
#property copyright "Copyright ?2012, Jason Robinson."
#property link      "http://www.spreadtrade2win.com"

#property indicator_chart_window
#property indicator_color1 Lime
#property indicator_color2 Red
#property indicator_width1 2
#property indicator_width2 2
#property indicator_buffers 2
double TrendUp[], TrendDown[];
int changeOfTrend;
extern int Nbr_Periods = 10;
extern double Multiplier = 3.0;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
   {
//---- indicators
    SetIndexBuffer(0, TrendUp);
    SetIndexStyle(0, DRAW_LINE, STYLE_SOLID, 2);
    SetIndexLabel(0, "Trend Up");
    SetIndexBuffer(1, TrendDown);
    SetIndexStyle(1, DRAW_LINE, STYLE_SOLID, 2);
    SetIndexLabel(1, "Trend Down");
//----
    return(0);
   }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                     |
//+------------------------------------------------------------------+
int deinit()
   {
//----
   
//----
    return(0);
   }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
   {
    int limit, i, flag, flagh, trend;
    double up, dn, medianPrice, atr;
    int counted_bars = IndicatorCounted();
//---- check for possible errors
    if(counted_bars < 0) return(-1);
//---- last counted bar will be recounted
    if(counted_bars > 0) counted_bars--;
    limit=Bars-counted_bars;
    //Print(limit);
   
//----
    for (i = Bars; i >= 0; i--) {
       TrendUp = EMPTY_VALUE;
       TrendDown = EMPTY_VALUE;
       atr = iATR(NULL, 0, Nbr_Periods, i);
       //Print("atr: "+atr);
       medianPrice = (High+Low)/2;
       //Print("medianPrice: "+medianPrice);
       up=medianPrice+(Multiplier*atr);
       //Print("up: "+up);
       dn=medianPrice-(Multiplier*atr);
       //Print("dn: "+dn);
       trend=1;
   
      
       if (Close>up) {
          trend=1;
          if (trend == -1) changeOfTrend = 1;
          //Print("trend: "+trend);
         
       }
       else if (Close<dn) {
          trend=-1;
          if (trend == 1) changeOfTrend = 1;
          //Print("trend: "+trend);
       }
       else if (trend==1) {
          trend=1;
          changeOfTrend = 0;      
       }
       else if (trend==-1) {
          trend=-1;
          changeOfTrend = 0;
       }

       if (trend<0 && trend>0) {
          flag=1;
          //Print("flag: "+flag);
       }
       else {
          flag=0;
          //Print("flagh: "+flag);
       }
      
       if (trend>0 && trend<0) {
          flagh=1;
          //Print("flagh: "+flagh);
       }
       else {
          flagh=0;
          //Print("flagh: "+flagh);
       }
      
       if (trend>0 && dn<dn)
          dn=dn;
      
       if (trend<0 && up>up)
          up=up;
      
       if (flag==1)
          up=medianPrice+(Multiplier*atr);
         
       if (flagh==1)
          dn=medianPrice-(Multiplier*atr);
         
       //-- Draw the indicator
       if (trend==1) {
          TrendUp=dn;
          if (changeOfTrend == 1) {
             TrendUp = TrendDown;
             changeOfTrend = 0;
          }
       }
       else if (trend==-1) {
          TrendDown=up;
          if (changeOfTrend == 1) {
             TrendDown = TrendUp;
             changeOfTrend = 0;
          }
       }
    }
    WindowRedraw();
      
//----
    return(0);
   }
//+------------------------------------------------------------------+

xiaolanhou68 发表于 2013-9-9 18:04

说起来很简单的,做到很难的

tanvd 发表于 2013-9-9 19:18

好好学习

cky76117 发表于 2013-9-9 19:54

谢谢老师。

1965cgx1958 发表于 2013-9-9 23:04

支持。学习之。

期货小菜鸟 发表于 2013-11-30 15:46

请问红树林园老师,期货博弈大师里怎么改成你这样的指标公式?

robin2058 发表于 2013-12-11 23:43

老师的帖子太棒了,学习了

车场 发表于 2013-12-12 10:45

谢谢老师‘!

ddfznz 发表于 2014-6-11 14:23

老师的指标和文字,让我看得如痴如醉!太好了!让我们这些散户可以有赚钱的武器与法宝了,O(∩_∩)O谢谢!
页: 3 4 5 6 7 8 9 10 11 12 [13] 14 15 16 17
查看完整版本: 简简单单好 持股持币一看就知道(纪录: 首日点击 5379次, 回复 14帖)