比特币通信协议 - 币圈消息

比特币通信协议篇11、二、TURN简介。在典型的情况下,TURN客户端连接到内网中,并且通过一个或者多个NAT到 详细

分享系统 求源码

  [复制链接]
730 13
acong 发表于 2018-1-11 21:37:33 | 只看该作者 |阅读模式 打印 上一主题 下一主题
在网上找的   大家测试   说明   指标  模板  在压缩包里     求附图指标源码  希望高手帮忙  

收藏
收藏0
转播
转播
分享
分享
分享
淘帖0

精彩评论13

跳转到指定楼层
沙发
天利豹 发表于 2018-1-11 23:13:01 | 只看该作者
/*
   Generated by ex4-to-mq4 decompiler (forex-warez.com) 4.0.509.5
   Website: WwW.foR Ex - w a R eZ.cO m
   E-mail : An DR E yb BRv @ GM ail .c oM
*/
#property copyright "Copyright ?2006, FX Sniper "
#property link      "http://www.metaquotes.net/"
#property indicator_separate_window
#property indicator_minimum 0.0
#property indicator_maximum 100.0
#property indicator_buffers 3
#property indicator_color1 Fuchsia
#property indicator_color2 LightSeaGreen
#property indicator_color3 Black
#property indicator_width1 1
#property indicator_level1 20.0
#property indicator_width2 1
#property indicator_level2 50.0
#property indicator_width3 1
#property indicator_level3 80.0
extern int timeframe1 = 5;
extern int timeframe2 = 15;
extern int timeframe3 = 60;
extern int count = 2800;
double G_ibuf_100[];
double G_ibuf_104[];
double G_ibuf_108[];
int G_shift_112;
int init() {
   IndicatorBuffers(3);
   SetIndexBuffer(0, G_ibuf_100);
   SetIndexBuffer(1, G_ibuf_104);
   SetIndexBuffer(2, G_ibuf_108);
   SetIndexStyle(0, DRAW_LINE);
   SetIndexStyle(1, DRAW_LINE);
   SetIndexStyle(2, DRAW_LINE);
   IndicatorShortName("wan2009 - ( " + timeframe1 + " , " + timeframe2 + " , " + timeframe3 + " )  ");
   return (0);
}
int start() {
   int minute_0;
   int Li_4;
   int shift_8;
   int Li_12 = IndicatorCounted();
   if (Li_12 > 0) Li_12--;
   int Li_16 = Bars - Li_12;
   Li_16 = MathMin(Li_16, count);
   Li_16 = MathMax(Li_16, 3);
   double Ld_20 = 0;
   for (int shift_28 = Li_16; shift_28 >= 0; shift_28--) {
      if (Period() == timeframe1) G_ibuf_100[shift_28] = iStochastic(NULL, timeframe1, 8, 3, 1, MODE_SMA, 0, MODE_SIGNAL, shift_28);
      else {
         if (Period() > timeframe1) G_ibuf_100[shift_28] = EMPTY_VALUE;
         else {
            minute_0 = TimeMinute(Time[shift_28]);
            Li_4 = MathMod(minute_0, timeframe1);
            if (Li_4 != 0) {
               G_shift_112 = iBarShift(NULL, timeframe1, Time[shift_28] - 60 * Li_4);
               if (G_shift_112 == 0) G_ibuf_100[shift_28] = G_ibuf_100[shift_28 + 1];
               else {
                  Ld_20 = iStochastic(NULL, timeframe1, 8, 3, 1, MODE_SMA, 0, MODE_SIGNAL, G_shift_112 - 1) - iStochastic(NULL, timeframe1, 8, 3, 1, MODE_SMA, 0, MODE_SIGNAL, G_shift_112);
                  Ld_20 = Ld_20 * Li_4 / timeframe1;
                  G_ibuf_100[shift_28] = iStochastic(NULL, timeframe1, 8, 3, 1, MODE_SMA, 0, MODE_SIGNAL, G_shift_112) + Ld_20;
               }
            } else {
               shift_8 = iBarShift(NULL, timeframe1, Time[shift_28]);
               G_ibuf_100[shift_28] = iStochastic(NULL, timeframe1, 8, 3, 1, MODE_SMA, 0, MODE_SIGNAL, shift_8);
            }
         }
      }
      if (Period() == timeframe2) G_ibuf_104[shift_28] = iStochastic(NULL, timeframe2, 8, 3, 1, MODE_SMA, 0, MODE_SIGNAL, shift_28);
      else {
         if (Period() > timeframe2) G_ibuf_104[shift_28] = EMPTY_VALUE;
         else {
            minute_0 = TimeMinute(Time[shift_28]);
            Li_4 = MathMod(minute_0, timeframe2);
            if (Li_4 != 0) {
               shift_8 = iBarShift(NULL, timeframe2, Time[shift_28] - 60 * Li_4);
               if (shift_8 == 0) G_ibuf_104[shift_28] = G_ibuf_104[shift_28 + 1];
               else {
                  Ld_20 = iStochastic(NULL, timeframe2, 8, 3, 1, MODE_SMA, 0, MODE_SIGNAL, shift_8 - 1) - iStochastic(NULL, timeframe2, 8, 3, 1, MODE_SMA, 0, MODE_SIGNAL, shift_8);
                  Ld_20 = Ld_20 * Li_4 / timeframe2;
                  G_ibuf_104[shift_28] = iStochastic(NULL, timeframe2, 8, 3, 1, MODE_SMA, 0, MODE_SIGNAL, shift_8) + Ld_20;
               }
            } else {
               shift_8 = iBarShift(NULL, timeframe2, Time[shift_28]);
               G_ibuf_104[shift_28] = iStochastic(NULL, timeframe2, 8, 3, 1, MODE_SMA, 0, MODE_SIGNAL, shift_8);
            }
         }
      }
      if (Period() == timeframe3) G_ibuf_108[shift_28] = iStochastic(NULL, timeframe3, 8, 3, 1, MODE_SMA, 0, MODE_SIGNAL, shift_28);
      else {
         if (Period() > timeframe3) G_ibuf_108[shift_28] = EMPTY_VALUE;
         else {
            minute_0 = TimeMinute(Time[shift_28]);
            Li_4 = MathMod(minute_0, timeframe3);
            if (Li_4 != 0) {
               shift_8 = iBarShift(NULL, timeframe3, Time[shift_28] - 60 * Li_4);
               if (shift_8 == 0) {
                  G_ibuf_108[shift_28] = G_ibuf_108[shift_28 + 1];
                  continue;
               }
               Ld_20 = iStochastic(NULL, timeframe3, 8, 3, 1, MODE_SMA, 0, MODE_SIGNAL, shift_8 - 1) - iStochastic(NULL, timeframe3, 8, 3, 1, MODE_SMA, 0, MODE_SIGNAL, shift_8);
               Ld_20 = Ld_20 * Li_4 / timeframe3;
               G_ibuf_108[shift_28] = iStochastic(NULL, timeframe3, 8, 3, 1, MODE_SMA, 0, MODE_SIGNAL, shift_8) + Ld_20;
            } else {
               shift_8 = iBarShift(NULL, timeframe3, Time[shift_28]);
               G_ibuf_108[shift_28] = iStochastic(NULL, timeframe3, 8, 3, 1, MODE_SMA, 0, MODE_SIGNAL, shift_8);
            }
         }
      }
   }
   return (0);
}
板凳
 楼主| acong 发表于 2018-1-11 23:32:39 | 只看该作者


沙发   
拜托有源码的朋友分享一下

地板
翘楚以待 发表于 2018-1-12 00:25:43 | 只看该作者
感谢分享~~~
5#
lantianxingkong 发表于 2018-1-12 01:58:19 | 只看该作者
感谢分享     系统不错
6#
digit 发表于 2018-1-12 03:26:10 | 只看该作者
今日: 598|昨日: 2000|帖子: 865845|会员: 69485|欢迎新会员: 南宫慕容
7#
人民币 发表于 2018-1-12 04:33:03 | 只看该作者
路过。  看下 这个意思
8#
 楼主| acong 发表于 2018-1-12 05:23:37 | 只看该作者

万分感谢  

9#
 楼主| acong 发表于 2018-1-12 06:01:57 | 只看该作者

谢谢哈   有用

10#
快乐的生活 发表于 2018-1-12 07:08:43 | 只看该作者
感谢分享~~~
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

发布主题
阅读排行更多+

Powered by 顺水鱼MT4外汇EA网! X3.2© 2001-2017 顺水MT4外汇EA公司.( 陕ICP备17014341号-1