Miscellaneous
0
Views
0
Downloads
0
Favorites
kvant
//+------------------------------------------------------------------+
//| ProjectName |
//| Copyright 2012, CompanyName |
//| http://www.companyname.net |
//+------------------------------------------------------------------+
#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 Aqua
double x[];
double time1,time2;
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
int init()
{
IndicatorBuffers(1);
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,x);
SetIndexDrawBegin(0,0);
SetIndexLabel(0,"x");
SetIndexShift(0,0);
time1=GetTickCount();
return(0);
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
int start()
{
double t;
time2=GetTickCount();
t=time2-time1;
time1=time2;
Alert("Âðåìÿ ìåæäó òèêàìè(ìñåê) = ",t);
if(t>0) x[0]=MathLog(t);
else x[0]=1;
for(int j=ArraySize(x)-1;j>=1;j--){x[j]=x[j-1];}
return(0);
}
//+------------------------------------------------------------------+
Comments
Markdown Formatting Guide
# H1
## H2
### H3
**bold text**
*italicized text*
[title](https://www.example.com)

`code`
```
code block
```
> blockquote
- Item 1
- Item 2
1. First item
2. Second item
---