Navigation´╝ÜHome > Content >

Simplon_1.mq4

Time: 2016-08-14 | Download file:Simplon_1.mq4

//+------------------------------------------------------------------+
//|                               Forex Generator version 4.5        |
//|                                 Copyright (C) 2012, Etasoft Inc. |
//|                                    http://www.forexgenerator.com |
//+------------------------------------------------------------------+
// Keywords: indicator developer, Forex indicator builder, create forex indicator, MT4


#property copyright "copyright Freidenker2014"
#property link "Link to your website"
#property indicator_separate_window
#property indicator_buffers 1

#property indicator_color1 Red
#property indicator_width1 2



// exported variables
extern int CountBars=7;
extern double Multiplier=1.5;

// local variables
double Buffer2[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
{
    if (false) ObjectsDeleteAll();      // clear the chart
    IndicatorDigits(Digits + 1);
    IndicatorShortName("Simplon");
    IndicatorBuffers(1);
    SetIndexBuffer(0, Buffer2);
    SetIndexStyle(0, DRAW_LINE, STYLE_SOLID);
    return(0);
}

//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
{
    if (false) ObjectsDeleteAll();
    return(0);
}

//+------------------------------------------------------------------+
//| Custom indicator start function                                  |
//+------------------------------------------------------------------+
int start()
{
   int counted_bars = IndicatorCounted();
   int limit = Bars - counted_bars;
   for(int i=0; i        

Recommend