pgf496 发表于 2016-4-8 21:37:23

dfadfadfasdfadfadfasdfadsfadsf

pgf496 发表于 2016-4-8 21:37:23

dfadfadfasdfadfadfasdfadsfadsf

bestwolf1984 发表于 2016-4-9 00:43:22

``````````

teamo520 发表于 2016-4-15 01:10:20

thanks a lot !!!

wx_r2oO8d62 发表于 2016-4-15 02:03:07

谢谢老板

g09 发表于 2016-4-15 12:32:11

11111111111111111111111111111111

72019791 发表于 2016-4-15 13:52:22

看看什么东西 谢谢

underlong 发表于 2016-4-15 17:11:49

谢谢分享

沉默_pCt9f 发表于 2016-4-16 21:49:17

谢谢分享??????????????????????????

Kuan_eeMGm 发表于 2016-4-17 13:18:25

//+------------------------------------------------------------------+
//|                                                 !!DailyPivot.mq4 |
//|                      Copyright ?2011, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright @2011, Rockyhoangdn"
#property link      "http://ea.whyhui.com"
#property indicator_chart_window
#property indicator_buffers 6
#property indicator_color1Green
#property indicator_color2Green
#property indicator_color3Blue
#property indicator_color4Yellow
#property indicator_color5FireBrick
#property indicator_color6FireBrick
#property indicator_color7FireBrick
#property indicator_color8FireBrick

#property indicator_width1 4
#property indicator_width2 4
#property indicator_width3 0
#property indicator_width4 0
#property indicator_width5 4
#property indicator_width6 4
#property indicator_width7 4
#property indicator_width8 4

//---- input parameters
extern int GrossPeriod=1440;
extern int Barss=0;
//---- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
double ExtMapBuffer3[];
double ExtMapBuffer4[];
double ExtMapBuffer5[];
double ExtMapBuffer6[];
double ExtMapBuffer7[];
double ExtMapBuffer8[];
datetime daytimes[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
   SetIndexStyle(0,DRAW_HISTOGRAM);
   SetIndexArrow(0,159);
   SetIndexBuffer(0,ExtMapBuffer1);
   SetIndexEmptyValue(0,0.0);
   SetIndexLabel(0,"upline");
   
   
   SetIndexStyle(1,DRAW_HISTOGRAM);
   SetIndexArrow(1,159);
   SetIndexBuffer(1,ExtMapBuffer2);
   SetIndexEmptyValue(1,0.0);
   SetIndexLabel(1,"upline");
   
   
   SetIndexStyle(2,DRAW_ARROW);
   SetIndexArrow(2,159);
   SetIndexBuffer(2,ExtMapBuffer3);
   SetIndexEmptyValue(2,0.0);
   SetIndexLabel(2,"signalup");
   
   
   SetIndexStyle(3,DRAW_ARROW);
   SetIndexArrow(3,159);
   SetIndexBuffer(3,ExtMapBuffer4);
   SetIndexEmptyValue(3,0.0);
   SetIndexLabel(3,"signaldown");
   
   SetIndexStyle(4,DRAW_HISTOGRAM);
   SetIndexArrow(4,159);
   SetIndexBuffer(4,ExtMapBuffer5);
   SetIndexEmptyValue(4,0.0);
   SetIndexLabel(4,"downline");
   
   SetIndexStyle(5,DRAW_HISTOGRAM);
   SetIndexArrow(5,159);
   SetIndexBuffer(5,ExtMapBuffer6);
   SetIndexEmptyValue(5,0.0);
   SetIndexLabel(5,"downline");
   
   SetIndexStyle(6,DRAW_HISTOGRAM);
   SetIndexArrow(6,159);
   SetIndexBuffer(6,ExtMapBuffer7);
   SetIndexEmptyValue(6,0.0);
   SetIndexLabel(6,"signal");
   
   SetIndexStyle(7,DRAW_HISTOGRAM);
   SetIndexArrow(7,159);
   SetIndexBuffer(7,ExtMapBuffer8);
   SetIndexEmptyValue(7,0.0);
   SetIndexLabel(7,"signal");
   
   
   
   IndicatorShortName("!!DailyPivot"+GrossPeriod);
//----
//----
   if (Period()>GrossPeriod) {GrossPeriod=Period();}

   ArrayCopySeries(daytimes,MODE_TIME,Symbol(),GrossPeriod);
   return(0);
}
//+------------------------------------------------------------------+
//| Custor indicator deinitialization function                     |
//+------------------------------------------------------------------+
int deinit()
{
//----
   
//----
   return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
{
   int    counted_bars=IndicatorCounted();
   int    limit,bigshift;
   double value1,value2,value3,value4;
   if (counted_bars<0) return(-1);
   
   if (counted_bars>0) counted_bars--;
   if (Barss>0) limit=Bars-Barss-counted_bars; else limit=Bars-counted_bars;
//----
   for (int i=0; i<limit; i++)
   {
   if(Time>=daytimes) bigshift=0;
   else
   {
      bigshift = ArrayBsearch(daytimes,Time,WHOLE_ARRAY,0,MODE_DESCEND);
      if(Period()<=GrossPeriod) bigshift++;
   }
      for (int cnt=bigshift; cnt<(1+bigshift); cnt++)
      {
         value1=iMA(NULL,GrossPeriod,1,1,MODE_SMMA,PRICE_MEDIAN,cnt);
      }
      
   if((Close-value1)/Point>=0)   
      {
      ExtMapBuffer1=High;
      ExtMapBuffer2=Low;
      ExtMapBuffer3=value1;
      
      }
         else
            {
            ExtMapBuffer1=0;
            ExtMapBuffer2=0;
            ExtMapBuffer3=0;
            ExtMapBuffer4=0;
            }
   if((Close-value1)/Point<0)
      {
      ExtMapBuffer5=High;
      ExtMapBuffer6=Low;
      ExtMapBuffer4=value1;
      }
         else
            {
            ExtMapBuffer5=0;
            ExtMapBuffer6=0;
            ExtMapBuffer7=0;
            ExtMapBuffer8=0;
            }
   ObjectsRedraw();
   RefreshRates();


   }
//----
   return(0);
}
//+------------------------------------------------------------------+
页: 30 31 32 33 34 35 36 37 38 39 [40] 41 42 43 44 45 46 47 48 49
查看完整版本: 用于60分钟的顺势全能框架出来了