Author: newdigital
Miscellaneous
Implements a curve of type %1
0 Views
0 Downloads
0 Favorites
KGSP_v1
//+------------------------------------------------------------------+
//| Digital High Pass (KGHP) Filter                                  |
//| Created by newdigital                                            |
//| Using the Generator of Digital Filters                           |
//| http://www.forex-tsd.com/                                        |
//+------------------------------------------------------------------+
//+------------------------------------------------------------------------+
//| I wanted to create the KGHP digital filter and was failed.             |
//| But when I attached this indicator to the indicator window together    | 
//| with other filters (in one indicator window) I recognized that         |
//| it is great indicator. It follows the price and seems it is like       |
//| the price curve in the indicator window. Just attach an other filter to|
//| the same window and this KGHP indicator will be as price curve.        |
//| It is very easy to analyze everything.*/                               |
//| --- Parameters: P1=30, D1=29, A1=40                                    |
//| --- P2=52, D2=31, A2=40, Ripple=0.08, Delay=0                          |
//| --- Order [Auto]=858, Calculate method=2                               |
//+------------------------------------------------------------------------+
#property copyright "newdigital"
#property link      "http://www.forex-tsd.com/"
//----
#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 clrRed
//---
double FilterCoefficients[]=
  {

   1.000000000000,
   +0.000000000000000039,
   -0.000000000000000038,
   +0.000000000000000038,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000038,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000038,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000038,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000038,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000038,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000038,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000038,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000040,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000041,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000040,
   +0.000000000000000039,
   -0.000000000000000039,
   +0.000000000000000039,
   -0.000000000000000040,
   +0.000000000000000039,
   -0.000000000000000040,
   +0.000000000000000039,
   -0.000000000000000040,
   +0.000000000000000039,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000041,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000041,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000041,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000041,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000041,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000040,
   +0.000000000000000041,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000040,
   +0.000000000000000041,
   -0.000000000000000040,
   +0.000000000000000040,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000040,
   +0.000000000000000041,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000042,
   +0.000000000000000041,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000043,
   +0.000000000000000041,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000041,
   +0.000000000000000041,
   -0.000000000000000042,
   +0.000000000000000041,
   -0.000000000000000042,
   +0.000000000000000042,
   -0.000000000000000042,
   +0.000000000000000042,
   -0.000000000000000042,
   +0.000000000000000042,
   -0.000000000000000042,
   +0.000000000000000042,
   -0.000000000000000042,
   +0.000000000000000042,
   -0.000000000000000042,
   +0.000000000000000042,
   -0.000000000000000042,
   +0.000000000000000042,
   -0.000000000000000042,
   +0.000000000000000042,
   -0.000000000000000041,
   +0.000000000000000042,
   -0.000000000000000042,
   +0.000000000000000042,
   -0.000000000000000042,
   +0.000000000000000042,
   -0.000000000000000043,
   +0.000000000000000042,
   -0.000000000000000042,
   +0.000000000000000042,
   -0.000000000000000042,
   +0.000000000000000041,
   -0.000000000000000042,
   +0.000000000000000042,
   -0.000000000000000042,
   +0.000000000000000042,
   -0.000000000000000042,
   +0.000000000000000042,
   -0.000000000000000042,
   +0.000000000000000042,
   -0.000000000000000042,
   +0.000000000000000042,
   -0.000000000000000042,
   +0.000000000000000042,
   -0.000000000000000042,
   +0.000000000000000042,
   -0.000000000000000042,
   +0.000000000000000042,
   -0.000000000000000042,
   +0.000000000000000042,
   -0.000000000000000043,
   +0.000000000000000043,
   -0.000000000000000042,
   +0.000000000000000042,
   -0.000000000000000043,
   +0.000000000000000043,
   -0.000000000000000042,
   +0.000000000000000043,
   -0.000000000000000042,
   +0.000000000000000041,
   -0.000000000000000043,
   +0.000000000000000043,
   -0.000000000000000042,
   +0.000000000000000042,
   -0.000000000000000043,
   +0.000000000000000042,
   -0.000000000000000043,
   +0.000000000000000042,
   -0.000000000000000043,
   +0.000000000000000043,
   -0.000000000000000043,
   +0.000000000000000043,
   -0.000000000000000043,
   +0.000000000000000043,
   -0.000000000000000043,
   +0.000000000000000043,
   -0.000000000000000043,
   +0.000000000000000043,
   -0.000000000000000043,
   +0.000000000000000043,
   -0.000000000000000043,
   +0.000000000000000043,
   -0.000000000000000043,
   +0.000000000000000043,
   -0.000000000000000043,
   +0.000000000000000043,
   -0.000000000000000043,
   +0.000000000000000043,
   -0.000000000000000043,
   +0.000000000000000043,
   -0.000000000000000043,
   +0.000000000000000043,
   -0.000000000000000043,
   +0.000000000000000043,
   -0.000000000000000047,
   +0.000000000000000043,
   -0.000000000000000044,
   +0.000000000000000043,
   -0.000000000000000043,
   +0.000000000000000043,
   -0.000000000000000043,
   +0.000000000000000042,
   -0.000000000000000043,
   +0.000000000000000044,
   -0.000000000000000043,
   +0.000000000000000044,
   -0.000000000000000044,
   +0.000000000000000044,
   -0.000000000000000044,
   +0.000000000000000044,
   -0.000000000000000044,
   +0.000000000000000044,
   -0.000000000000000044,
   +0.000000000000000044,
   -0.000000000000000044,
   +0.000000000000000044,
   -0.000000000000000044,
   +0.000000000000000044,
   -0.000000000000000044,
   +0.000000000000000044,
   -0.000000000000000044,
   +0.000000000000000044,
   -0.000000000000000044,
   +0.000000000000000044,
   -0.000000000000000044,
   +0.000000000000000044,
   -0.000000000000000045,
   +0.000000000000000044,
   -0.000000000000000044,
   +0.000000000000000044,
   -0.000000000000000044,
   +0.000000000000000044,
   -0.000000000000000044,
   +0.000000000000000044,
   -0.000000000000000044,
   +0.000000000000000045,
   -0.000000000000000044,
   +0.000000000000000044,
   -0.000000000000000044,
   +0.000000000000000044,
   -0.000000000000000044,
   +0.000000000000000044,
   -0.000000000000000045,
   +0.000000000000000045,
   -0.000000000000000044,
   +0.000000000000000044,
   -0.000000000000000044,
   +0.000000000000000045,
   -0.000000000000000045,
   +0.000000000000000045,
   -0.000000000000000045,
   +0.000000000000000045,
   -0.000000000000000044,
   +0.000000000000000045,
   -0.000000000000000045,
   +0.000000000000000045,
   -0.000000000000000045,
   +0.000000000000000045,
   -0.000000000000000045,
   +0.000000000000000045,
   -0.000000000000000045,
   +0.000000000000000045,
   -0.000000000000000045,
   +0.000000000000000045,
   -0.000000000000000045,
   +0.000000000000000045,
   -0.000000000000000043,
   +0.000000000000000046,
   -0.000000000000000045,
   +0.000000000000000045,
   -0.000000000000000045,
   +0.000000000000000045,
   -0.000000000000000045,
   +0.000000000000000046,
   -0.000000000000000045,
   +0.000000000000000046,
   -0.000000000000000046,
   +0.000000000000000046,
   -0.000000000000000046,
   +0.000000000000000045,
   -0.000000000000000046,
   +0.000000000000000045,
   -0.000000000000000046,
   +0.000000000000000046,
   -0.000000000000000046,
   +0.000000000000000045,
   -0.000000000000000046,
   +0.000000000000000046,
   -0.000000000000000046,
   +0.000000000000000046,
   -0.000000000000000046,
   +0.000000000000000045,
   -0.000000000000000046,
   +0.000000000000000046,
   -0.000000000000000046,
   +0.000000000000000046,
   -0.000000000000000046,
   +0.000000000000000046,
   -0.000000000000000046,
   +0.000000000000000046,
   -0.000000000000000046,
   +0.000000000000000046,
   -0.000000000000000044,
   +0.000000000000000046,
   -0.000000000000000046,
   +0.000000000000000046,
   -0.000000000000000046,
   +0.000000000000000046,
   -0.000000000000000046,
   +0.000000000000000047,
   -0.000000000000000047,
   +0.000000000000000046,
   -0.000000000000000047,
   +0.000000000000000047,
   -0.000000000000000047,
   +0.000000000000000046,
   -0.000000000000000047,
   +0.000000000000000046,
   -0.000000000000000047,
   +0.000000000000000047,
   -0.000000000000000047,
   +0.000000000000000047,
   -0.000000000000000047,
   +0.000000000000000047,
   -0.000000000000000046,
   +0.000000000000000047,
   -0.000000000000000047,
   +0.000000000000000047,
   -0.000000000000000047,
   +0.000000000000000047,
   -0.000000000000000047,
   +0.000000000000000047,
   -0.000000000000000047,
   +0.000000000000000047,
   -0.000000000000000048,
   +0.000000000000000047,
   -0.000000000000000048,
   +0.000000000000000048,
   -0.000000000000000048,
   +0.000000000000000048,
   -0.000000000000000049,
   +0.000000000000000047,
   -0.000000000000000047,
   +0.000000000000000046,
   -0.000000000000000048,
   +0.000000000000000048,
   -0.000000000000000048,
   +0.000000000000000048,
   -0.000000000000000048,
   +0.000000000000000048,
   -0.000000000000000048,
   +0.000000000000000048,
   -0.000000000000000048,
   +0.000000000000000048,
   -0.000000000000000048,
   +0.000000000000000048,
   -0.000000000000000048,
   +0.000000000000000048,
   -0.000000000000000048,
   +0.000000000000000048,
   -0.000000000000000048,
   +0.000000000000000048,
   -0.000000000000000048,
   +0.000000000000000048,
   -0.000000000000000048,
   +0.000000000000000048,
   -0.000000000000000049,
   +0.000000000000000049,
   -0.000000000000000049,
   +0.000000000000000049,
   -0.000000000000000048,
   +0.000000000000000049,
   -0.000000000000000052,
   +0.000000000000000049,
   -0.000000000000000049,
   +0.000000000000000049,
   -0.000000000000000049,
   +0.000000000000000049,
   -0.000000000000000049,
   +0.000000000000000049,
   -0.000000000000000049,
   +0.000000000000000049,
   -0.000000000000000049,
   +0.000000000000000049,
   -0.000000000000000049,
   +0.000000000000000049,
   -0.000000000000000049,
   +0.000000000000000049,
   -0.000000000000000049,
   +0.000000000000000049,
   -0.000000000000000049,
   +0.000000000000000050,
   -0.000000000000000050,
   +0.000000000000000050,
   -0.000000000000000049,
   +0.000000000000000050,
   -0.000000000000000050,
   +0.000000000000000050,
   -0.000000000000000050,
   +0.000000000000000050,
   -0.000000000000000050,
   +0.000000000000000050,
   -0.000000000000000049,
   +0.000000000000000050,
   -0.000000000000000050,
   +0.000000000000000050,
   -0.000000000000000051,
   +0.000000000000000050,
   -0.000000000000000050,
   +0.000000000000000050,
   -0.000000000000000050,
   +0.000000000000000051,
   -0.000000000000000049,
   +0.000000000000000052,
   -0.000000000000000047,
   +0.000000000000000050,
   -0.000000000000000051,
   +0.000000000000000050,
   -0.000000000000000050,
   +0.000000000000000050,
   -0.000000000000000050,
   +0.000000000000000050,
   -0.000000000000000050,
   +0.000000000000000051,
   -0.000000000000000051,
   +0.000000000000000050,
   -0.000000000000000051,
   +0.000000000000000051,
   -0.000000000000000050,
   +0.000000000000000051,
   -0.000000000000000051,
   +0.000000000000000051,
   -0.000000000000000052,
   +0.000000000000000051,
   -0.000000000000000051,
   +0.000000000000000052,
   -0.000000000000000052,
   +0.000000000000000051,
   -0.000000000000000052,
   +0.000000000000000051,
   -0.000000000000000050,
   +0.000000000000000050,
   -0.000000000000000051,
   +0.000000000000000052,
   -0.000000000000000052,
   +0.000000000000000052,
   -0.000000000000000052,
   +0.000000000000000052,
   -0.000000000000000052,
   +0.000000000000000051,
   -0.000000000000000053,
   +0.000000000000000052,
   -0.000000000000000052,
   +0.000000000000000053,
   -0.000000000000000052,
   +0.000000000000000052,
   -0.000000000000000053,
   +0.000000000000000052,
   -0.000000000000000052,
   +0.000000000000000053,
   -0.000000000000000053,
   +0.000000000000000052,
   -0.000000000000000053,
   +0.000000000000000052,
   -0.000000000000000053,
   +0.000000000000000051,
   -0.000000000000000053,
   +0.000000000000000053,
   -0.000000000000000053,
   +0.000000000000000054,
   -0.000000000000000053,
   +0.000000000000000053,
   -0.000000000000000055,
   +0.000000000000000053,
   -0.000000000000000053,
   +0.000000000000000053,
   -0.000000000000000054,
   +0.000000000000000053,
   -0.000000000000000053,
   +0.000000000000000053,
   -0.000000000000000053,
   +0.000000000000000054,
   -0.000000000000000054,
   +0.000000000000000054,
   -0.000000000000000054,
   +0.000000000000000054,
   -0.000000000000000053,
   +0.000000000000000054,
   -0.000000000000000053,
   +0.000000000000000054,
   -0.000000000000000053,
   +0.000000000000000054,
   -0.000000000000000054,
   +0.000000000000000053,
   -0.000000000000000054,
   +0.000000000000000054,
   -0.000000000000000054,
   +0.000000000000000054,
   -0.000000000000000054,
   +0.000000000000000054,
   -0.000000000000000055,
   +0.000000000000000055,
   -0.000000000000000054,
   +0.000000000000000055,
   -0.000000000000000056,
   +0.000000000000000055,
   -0.000000000000000052,
   +0.000000000000000054,
   -0.000000000000000056,
   +0.000000000000000054,
   -0.000000000000000054,
   +0.000000000000000055,
   -0.000000000000000055,
   +0.000000000000000055,
   -0.000000000000000055,
   +0.000000000000000055,
   -0.000000000000000055,
   +0.000000000000000056,
   -0.000000000000000055,
   +0.000000000000000054,
   -0.000000000000000055,
   +0.000000000000000056,
   -0.000000000000000055,
   +0.000000000000000056,
   -0.000000000000000056,
   +0.000000000000000056,
   -0.000000000000000056,
   +0.000000000000000056,
   -0.000000000000000056,
   +0.000000000000000056,
   -0.000000000000000056,
   +0.000000000000000056,
   -0.000000000000000056,
   +0.000000000000000056,
   -0.000000000000000056,
   +0.000000000000000056,
   -0.000000000000000057,
   +0.000000000000000056,
   -0.000000000000000057,
   +0.000000000000000056,
   -0.000000000000000056,
   +0.000000000000000055,
   -0.000000000000000057,
   +0.000000000000000057,
   -0.000000000000000057,
   +0.000000000000000057,
   -0.000000000000000057,
   +0.000000000000000057,
   -0.000000000000000059,
   +0.000000000000000058,
   -0.000000000000000057,
   +0.000000000000000062,
   -0.000000000000000056,
   +0.000000000000000058,
   -0.000000000000000058,
   +0.000000000000000058,
   -0.000000000000000058,
   +0.000000000000000057,
   -0.000000000000000057,
   +0.000000000000000058,
   -0.000000000000000058,
   +0.000000000000000058,
   -0.000000000000000058,
   +0.000000000000000059,
   -0.000000000000000058,
   +0.000000000000000058,
   -0.000000000000000058,
   +0.000000000000000058,
   -0.000000000000000058,
   +0.000000000000000059,
   -0.000000000000000058,
   +0.000000000000000058,
   -0.000000000000000059,
   +0.000000000000000059,
   -0.000000000000000059,
   +0.000000000000000059,
   -0.000000000000000059,
   +0.000000000000000059,
   -0.000000000000000059,
   +0.000000000000000059,
   -0.000000000000000059,
   +0.000000000000000060,
   -0.000000000000000058,
   +0.000000000000000060,
   -0.000000000000000059,
   +0.000000000000000062,
   -0.000000000000000060,
   +0.000000000000000060,
   -0.000000000000000059,
   +0.000000000000000062,
   -0.000000000000000060,
   +0.000000000000000060,
   -0.000000000000000060,
   +0.000000000000000060,
   -0.000000000000000060,
   +0.000000000000000061,
   -0.000000000000000061,
   +0.000000000000000060,
   -0.000000000000000061,
   +0.000000000000000060,
   -0.000000000000000061,
   +0.000000000000000061
  };
//---- buffers
double FilterBuffer[];
int limit;
//+------------------------------------------------------------------+
//| Digital filter indicator initialization function                 |
//+------------------------------------------------------------------+
int init()
  {
   limit=ArraySize(FilterCoefficients);
//---- indicator line
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0,FilterBuffer);
   SetIndexDrawBegin(0,limit);
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Digital filter main function                                     |
//+------------------------------------------------------------------+
int start()
  {
   int i,counted_bars=IndicatorCounted();
//----
   if(Bars<= limit) return(0);
//----
   i=Bars-limit-1;
   if(counted_bars>=limit) i=Bars-counted_bars-1;
   while(i>=0)
     {
      double response=0;
      for(int j=0;j<limit;j++)
        {
         response+=FilterCoefficients[j]*Close[i+j];
        }
      FilterBuffer[i]=response;
      i--;
     }
   return(0);
  }
//+------------------------------------------------------------------+

Comments

Markdown supported. Formatting help

Markdown Formatting Guide

Element Markdown Syntax
Heading # H1
## H2
### H3
Bold **bold text**
Italic *italicized text*
Link [title](https://www.example.com)
Image ![alt text](image.jpg)
Code `code`
Code Block ```
code block
```
Quote > blockquote
Unordered List - Item 1
- Item 2
Ordered List 1. First item
2. Second item
Horizontal Rule ---