MTF Stochastic

Created at 23 Apr 2015
BU

bull375

Joined 22.04.2015

Status

Open


Budget

5.00 USD


Payment Method

Direct Payment

Job Description
//+------------------------------------------------------------------+
//|                                               Stochastic_MTF.mq4 |
//|      Copyright © 2011 Forex-indikatoren.com. All rights reserved |
//|                                 http://www.forex-indikatoren.com |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2011 Forex-indikatoren.com."
#property link      "http://www.forex-indikatoren.com"
  
//----
#property indicator_separate_window
#property indicator_buffers 2
#property indicator_color1 DodgerBlue
#property indicator_color2 Tomato
#property indicator_level1 80
#property indicator_level2 20
  
extern string TimeFrameNote="TimeFrame =0 - Current Timeframe, =1 - 1MIN, =2 - 2MIN, =3 - 3MIN, =5 - 5MIN,  =6 - 6MIN,  =10 - 10MIN, =15 - 15MIN, =30 - 30MIN, =60 - 1H, =240 - 4H,  =480 - 480MIN, =1440 - D1, =10080 - W1, =43200 - MN1";
extern int TimeFrame=0;
extern int KPeriod=8;
extern int DPeriod=3;
extern int Slowing=3;
extern int MAMethod=0;
extern int PriceField=0;
// PriceField:  0=Hi/Low   1=Close/Close
double ExtMapBuffer1[];
double ExtMapBuffer2[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicator line
   SetIndexBuffer(0,ExtMapBuffer1);
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(1,ExtMapBuffer2);
   SetIndexStyle(1,DRAW_LINE,STYLE_DOT);
//---- name for DataWindow and indicator subwindow label   
   switch(TimeFrame)
     {
      case 1 : string TimeFrameStr="Period_M1"; break;
      case 2 : TimeFrameStr="Period_M2"; break;
      case 3 : TimeFrameStr="Period_M3"; break;
      case 5 : TimeFrameStr="Period_M5"; break;
      case 6 : TimeFrameStr="Period_M6"; break;
      case 10 : TimeFrameStr="Period_M10"; break;
      case 15 : TimeFrameStr="Period_M15"; break;
      case 30 : TimeFrameStr="Period_M30"; break;
      case 60 : TimeFrameStr="Period_H1"; break;
      case 240 : TimeFrameStr="Period_H4"; break;
      case 480 : TimeFrameStr="Period_H8"; break;
      case 1440 : TimeFrameStr="Period_D1"; break;
      case 10080 : TimeFrameStr="Period_W1"; break;
      case 43200 : TimeFrameStr="Period_MN1"; break;
      default : TimeFrameStr="Current Timeframe";
     }
   IndicatorShortName("Stochastic ("+KPeriod+","+DPeriod+","+Slowing+") "+TimeFrameStr);
      
   return(0);
  }
//+------------------------------------------------------------------+
//| Custor indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
     
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   datetime TimeArray[];
   int    i,shift,limit,y=0,counted_bars=IndicatorCounted();
   // Plot defined timeframe on to current timeframe   
   ArrayCopySeries(TimeArray,MODE_TIME,Symbol(),TimeFrame);
//----
   limit=Bars-counted_bars;
   for(i=0,y=0;i<limit;i++)
     {
      if (Time[i]<TimeArray[y]) y++;
      ExtMapBuffer1[i]=iStochastic(NULL,TimeFrame,KPeriod,DPeriod,Slowing,MAMethod,PriceField,0,y);
      ExtMapBuffer2[i]=iStochastic(NULL,TimeFrame,KPeriod,DPeriod,Slowing,MAMethod,PriceField,1,y);
     }
   //----
   return(0);
  }
//+------------------------------------------------------------------+

Can you make it work? I pasted in cAlgo and hit build but it keeps says no source found...not much work as the code is already there

Comments
Log in to add a comment.
moped170574's avatar
moped170574 · 8 years ago

Getting started with binary choices, and following a specific time, points transpired due to the procedures which Used to do not. And when I consequently found out what the thing is my accident, I found this web site http://options24.net which many techniques and choose the best for yourself. I think everyone up against this type of problem, thanks for your attention.

MO
moped38 · 8 years ago

Getting started with binary choices, and following a specific time, points transpired due to the procedures which Used to do not. And when I consequently found out what the thing is my accident, I found this web site http://options24.net which many techniques and choose the best for yourself. I think everyone up against this type of problem, thanks for your attention.

ME
melser_studio · 8 years ago

I am on the binary options have now been employed by 6 months, it all started with the look for information for learning, which would doschit targets and maybe not collapse at the center, and then got to me the issue where to locate a broker that's reliable. Climbed on the forums and experienced in that organization offered me http://10binaryoptionsbrokers.org/ website it obtained the very best brokers and I've picked for myself Finpari.

ES
esolod · 9 years ago

Hello, i can help you.

email: evsolod@gmail.com

skype: e-solod

Iwori's avatar
Iwori · 9 years ago

Hi, I can do it.

email: iwori@outlook.com

BU
bull375 · 9 years ago

Sorry for the error, it should be 480 - 8H not =480 - 480MIN