Author: � Maloma
palka
Miscellaneous
Implements a curve of type %1
0 Views
0 Downloads
0 Favorites
palka
//+------------------------------------------------------------------+
//|                                                        Palka.mq4 |
//+------------------------------------------------------------------+
#property copyright "© Maloma"

#property indicator_chart_window
#property indicator_buffers 1
#property indicator_color1 Magenta

extern int PPeriod=13;

double LineBuffer[];

int init()
  {
    SetIndexBuffer(0,LineBuffer);
    SetIndexStyle(0,DRAW_SECTION,EMPTY,2);
    SetIndexEmptyValue(0,0.0);
    SetIndexLabel(0,"Line");
    IndicatorShortName("Palka");
   return(0);
  }
int deinit()
  {
   return(0);
  }

int start()
  {
   for(int i=Bars;i>=0;i--) LineBuffer[i]=0;
   LineBuffer[0]=Close[0];
   LineBuffer[PPeriod]=Close[PPeriod];
   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 ---