📅 财经日历 📊 实时波动 📈 大盘云图 📶 行情走势 🆚 投机情绪 🚀 今日热点

    麻烦那位老师给翻译一下.我是菜鸟,要学习

    2011-09-14 · 4721 阅读
    #property copyright \"Copyright ?2006-07, Akuma99\"
      #property link      \"http://www.beginnertrader.com \"
      
      #property indicator_separate_window
      #property indicator_buffers 3
      #property indicator_color1 Green //uptrend
      #property indicator_width1 2  
      #property indicator_color2 IndianRed  //downtrend
      #property indicator_width2 2  
      #property indicator_color3 DarkGreen // First Stochastic line
      #property indicator_width3 2  
      
      
      extern string note1 = \"First Stochastic\";
      extern int    StochPeriod1=14;
      extern int    DPeriod1=3;
      extern int    SlowingPeriod1=3;
      
      double upB[];
      double loB[];
      double Stoch1[];
      //+------------------------------------------------------------------+
      int init() {
      
         IndicatorBuffers(3);
         
         SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,indicator_width1,indicator_color1);
         SetIndexBuffer(0,upB);
         SetIndexEmptyValue(0,EMPTY_VALUE);
         
         SetIndexStyle(1,DRAW_HISTOGRAM,STYLE_SOLID,indicator_width2,indicator_color2); //downtrend
         SetIndexBuffer(1,loB);
         SetIndexEmptyValue(1,EMPTY_VALUE);
      
         SetIndexStyle(2,DRAW_LINE);
         SetIndexBuffer(2,Stoch1);
         return(0);
      }
      //+------------------------------------------------------------------+
      int deinit() {
         
         
      }
      //+------------------------------------------------------------------+
      int start() {
      
         int counted_bars=IndicatorCounted();
         int shift,limit;
         
         IndicatorShortName(\"Stoch Histogram (\"+StochPeriod1+\",\"+DPeriod1+\",\"+SlowingPeriod1+\")\");
         if (counted_bars0) counted_bars--;
       
         limit=Bars-31;
         if(counted_bars>=31) limit=Bars-counted_bars-1;
      
         for (shift=limit;shift>=0;shift--)   {
            
            Stoch1[shift]=iStochastic(NULL,0,StochPeriod1,DPeriod1,SlowingPeriod1,MODE_SMA,0,MODE_MAIN,shift)-50;      
          
            if(Stoch1[shift]>0) {
               
               upB[shift]=Stoch1[shift];
               
            } else if (Stoch1[shift]
    ""
    还没有人打赏,支持一下
    回复

    举报

     

    回答|共 7 个

    暗色调 LV5

    发表于 2012-11-22 00:02:14 | 显示全部楼层

    做一个,做好了,请看  

    老男孩 LV6

    发表于 2012-11-22 00:02:14 | 显示全部楼层

    呵呵 那就好好玩吧~~~~  

    hvbib LV5

    发表于 2012-11-22 02:15:12 | 显示全部楼层

    支持你一下下。。  

    fxsin平台 LV5

    发表于 2012-11-22 02:15:12 | 显示全部楼层

    顶也~  

    野狗 LV5

    发表于 2012-11-22 02:15:12 | 显示全部楼层

    加油站加油  

    why9250 LV5

    发表于 2012-11-22 02:15:12 | 显示全部楼层

    都是那么过来的  

    性欲太强 LV5

    发表于 2012-11-22 02:15:12 | 显示全部楼层

    经过你的指点 我还是没找到在哪 ~~~  
    您需要登录后才可以回帖 登录 | 注册

    提醒: 禁止引战、谩骂、灌水内容

    微信二维码

    有问题联系客服